Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › WP Photo Seller: Fatal error – Out of memory
- This topic has 6 replies, 3 voices, and was last updated 9 years, 7 months ago by wuzzle.
-
AuthorPosts
-
November 10, 2014 at 6:37 pm #11762haydenaMember
Hello,
We recently upgraded – as advised – to a high level package with our ISP in order to cope with the demands of the WP Photo Seller software. Our package is with 1&1 and is the “1&1 Unlimited Plus” package as shown on this page:
[https://www.1and1.co.uk/hosting-linux?__lf=Static&linkOrigin=hosting&linkId=tariff-basic.featuretable#tariffs]
This seemed to work briefly for a while, but after checking again just now, we are getting the following message from our digital photography website page:
Fatal error: Out of memory (allocated 109838336) (tried to allocate 54331633 bytes) in /homepages/37/d199820819/htdocs/wp-content/plugins/wp-photo-seller/models/WPSCommon.php on line 2392
We have just dropped 1&1 a support ticket to try and see what’s happening, as the package we have should cope surely? In the meantime and in addition, we are sending you this request to see if you can shed any light asap on this issue?
We are currently losing money as a result, so naturally we need to sort this as quickly as possible.
Any help/guidance you can provide would be very much appreciated.
Kind regards,
Mr.A.Hayden.
November 10, 2014 at 6:52 pm #66697haydenaMemberSample page:
[http://www.hayden-media.com/shop-photography/gallery4/]
November 11, 2014 at 12:22 am #66698PeterMemberIf you are getting the “Fatal error: Out of memory” message it means that your server’s PHP memory_limit setting is too small. I would recommend that you ask your host provider to increase it to 256M. (Photo processing is very resource intensive and you need a server that can be up to the task)
ps: That sample page you provided produces a “not found” error.
November 21, 2014 at 3:54 pm #66699haydenaMemberHello Peter, Thank you for your reply.
Our package was more than adequate according to our ISP, but for some reason uploading the original photographs was still causing errors along the way.
But, we reduced our original source files to a smaller size and then uploaded, which seems to do the trick. Passing on here in case other customers were also having a bit of trouble.
[http://www.hayden-media.com/shop-photography/]
Thank you again for great support, it’s comforting to know you guys are there if needed, and is much appreciated
Kind regards,
Mr.A.Hayden.
March 20, 2015 at 8:55 pm #66700wuzzleMemberI see a general response that the out of memory errors are due to the PHP memory limits and the need for processing watermarks. I have all current software and lots of available memory:
PHP Memory Usage: 3.22 MB
PHP Memory Limit: 512M
PHP Max Upload Size: 25M
PHP Max Post Size: 25M
Yet any photo image greater than about 2 Mb will fail when it tries to display.
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 11392 bytes) in /data/15/1/89/36/1415851/user/1520359/htdocs/wordpress/wp-content/plugins/wp-photo-seller/models/WPSCommon.php on line 2446
I don’t want to reduce all my photos (especially if selling the digital file). Any suggestions as to other possible causes?
March 21, 2015 at 11:28 pm #66701PeterMemberhi wuzzle,
According to the error your system is only allowing you a maximum of 41943040 of memory (which is approx 41.9M) and not the 512M you say that you have. This means that your server must have some configuration somewhere restricting your memory limit to 41.9M.
Check with your host provider and ask them to set the php memory_limit to 256M. (Show them the error and they should know what to do)
April 25, 2015 at 2:37 pm #66702wuzzleMemberHere is some info that might be useful to others.
Editing the config file ( wp-config.php )is required, but first determine how much memory you have or are allowed.
The amount of available memory you have/allowed will be determined by your ISP and differ from Shared/virtual/dedicated server. Get that info from your ISP.
If you edit the config file and tell it you have more memory than you really do
( e.g. define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ ); ) but you actually only have 256 available it does not necessarily default to the 256. It appears to ignore the definition and default to a much smaller number. WordPress will report the 512 but that is not true.
So be sure you match the define statement to the amount of memory you actually have available.
-
AuthorPosts
- You must be logged in to reply to this topic.