[opensuse] WordPress thumbnails not working ??
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? Thanks! JIM -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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?
Thanks!
JIM
hi jim apache error log is always a good place to look ;-) greetings becki -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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?
Thanks!
JIM
hi jim
apache error log is always a good place to look ;-)
greetings becki
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? Thanks to all! JIM -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 12/08/11 08:15, James Hatridge escribió:
268435456 bytes
You are doing something wrong, the script wants 256 MB ram, your memory limit is wrongly set. Ensure it says "memory_limit = 256M" or more.. in the php.ini located in /etc/php5/apache2/php.ini and restart the webserver... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi all!
El 12/08/11 08:15, James Hatridge escribió:
268435456 bytes
You are doing something wrong, the script wants 256 MB ram, your memory limit is wrongly set.
Ensure it says "memory_limit = 256M" or more.. in the php.ini located in /etc/php5/apache2/php.ini and restart the webserver...
I've been beating on this all afternoon and learned a few things. There must be a bug in the WordPress software. When I add or edit a page I can use the "Upload image" button. But when I try to add or edit a product the button does not work and I get this out of memory error. Any ideas? Thanks JIM PS: I'm trying to contact the company that makes "e-Commerce" but I've not got them yet. They don't seem to have any way to contact them. -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
El 12/08/11 15:00, Michael Powell escribió:
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.
This is no news, the code probably uses GD to process the thumbnails, that will usually require a good chunk of memory, more than 256 M if they are a lot of pics. PHP Will free memory after request shutdown, not after each image processed.
I don't buy that PHP should run out of memory with '(tried to allocate 32 bytes)'.
I do, the memory allocator simple ran short of a few bytes, it is expected behaviour in this particular case. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Cristian Rodríguez wrote:
El 12/08/11 15:00, Michael Powell escribió:
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.
This is no news, the code probably uses GD to process the thumbnails, that will usually require a good chunk of memory, more than 256 M if they are a lot of pics.
It should not run away endlessly, e.g. keep throwing more and more memory at it and it just continues to eat it all no matter how much you give it is indicative of broken code. I've also probably never processed enough thumbnails to matter either. Last time I had a problem with GD it was an extension load order thing. It was over a year ago and if memory serves it was because you couldn't load pdf.so before gd.so, or something like that. Sometimes load order matters, but that is usually pretty easy to spot. And probably not germaine to the problem. [snip] -Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Mike et al!
James Hatridge wrote:
HI all,
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
I googled like you suggested and I found a couple of ideas to try. But I've been messing with this all day. So I'm going to cut it off for the night and go watch Jerry Springer! :) Thanks! JIM -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi all! This is odd! I found on the 'net someone else that had the same problem and he fixed it by uninstalling the plugin and reinstalling it. So I tried it too and now my system works. Thanks to everyone that helped! JIM -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Administrator Beckspaced.com
-
Cristian Rodríguez
-
James Hatridge
-
Michael Powell