• I get this accompanied by a 500 error on the site (php 8)

    PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 2621440 bytes) in wp-content/plugins/better-wp-security/core/lib.php on line 541

    541 is the first line below

    $html = "<div style=\"background: {$bkg};border-left: 4px solid {$bdr};padding: 1px 12px; margin: 5px 0 15px;\">";
    		$html .= '<p style="margin: 0.5em 6px 0.5em 0;padding: 2px;vertical-align: bottom;">';
    		$html .= is_wp_error( $message ) ? $message->get_error_message() : $message;
    		$html .= '</p>';
    		$html .= '</div>';
    • This topic was modified 2 years, 7 months ago by spiros.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi spiros,

    Is that error occurring on the frontend (website) or on the backend (WordPress Dashboard) or on both ?

    Please log into the WordPress Dashboard and navigate to the Tools > Site Health menu option. Click on the Info tab.

    Under Server section check the values reported for:

    • PHP memory limit
    • PHP memory limit (only for admin screens)

    Under WordPress Constants section check the values reported for:

    • WP_MEMORY_LIMIT
    • WP_MAX_MEMORY_LIMIT

    Sharing these memory values with the community will help us provide you with a solution.

    +++++ To prevent any confusion, I’m not iThemes +++++

    Thread Starter spiros

    (@spiros)

    Back end only. Server limit was lower, I increased in php.ini for php 8 to 256M and now I can see the one’s below. Are they ok?

    Server
    PHP memory limit 256M

    Wordpress constants
    WP_MAX_MEMORY_LIMIT 256M
    WP_MEMORY_LIMIT 40M

    • This reply was modified 2 years, 7 months ago by spiros.
    • This reply was modified 2 years, 7 months ago by spiros.

    Yup. Solved ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Allowed memory size exhausted’ is closed to new replies.