• murielzs

    (@murielzs)


    Hello,
    I get the following blank page when saving my custom css (Appearance/customise):

    “Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) in /home/wiserock/public_html/wp-includes/wp-db.php on line 2022
    There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    Unfortunately, I have never received any instructions by email.

    I get a first message at the top of my custom css window saying:
    “Looks like something’s gone wrong. Wait a couple of seconds, and then try again”

    Then if I try again, I get this message (still at the top of the css window):
    “The previous set of changes has already been published. Please try saving your current set of changes again”

    Finally, I get the blank page with the fatal error message.

    I’ve checked that my memory limit is high and that my hosting company is not limiting it. When I contacted my hosting company, it said it is a problem with a plugin and I have disabled all my plugins to check. But I couldn’t find any causing the issue.

    I am using the latest WordPress version.

    Help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’ve checked that my memory limit is high

    What does “high” mean (in numeric values)?

    and that my hosting company is not limiting it.

    Whoever told you this is either lying or simply clueless… as every server has memory limits (and no server has unlimited memory).

    For what its worth, the “fatal error” message you posted says your site run out of its allocated memory of 805306368 bytes (about 80MB)

    I would bump up the memory allowed by PHP (and thus WordPress) to at least 256MB. Follow this official guide to increase your memory (if allowed by your host).

    Thread Starter murielzs

    (@murielzs)

    My memory limit is already set at 256 MB on my wp-config.php file
    and here is what is on my php.ini file:

    safe_mode = Off
    post_max_size = 67108864
    memory_limit = 268435456
    upload_max_filesize = 67108864

    auto_prepend_file = “/home/wiserock/public_html/wordfence-waf.php”

    I use Siteground

    Kindly confirm what memory limit WordPress is actually “seeing.” Check your Site Health report in the WordPress dashboard, or use phpinfo(). (I would check both just to be sure.)

    Thread Starter murielzs

    (@murielzs)

    Thank you, here is what I found in my Health report”

    Server architecture	Linux 3.12.18-clouder0 x86_64
    Web server	Apache
    PHP version	7.3.23 (Supports 64bit values)
    PHP SAPI	cgi-fcgi
    PHP max input variables	3000
    PHP time limit	120
    PHP memory limit	768M
    Max input time	120
    Upload max filesize	128M
    PHP post max size	128M
    cURL version	7.59.0 OpenSSL/1.0.2r
    Is SUHOSIN installed?	No
    Is the Imagick library available?	No
    Are pretty permalinks supported?	Yes
    .htaccess rules	Custom rules have been added to your .htaccess file.

    I am not sure if this what you mean, I have also checked https://yourdomain.com/phpinfo.php using my domain and I got a page 404 error

    Thread Starter murielzs

    (@murielzs)

    Hi,

    Have you managed to find a cause? Sorry, I am not very good at these things ??

    Thank you,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when saving custom css’ is closed to new replies.