This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:memory_errors:start [2010/08/20 18:28] jonyo |
tutorials:memory_errors:start [2015/06/02 14:30] (current) geojames [What Memory Limit Should Be] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP Memory Limit Errors ====== | ====== PHP Memory Limit Errors ====== | ||
- | This error most often happens when clients of your site are uploading images to attach to their listings but can occur in some instances under basic script use with the default php memory limit value set at 8MB. The most common error looks something like (if you see one in the browser at all): | + | This error most often happens when clients of your site are uploading images to attach to their listings but can occur in some instances under basic script use with the default php memory limit value set at 8MB, 16MB, 24MB or 32MB (most recently). The most common error looks something like (if you see one in the browser at all): |
Fatal error: Allowed memory size of ######## bytes exhausted (tried to allocate ##### bytes) in / | Fatal error: Allowed memory size of ######## bytes exhausted (tried to allocate ##### bytes) in / | ||
+ | | ||
+ | Memory usage by the script will only increase with time as we try to ever decrease page load times within the software. | ||
+ | |||
+ | |||
+ | ===== Errors within the Geographic Setup and Geographic Navigation Addon Regions Admin Tools ===== | ||
+ | |||
+ | We've seen this appear to more clients with the release of v6. This page loads all regions within the system to make the admin tool a lot easier to use. This means that more memory is used to create the page in the first place thus the increase in memory limit errors. | ||
===== Errors within the Categories admin tool...usually copying categories ===== | ===== Errors within the Categories admin tool...usually copying categories ===== | ||
Line 33: | Line 40: | ||
===== What Memory Limit Should Be ===== | ===== What Memory Limit Should Be ===== | ||
- | As far as what memory limit you should have there is no telling. | + | As far as what memory limit you should have there is no telling. |
- | Also note that if your server is a **64-bit server**, it will need more memory than an almost identical 32-bit server, as 64-bit servers have a larger memory footprint than 32-bit servers, that is just how the hardware works. | ||
===== How and Where to Change the Memory Limit ===== | ===== How and Where to Change the Memory Limit ===== | ||
- | The memory limit is a PHP environment variable set within the php.ini file. The php.ini file provides all of the configuration information PHP needs at start up. Many hosts allow you the ability to edit the php.ini file directly. | + | The memory limit is a PHP environment variable set within the **php.ini** file. The php.ini file provides all of the configuration information PHP needs at start up. Many hosts allow you the ability to edit the php.ini file directly. |
+ | |||
+ | Changing the php.ini file is **not something Geo support can do**, it is essentially a **server setting** and therefore you need to **contact your host** if you are not sure how to change it. |