• Resolved WanDal

    (@dawasi)


    Hello

    When we upgrade our website from PHP 7.4 to PHP 8.x, after some time we get the PHP error message:

    PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in \wp-content\plugins\wp-typography\vendor-scoped\mundschenk-at\wp-data-storage\src\class-transients.php on line 116

    Once we clear the cache of wp-Typography, the page works again for some time.

    In the post https://www.ads-software.com/support/topic/incompatibility-errorcode-500 I read that this could be due to too many plugins. Well, our website actually uses quite a lot of plugins. However, they are all needed and I can’t just disable them.

    I wonder why the problem only occurs with PHP 8.x. Can you explain this to me? And do you have a tip on how I can further analyze the actual problem. After all, the extension won’t take up so much memory for no reason.

    Many thanks
    WanDal

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pepe

    (@pputzer)

    Hi @dawasi! wp-Typography needs a certain amount of memory because it uses a DOM parser. Other plugins also need their slice of RAM – more plugins, more RAM. Memory management behavior can change between PHP versions.

    So there is really no problem useful fix except to increase your PHP memory_limit setting (while reasonable, 256 MB might not be enough with a lot of plugins or large posts). Which plugin, if any, triggers an OOM condition depends on plugin load order and the specific content the request tried to access. While you theoretically can try to profile memory usage using something like Blackfire, it will not be worth your while.

    Thread Starter WanDal

    (@dawasi)

    Hi @pputzer

    Thank you very much for your explanations. Accordingly, I have not performed any further analyses and have increased the memory limit. So far, no more errors have occurred.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Memory limit exhausted in PHP 8.x’ is closed to new replies.