-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error with ProjectConfig after settings changed #152
Comments
I hit this issue as well on a live site (doh), to fix it for me I removed all the rows from the I’m going to debug it locally now and see if I can reproduce it at all ... |
Ha, yeah I did the same thing just earlier and not long re-installed - I think we had almost 300 rows in there in the projectconfig table. I found it out by searching the database for any mentions of 'scout'. |
Same thing happening to me – both on my local environment and on our Staging environment. |
Any news on this? It's turning out to be a major problem on our systems because it renders every environment unusable after each deploy – we have to fix it manually by editing the Craft CMS source code in the |
Same thing happened to me. My local site completely died after I clicked "Save" in the Scout settings control panel. |
+1… just got bitten by this. |
I've seen this issue with a different plugin...makes me think it's a Craft issue. |
Sorry for the delay here, been dealing with a newborn. 👶
As @rsanchez said, this appears to be a Craft issue: craftcms/cms#5525 Good news, I'm able to reproduce it. Since Scout requires you to have a For those of you that are stuck with a broken site, I'll try and work on the quickest way to get your sites back. |
For what it's worth, I've modified the function
|
Here's how I could get it back locally after saving settings in the CP:
Since a config/scout.php is already required for indices…I'm considering just dropping CP settings all together. Really the only thing you might want to do on a whim is toggle sync, but you could effectively do that by just disabling Scout as well… |
The way Scout 2 is storing nested objects in its field settings would have been problematic even before project config. I’ve just submitted #162 which should fix this error going forward. |
This appeared for me even while running the latest Scout release. Has anyone else seen this? Completely hosed a production site. |
@ryanirelan (and anyone else who, like me, was still having an issue even with the new release) the issue likely that you still have the offending nested objects stored in your projectconfig table. Look for and delete the plugins.scout.settings rows and you should be good to go (and no longer sweating every update). |
Wow, Installed the Scout Plugin and kills my entire ENV. Not funny. Any Ideas if there a solution for this problems? |
@davidhellmann with this same error? |
Hey @timkelty yes with the |
Hey @riasvdv
We had Scout working fine but after unticking 'Sync' in the CMS settings, we now get the following error below. Have you seen this before?
Only way to get back in the CMS is to remove the Scout line from phpMyAdmin. Then, I remove it from the plugins list but when installing again, I get the same issue. I'm using the set-up file as per the docs that was working initially with the correct channels.
If you can point me in the right direction, that would be great.
Craft CMS 3.4.11, PHP 7.3
PHP Notice – yii\base\ErrorException Undefined offset: 1
vendor/craftcms/cms/src/helpers/ProjectConfig.php line 275
The text was updated successfully, but these errors were encountered: