Support » Fixing WordPress » Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate

  • After Updating the website, when trying to access it the following error message appeared

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in E:\xampp\htdocs\wp-includes\class.wp-scripts.php on line 641

    I try to edit the wp_config file and update the line
    define( ‘WP_MEMORY_LIMIT’, ‘512M’ ) to be 1024 but the problem still exist.
    anyone know how can I fix this error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    go to your php.ini and increase the php memory limit there.

    Thread Starter walaasadik

    (@walaasadik)

    I did that and change the memory limit in PHP.ini but the error still exists
    I updated the memory in php.ini like the following
    ini_set(‘memory_limit’, ‘1024M’); but this error appear
    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in E:\xampp\htdocs\wp-includes\class.wp-scripts.php on line 641

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in E:\xampp\htdocs\wp-includes\class-wp-fatal-error-handler.php on line 106

    benniledl

    (@benniledl)

    Hello, you can set the memory limit in php.ini as followed:
    memory_limit = 1024M

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.