Coder Social home page Coder Social logo

🐛 [BUG] - Blank page when webp is enabled in is_themecore with a website on netsons - DOMDocument::loadHTML(): Memory allocation failed in Entity, line: 8 in is_themecore/src/Core/Webp/WebpPictureGenerator.php on line 19 about falcon HOT 6 OPEN

maofree avatar maofree commented on May 29, 2024
🐛 [BUG] - Blank page when webp is enabled in is_themecore with a website on netsons - DOMDocument::loadHTML(): Memory allocation failed in Entity, line: 8 in is_themecore/src/Core/Webp/WebpPictureGenerator.php on line 19

from falcon.

Comments (6)

maofree avatar maofree commented on May 29, 2024

I copied the site to the other server, I redid the operations to remove the old theme and add the new one, and now the blank page doesn't appear. Maybe it was due to another error. I'll continue and then I'll let you know, before I was very depressed

from falcon.

maofree avatar maofree commented on May 29, 2024

Hi
the problem continues to be present even if all the webp images have been regenerated, so I don't know what it depends on, if it is a compatibility problem with the netsons server configuration

from falcon.

maofree avatar maofree commented on May 29, 2024

Hi
I moved the site to another server that has a shared plan but of a different hosting than netsons which uses cpanel and litespeed.
there is the same problem, in the front only a blank page appears with the same errors in the error_log file
maybe it could be a problem when there is cpanel and litespeed which is used for sites in shared plans.
instead for VPS and dedicated servers Plesk and Litespeed are used and in this case there are no problems

from falcon.

Oksydan avatar Oksydan commented on May 29, 2024

Hi @maofree,

I am not sure yet how I am going to rewrite webp/avif functionality for is_themecore 5 but for now you can try to suppress errors here https://github.com/Oksydan/is_themecore/blob/main/src/Core/Webp/WebpPictureGenerator.php#L19 via libxml_use_internal_errors(true);

from falcon.

maofree avatar maofree commented on May 29, 2024

Hi
is it necessary to set so?

libxml_use_internal_errors(true);
$this->doc->loadHTML('' . $this->content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
libxml_clear_errors();
return $this;

https://www.php.net/manual/en/function.libxml-use-internal-errors.php

from falcon.

Oksydan avatar Oksydan commented on May 29, 2024

Hi @maofree,

you can give it a try. I am not able to reproduce the problem. It might be related to server configuration 🤔 or it's limitation. I am not familiar with lightspeed.

from falcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.