unsaturated / grav-plugin-lazy-image

Grav CMS plugin that defers loading your page's images until they are scrolled into view.
MIT License
11 stars 1 forks source link

DiDom\Document::load expects parameter 4 to be integer, string given #5

Closed ganar closed 6 years ago

ganar commented 6 years ago

I've got this error today:

DiDom\Document::load expects parameter 4 to be integer, string given

I was uploading website to production

23 InvalidArgumentException …/user/plugins/lazy-image/vendor/imangazaliev/didom/src/DiDom/Document.php 222 22 DiDom\Document load …/user/plugins/lazy-image/vendor/imangazaliev/didom/src/DiDom/Document.php 56 21 DiDom\Document __construct …/user/plugins/lazy-image/lazy-image.php 115 20 Grav\Plugin\LazyImagePlugin updateImages …/user/plugins/lazy-image/lazy-image.php 89

unsaturated commented 6 years ago

Thanks for reporting, @ganar. I'll have to write some checks to ensure $page->content() will work with DiDom before passing it along.

Blazeflack commented 5 years ago

This still appears to be an issue when visiting a blog page (or the issue has re-appeared).