• Resolved diorosaecrucis

    (@diorosaecrucis)


    Currently engaged to upgrade PHP on a production site. Migration of the site to Wetopi and changing from PHP 7.0 to PHP 8.1 works fine, but performing an in place upgrade of PHP 7.0 to 8.1 on Production host provides the following error:

    `[11-Feb-2022 03:30:05 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home2/MyWebsite/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 5252
    [11-Feb-2022 03:30:05 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) in /home2/MyWebSite/public_html/wp-includes/class-wp-hook.php on line 291

    To whom, or to where do I go to figure this out? Definite head scratcher.

    • This topic was modified 2 years, 9 months ago by Yui. Reason: moved to fixing wordpress
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter diorosaecrucis

    (@diorosaecrucis)

    Figured it out.

    The test server config had a much higher value for the memory limit defined in wp-config.

    Adding the following line to the prod wp-config.php file made the upgrade work like a charm.

    `define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

    Hope it helps anyone else. Happy WordPressing!

    Hello diorosaecrucis,

    I recommend asking at https://buddypress.org/support/ so the plugin’s developers and support community can help you with this.

    But for a possible quick solution, you can increase your wp-config.php and php.ini memory limit, for example, 256M.

    First, open your wp-config file and add the following code snippet:

    define('WP_MEMORY_LIMIT', '256M’);

    Then edit your php.ini file and locate the “memory_limit” line. Try to set it to 256M.

    If you don’t have access to php.ini, try to add this to your .htaccess file instead.

    php_value memory_limit 256M

    Additionally, as of this moment. WordPress 5.9 is not yet fully compatible with PHP 8.1 but all of the remaining issues are deprecation notices. These issues should not cause a fatal error on your site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP 5.9 and BuddyPress 10.00 break with PHP 8.1’ is closed to new replies.