How to resolve the Fatal error: Out of memory problem in vBulletin?

If you see an error message similar to the following one:

Fatal error: Out of memory (allocated 11111111) (tried to allocate 1111 bytes) in your_php_file.php on line 111

it means that the execution of the above php file needs more that the allocated memory.

A possible workaround is:

1. Open your vBulletin include/config.php file.

2. Below the php open tag add the following line:

ini_set('memory_limit', '128M');

The code will look as follows:

<?php
ini_set('memory_limit', '128M');

In this way you will increase the memory limit for your script to 128MB.

The same solution can be applied for different scripts. You should paste the above code in a file which is always invoked when the script is executed. Usually such files are the configuration ones.

You need help with an application? SiteGround is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!