Closed QuentinLeclercq closed 1 year ago
Looking at that error, it's coming from the old version of the plugin in your composer.json installed into your vendor directory called "shopify-product-fetcher".
Make sure you have the correct package in your composer.json
composer require craftcms/shopify -w
and remove the old one and do a
composer update
Hey @lukeholder, thanks for your quick answer!
Still experiencing the same issue after removing nmaier95/shopify-product-fetcher
and adding/installing craftcms/shopify
.
I'm not sure to understand how it can works here: https://github.com/craftcms/shopify/blob/develop/src/controllers/SettingsController.php#L67
The template
key isn't sent when we enable headless
mode, which is normal I guess. See the routing
content in the POST request. We only have uriFormat
.
So the Undefined array key "template"
error looks like to be relevant. If I add a check on the template key like in the image below, saving works:
Thanks for you help!
Hi @lukeholder, I'm having the same issue as Quentin here. Even after changing the config to headlessMode(false)
and reinstalling Shopify app.
Temporarily bypassing with Quentin's solution above...
Yeah this is a legitimate bug, looks like there is already a pull request to fix this as well #57
Thanks everyone. I'll get a fix out shortly.
This is now out in 3.2.0!
See the notes in the upgrading section of the README
Description
Using Craft with headlessMode creates error when saving Shopify plugin settings.
Error
Steps to reproduce
headless
mode totrue
Additional info