Fatal Error – Allowed memory size of 41943040 bytes exhausted…

Support Forums for LiveMesh Themes & Plugins Forums FitPro Theme Support Fatal Error – Allowed memory size of 41943040 bytes exhausted…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15949
    Maxklimmekmaxklimmek
    Member

    Hi There,

    I’ve started building a website with the FitPro theme.

    I keep getting the following error when trying to edit/customise the theme or when I try to edit features using the visual composer:

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 348896 bytes) in /home/gfitness/public_html/wp/wp-admin/includes/admin.php on line 52

    Have you got any idea why this is happening?

    #15950
    Maxklimmekmaxklimmek
    Member

    Should have done a Google search first 🙂

    Increasing memory allocated to PHP
    Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of xxxxxx bytes exhausted”.

    This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at the beginning of /wp-includes/default-constants.php) for single site and 64MB for multisite, so the setting in wp-config.php should reflect something higher than 40MB or 64MB depending on your setup.

    WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

    Please note, this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

    Increase PHP Memory to 64MB

    define( ‘WP_MEMORY_LIMIT’, ’64M’ );
    Increase PHP Memory to 96MB

    define( ‘WP_MEMORY_LIMIT’, ’96M’ );
    When in the administration area, the memory can be increased or decreased from the WP_MEMORY_LIMIT by defining WP_MAX_MEMORY_LIMIT.

    define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ );
    Please note, this has to be put before wp-settings.php inclusion.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘FitPro Theme Support’ is closed to new topics and replies.