-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update 4.1.6 to 4.2.3 breaks site #93
Comments
Do you have a custom shortcode? |
Hey Andy - thanks for getting back to me. Yes - I have a few custom shortcodes written as a companion plugin. Is that a likely cause? I couldn't see anything in the example code that's changed immediately - but might have missed something :-) |
First try disabling the plugin that adds those if possible. See if the error stops. Then it’s definitely related to them. Also if you can post the entire short code class I can see if anything jumps out at me. |
We have a number of shortcode custom plugins that now dont work either: sqllite, an admin tool and a couple of others. |
do you get an error at all? what parser in short code core are you using? |
No error. Even breaks grav debugger (so cant track it very easily). I think I have found something that might be related - is the use of quotes different in generation of strings in twig?
The return data has quotes in it as well. Then it gets converted to json using json_decode. |
Oh. Parser. Erm. Whatever is installed? I'll try out the other ones. Thanks, thats probably it! |
We can't recreate the error at all strangely - our local build uses the latest versions of the plugin and continues to work whether or not our own extensions are enabled. I'm slightly cautious about breaking live to diagnose further at the moment :) My guess is that in our case it's something to do with using the Web Admin interface to update the plugins (our local and CI builds all do fresh installs), or that our live environment is using a Windows Web App on Azure. |
Thanks for looking at it. Im really not certain where this issue is coming from. Im starting to delve into the DB side of things, its possible that something there (the data coming from DB) is not formatted or correctly structured for minify and shortcode use. Will let you know if I find anything specific. |
Update: I didnt really resolve this. I changed architecture to get around using the db data. Which was a little time-consuming. I think it is much more likely this is a sqlite extension issue. Again, thanks for the assistance. |
Hi there,
We're seeing an issue with shortcode core that breaks the live site - and I'm not sure how to begin diagnosing!
We're running Grav 1.6.25 - and this morning updated all plugins to the latest version. That update migrated shortcode code from 4.1.6 to 4.2.3 - but after the update we see this message on the live site:
With this message in the logs:
For those people seeing the error if they clear their local cookies the issue goes away! I've able to repeat that with several people - each time clearing different degrees of local storage.
For now I've had to revert the site back to the older version - but I'm puzzled why this issue happens. Any idea?
Thanks!
The text was updated successfully, but these errors were encountered: