• M Z

    (@zohaib3044)


    I’m moving a website from the old server to a new server. After uploading the backup to a new server Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 8192 bytes) in /home4/modabasstore/rayangroup.co.uk/wp-includes/functions.php on line 4677 error occurred.
    How do fix this? Thank you.

    • This topic was modified 4 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • You can try to add higher size of memory limit in wp-config.php, like this: define(‘WP_MEMORY_LIMIT’, ‘4M’);
    (2097152 bytes equal 2M, so 4M must be enough)

    It’s possible that memory size is limited in PHP settings and you can try to change it in .htaccess like this:
    php_value memory_limit 4M
    (look also PHP “phpinfo()” function)

    It can be hosting limit and then you need to check memory size capacity on current tariff.

Viewing 1 replies (of 1 total)
  • The topic ‘Allowed memory size of 2097152 bytes exhausted (tried to allocate 8192 bytes)’ is closed to new replies.