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

DOM manipulation warning #41

Open
educationfutures opened this issue Jul 29, 2019 · 2 comments
Open

DOM manipulation warning #41

educationfutures opened this issue Jul 29, 2019 · 2 comments

Comments

@educationfutures
Copy link

educationfutures commented Jul 29, 2019

Perhaps this can be attributed to one of the many, wonderful issues I've had in upgrading from php7.2 to php7.3. But, I'm now receiving this warning:

production.WARNING: [OFFLINE.ResponsiveImages] DOM manipulation failed: DOMDocument::loadHTML(): Attribute class redefined in Entity, line: 1 {"exception":"[object] (ErrorException(code: 0): DOMDocument::loadHTML(): Attribute class redefined in Entity, line: 1 at /var/www/plugins/offline/responsiveimages/classes/DomManipulator.php:110)

I'm not quite sure why it's doing that, but since it is a warning, can it be suppressed in a future release?

@mpetricek
Copy link

I'm getting the same error. For me it is a problem only on homepage.

@mauserrifle
Copy link
Contributor

I had the same error for a project. For me it was because of the & char in code (non escapaed). For example:

<img .... src="https://www.facebook.com/tr?id=X&ev=PageView&noscript=1">

Should be:

<img ....  src="https://www.facebook.com/tr?id=X&amp;ev=PageView&amp;noscript=1">

So just validate your HTML and fix errors. You should be fine after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants