Support » Knowledge Base » General questions » Scripts troubleshooting »
In case of insufficient amount of server memory execution of a PHP script may result in appearance of the following diagnostic message in your browser:
Fatal error: Allowed memory size of 8388608 bytes exhausted
(tried to allocate 311296 bytes) in /path_to_file/file.php on line 252
To eliminate such an error, ensure availability of the amount of server memory exceeding the value specified before the word bytes in the text of the message (8388608 in the above example).
Tip: To obtain an equivalent in megabytes, divide the memory limit value by 1048576 (i.e. the result of multiplication of 1024*1024). In the above example the memory limit value expressed in megabytes is equal to 8388608/(1024*1024) = 8 MB.
Should the server have a greater amount of available memory than is specified in the error message, increase the memory_limit parameter in the PHP configuration and the "Memory Limit" parameter in WebAsyst Installer section "Settings -> General Settings".
Note: Leaving field "Memory Limit" empty will apply the default memory limit of 32 MB.