Skip to content

PHP Fatal error: Allowed memory size exhausted #2

@airflo

Description

@airflo

Right after installing and activating the plugin, I get a server error 500 and these error messages in the debug log:

PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /***/wp-includes/theme.php on line 629
PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /***/wp-includes/class-wp-fatal-error-handler.php on line 37

After having set the memory limit to 512 MB, I get these instead:

PHP Fatal error:  Out of memory (allocated 526921728) (tried to allocate 262144 bytes) in /***/wp-includes/theme.php on line 133
PHP Fatal error:  Out of memory (allocated 526921728) (tried to allocate 262144 bytes) in /***/wp-includes/functions.php on line 4301
PHP Fatal error:  Out of memory (allocated 526921728) (tried to allocate 262144 bytes) in /***/wp-includes/theme.php on line 133
PHP Fatal error:  Out of memory (allocated 526921728) (tried to allocate 262144 bytes) in /***/wp-includes/functions.php on line 3848

The only thing that help was to limit the total amount of hooks the plugin keeps track of by editing the code in class-hook-profiler-engine.php. But then the data is incomplete.

Any ideas how to solve this issue? I am using PHP 8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions