James Hatridge wrote:
HI all,
On 8/12/2011 12:32, James Hatridge wrote:
Hi all,
I'm trying to work up a web site using WordPress, e-Commerce, PHP, mysql, and SuSE 11.4.
When I try to add or edit a product listing I can not add an image. I click on the upload image button and nothing happens. I've added more memory to PHP, from 128 to 500 and installed the PHP-GD. But nothing seems to help. Any ideas?
[snip]
If is a production site be careful with the following suggestion, e.g. you do not want this information visible to user. Find and turn on Wordpress logging to the debug level, and do the same in php.ini for PHP. You will most likely get too much information and have to trace through it for a while before you can get a handle on it. I haven't used Wordpress in a long time. But the 'divide and conquer' strategy can still be used. Try and temporarily disable the plugin mentioned in the error before. Then examine Wordpress/PHP's memory use and see if it looks normal just to confirm the problem is indeed isolated to that plugin.
OK, I found the log and this was the error I got.
########## [Fri Aug 12 14:07:20 2011] [error] [client ::1] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home/WartHog/public_html/wp-content/plugins/wp-e-commerce/wpsc-
includes/form-
display.functions.php on line 123, referer: http://localhost/~WartHog/wp- admin/edit.php?post_type=wpsc-product ###########
So I doubled the memory in PHP.ini from 500m to 1000m and I still get this error. Should I allow more memory or what?
No. Look for whatever PHP error is wrong. Probably the plugin. I strongly suspect you could continue to double your memory repeatedly and it will not fix the problem. I don't buy that PHP should run out of memory with '(tried to allocate 32 bytes)'. Check write permissions wherever in the file system this plugin is trying to write. In the meantime Google: 'PHP Fatal error: /wp-content/plugins/wp-e- commerce/wpsc-includes/form- >' I counted 324 hits there on that line. Sorry can't be more help, (I'm no expert). Good Luck with it! :-) -Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org