-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error phphtmlparser\dom #1
Comments
It will, thank you for raising the issue. This can be traced to this plugin, that is ImgSrcset, as ImgCaptions does not use a DOMParser. Would you mind sharing your |
Hi it's the default settings with only the plugin activated. Link is here https://www.dropbox.com/sh/ikoab3neb3n8yr7/AABghDaSecY0-3J7pw5veiN1a?dl=0 |
The settings and plugin-files are all correct. Could you share a copy of your |
Here goes the link for the whole site Hope this helps. Not sure where the Php log file is. System is using Php 7 live and both 5.6.x &7 local. Error appears on both versions. |
I did some debugging using your files as base, could you try setting
In your options it was set to |
changed the twig - no more errors from the parse, however the front page is no longer loading the photos, css or markdown properly as per the photo attached. so leaving twig first is not an option yet for me. I am using the modular.twig with slider, text and hopefully in the near future the contact/subscribe respective modulars. |
This is unrelated to The plugin only does the following:
So, for example with an image named
|
The source image appears to be there, but not the sizes that the browser requests. The difference here is that the 404 error revealed by the Developer Console tells us that it is not the plugin or Grav itself, but rather that the images sought after actually do not exist. Thus From your example image, of the folder and file hierarchy, I do not see a file named Your second example, of the Developer Console output, shows that the plugin is having the desired effect: It generates and applies the |
I must have understood that it will automatically create such images names 320, 940 , etc... This will explain the error not finding the images. |
That should not be the case. From the documentation: Process Twig First
Effectively, it tells Grav that Twig should be processed before Markdown. My guess is that this also processes things like |
Thanks Ole for all the info. One more thing, rendering of the page changes when twig first. But I have taken another look and also the page CSS seems a bit broken where the button is no longer placed under the whole text positioned centre. If you check the live site canabismedical.ro you will see the difference in layout (live site has twig first false) where the local development (images sent so far) has twig first true/. |
Good luck with further development and hopefully in the near future the little issue will disappear :) |
Hi there.
It seems that once enabling these plugins there is an error causing the website to stop working. I opened an issue on grav thinking is the system but as soon as I disabled your plugins (both image plugins) the site is back to normal.
Error is getgrav/grav#849
Hope this helps with further development
The text was updated successfully, but these errors were encountered: