Skip to content
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

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

Closed
ganar opened this issue Mar 20, 2018 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@ganar
Copy link

ganar commented Mar 20, 2018

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
Copy link
Owner

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

@unsaturated unsaturated added the bug Something isn't working label Apr 1, 2018
@unsaturated unsaturated self-assigned this Apr 1, 2018
@Blazeflack
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants