• Hey guys

    I’m having a weird problem – the site is running smoothly but wp-admin causes o page to display (or chrome shows error 500).

    I’m not expert in tech side of things but i did look at the error.log and can see that the error started showing up a couple of days ago.

    It points to error on functins.php line 434 which is ‘ return serialize( $data );’

    can these too issues be related?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Otherwise, here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 64 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 128MB)

    Borge

    (@joeborge0914)

    Sometimes, even if you add those in php.ini and htaccess it will still not work .if that doesnt work you can add this in wp-config.php.

    //increase WP Memory Limit
    define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’);

    Thread Starter diggy

    (@diggy)

    I’ve tried a to remove couple of the plugins, the php-ini shows i have 300M limit

    sometimes i get in, sometimes not.. but the front-end seems to be running just fine…

    Moderator James Huff

    (@macmanx)

    Wow, 300? Ok, there is definitely a plugin or theme function hogging the majority of the resources then.

    You’ll have to identify which one by doing the troubleshooting steps listed above.

    Borge

    (@joeborge0914)

    basically it depends on the error message. If it says

    “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1853353 bytes) in “path”/

    it means it used the 33.554432 MB allowable Mem limit. Firstly, James Huff’s instructions is correct as the trouble shooting. However, sometimes, “as mentioned before” sometimes, it does not work even you set the php.ini to 512M as it fails to synchronize especially that default-constants.php set the limit only up to 256M.

    Sometimes changing the code limit in default-constants.php is the only way to fix…but they said its not advisable.

    Try ask your host about it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allowed memory size exhausted, functions.php’ is closed to new replies.