• Hello Team,

    I have issue with my website error message ” Allowed memory size ” i change my memory size from 64M TO 256M in PHP.ini
    also in default-constants.php and wp-config.php change to 256M

    still im getting this issue i cant login my WP admin

    default-constants.php setting

    function wp_initial_constants() {
    global $blog_id;

    // set memory limits
    if ( !defined(‘WP_MEMORY_LIMIT’) ) {
    if( is_multisite() ) {
    define(‘WP_MEMORY_LIMIT’, ‘256M’);
    } else {
    define(‘WP_MEMORY_LIMIT’, ‘256M’);
    }
    }

    if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) {
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ );

    wp-config.php setting

    define( ‘WP_MAX_MEMORY_LIMIT’, ‘256MB’ );

    this is the error message when i login to WP admin panel im getting

    Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 229161 bytes) in /***/***/***/wp-content/themes/***/***/classes/class.options_machine.php on line 182

    please Help

    Thanks

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