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 [2009/04/21 22:58] jonyo added more info |
tutorials:memory_errors:start [2015/06/02 14:30] (current) geojames [What Memory Limit Should Be] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP Memory Limit Error When Using Software | + | ====== PHP Memory Limit Errors |
- | This error most often happens when clients of your 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 ===== | ||
- | The above error means that PHP does not have sufficient memory to do what it is trying to do within our software. | + | The above error means that PHP does not have sufficient memory to do what it is trying to do within our software. |
+ | |||
+ | As an aside if you having to copy a large amount of categories that would cause such a problem we might suggest readjusting some of your thought processes in using SOOOO many categories obviously where MANY of them are exact copies from one branch of the category structure to another. | ||
===== Errors When Uploading Images ===== | ===== Errors When Uploading Images ===== | ||
Line 20: | Line 29: | ||
Also note that if your server is a 64-bit server, it will need more memory than a 32-bit server, as 64-bit servers have a larger memory footprint than 32-bit servers. | Also note that if your server is a 64-bit server, it will need more memory than a 32-bit server, as 64-bit servers have a larger memory footprint than 32-bit servers. | ||
+ | |||
+ | =====When using the Oodle or RSS feed features===== | ||
+ | |||
+ | You see a memory limit error when using the Oodle or RSS feeds usually because you are trying to display too many listings through that feed for the amount of memory you have allocated to display it in. You can either do one of two things here. You can lower the number of listings you do try to display through those feeds to a point where you no longer see the error or you can increase the memory limit in php to a high enough limit to allow you to display all the listings you want to display through those feeds. | ||
===== Where the Error Appears ===== | ===== Where the Error Appears ===== | ||
Line 27: | 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. |
===== 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. |