• Resolved casparpt

    (@casparpt)


    Hi,

    I’m having a HTTP ERROR 500 in one specific page my website. All the other pages work OK.

    All this happened while editing the page in Gutenberg.

    Debug log indicates these 2 erros:

    Fatal error: Allowed memory size of 385875968 bytes exhausted (tried to allocate 20480 bytes) in /home/oc2sp3k8/eurotrucksimulator.org/wp-includes/class-wp-block-parser.php on line 417
    
    Fatal error: Allowed memory size of 385875968 bytes exhausted (tried to allocate 20480 bytes) in /home/oc2sp3k8/eurotrucksimulator.org/wp-includes/functions.php on line 4459

    Some specs:

    WordPress: 5.6 (Multisite)
    PHP: 7.4.11
    Server: Linux 3.10.0-962.3.2.l
    Web server: Apache
    memory_limit: 368M
    PHP max input variables: 3000
    PHP time limit: 300

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    An Allowed Memory Size Exhausted error means that your WordPress installation doesn’t have enough memory to achieve what you want. You can try out the following steps:

    – Increase your memory limit in wp-config.php
    – Increase your memory limit by editing php.ini. This is not a file that comes with WordPress so if you are unfamiliar with it you should contact your web host about increasing your memory limit.

    Thread Starter casparpt

    (@casparpt)

    Thanks t-p but that didn’t solved it and I’m still with the same exact problem.

    I added define( ‘WP_MEMORY_LIMIT’, ‘368M’ ); to my wp-config.php but didn’t solved it and still the same 2 errors.

    One thing I don’t understand is why those fatal errors indicate memory size exhausted with 20480 bytes if my memory_limit is set to 385875968 bytes.

    Can anyone advice here? I’m really stuck on this one :/

    Thanks in advance.

    • This reply was modified 3 years, 10 months ago by casparpt.
    Moderator t-p

    (@t-p)

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Thread Starter casparpt

    (@casparpt)

    I solved my errors!

    Before going deep into the investigation, I deactivated all the plugins and activated the Twenty Twenty-One theme, both actions didn’t fix the problem, so I assumed it was definitely a problem on that specific page.

    I did a step-by-step reproduction of what I was doing when the error appeared and concluded the following:

    I was trying to use a Reusable Block when the page crashed, so I focused there.

    I’ve tried to reach the Reusable Blocks Admin Menu by creating a draft page and adding a test block to the reusable blocks section. Nothing happened and the block wasn’t added. So I got convinced that the problem might be a corrupted saved block messing with the page.

    Since I wasn’t able to reach the Reusable Blocks Management Page, I was forced to install this plugin to manage my saved blocks.

    I deleted the block that caused the page crash and BOOM, the errors were gone and the page can be seen again.

    Gutenberg has such a tremendous potential but it’s so buggy and a mess to work with. You don’t need the fancy and expensive Elementor or similar builder to design a good and beautiful website. You just need Gutemberg working properly and without all the bugs it currently has.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTTP ERROR 500 and 2 Fatal Errors’ is closed to new replies.