-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
server error PHPHtmlParser\Dom #849
Comments
That's a weird one. Can i get a zipped copy of your |
yep just a moment - i have asked the guys at siteground to check it out as well - the folder is about 30+ MB so I'll link it with dropbox in a sec https://www.dropbox.com/sh/7tv17xgzb8pwghh/AAB1Jq2pJARXMRJOMq7RcArEa?dl=0 link to dropbox - its all synced and ready to inspect 📦 |
Siteground came back - it seems that php7 is causing most of the errors. When switching back to php5.6 most of the errors disappear. |
http://www.awesomescreenshot.com/03f5wbwy39 Only one error appears now with php 5.6 |
Grav should run fine with PHP7.0 or PHP5.6. I use both extensively. Have you tried clearing the cache? |
Cache is empty but now it E_ERROR .... (Same php parser details as before) .. Can you duplicate this? Could it be due to a plugin that has some issues perhaps? |
Been busy on other stuff, but will test now. |
Found the culprit - image plugins (both new ones) are causing this error. I disabled them and now site works as expected.... |
I was just replying with the same thing! imsgsrcset and imgcaptions right? |
Yeo both of them I believe. I disabled both of them to make sure. Now I'm at work with access to my little phone only so can't test each individual. I opened an issue with the creator (Ole) and wait to see what could cause this |
This will be from ImgSrcset, as ImgCaptions does not use a DOMParser. Working on a resolution in its repository. |
interesting thing @rhukster - the DOM error seems to have disappeared however, when changing twig_first : true in system.yaml the images are not rendered anymore as you can see in the photo attached. Could this still be a bug in admin / Grav or perhaps the imgsrcset plugin is changing the photos that much that Grav cant process them no more ? I'm sure @OleVik is trying to figure out what is actually causing the error in the first place but since you guys know more about php / programming the I will ever do hopefully the solution will arise by investigating ? |
It's quite possible that twig_first is causing the problems. There are so many options in Grav now that it's inevitable that some combinations cause problems. As I dont know much about the imgsrcset plugin, i'll have to leave this to Ole to solve :) |
I have not debugged the issue in full extent - that is a rather long line to thread through many layers of Grav-operations - but I will make a note of checking whether |
Latest beta of all plugins, antimatter theme,
Until yesterday it all worked fine.
Today I got this little error (not sure if its a server issue or grav issue)
In the log, the last line with the error is:
The text was updated successfully, but these errors were encountered: