• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9600

O

om4knowledge

Guest
What does it mean?

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9600 bytes) in /usr/local/sitebuilder/include/PEAR/Image/Transform/Driver/GD.php on line 146

I received this error when attempting to upload a single photo.
 
It looks like there is not enough memory for file uploading. Try to increase it in php.ini configuration file. I will show you on the example, how to make sure that appropriate configuration file is used:

# sb_config --help|grep php
--phpcli_path PHP CLI executable [/opt/php52/bin/php5]
--phpcgi_path PHP CGI executable [/opt/php52/cgi-bin/php5]
# /opt/php52/bin/php5 -i|grep php.ini
Configuration File (php.ini) Path => /opt/php52/etc/php.ini

Open file /opt/php52/etc/php.ini with editor and find following directive:

memory_limit = 32M ; Maximum amount of memory a script may consume (16MB)

Increase it, for example, to 64M, restart apache service and try upload one more time.
 
Back
Top