Keyword

Cannot upload item photo

  • benbogart
  • benbogart's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57055 by benbogart
Cannot upload item photo was created by benbogart
I'm brand spanking new to K2 and still trying to decide if its useful to me.

Today I downloaded and installed the current release candidate and I am having trouble uploading an item photo. I go to the image tab, select the image and click save. The browser works for a while saying "waiting for [site]..." then stalls. I get a blank screen and no browser activity. When I return to the item page the photo has not uploaded.

Is this a bug or a problem with my installation. What other information should I include to help find out?

Please Log in or Create an account to join the conversation.

  • benbogart
  • benbogart's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57056 by benbogart
Replied by benbogart on topic Re: Cannot upload item photo
Ahh, turned on show errors and got this:

( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in [...]/administrator/components/com_k2/lib/class.upload.php on line 4855

Now I need to know if this is a problem with K2 or my server settings....

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #57057 by william white
Replied by william white on topic Re: Cannot upload item photo
Try searching php.ini in your sites root for "max_execution_time = 30"
Increase it until the problem goes away

Please Log in or Create an account to join the conversation.

  • benbogart
  • benbogart's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57058 by benbogart
Replied by benbogart on topic Re: Cannot upload item photo
Hmm, ok that may work on my local testing server (MAMP) but I don't think I can change those settings on the production server, a shared account at justhost.

I tried uploading a php.ini file but it had no effect.

Aren't most people having this problem then?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #57059 by william white
Replied by william white on topic Re: Cannot upload item photo
on your mamp installation....find the line in php.ini and edit it, if that works then on your live shared server, contact your host and get them to change it

Please Log in or Create an account to join the conversation.

  • benbogart
  • benbogart's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57060 by benbogart
Replied by benbogart on topic Re: Cannot upload item photo
I upped execution to 60, and then I got this error.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3600 bytes) in /Users/benbogart/Sites/tangojamdev/radiance/administrator/components/com_k2/lib/class.upload.php on line 3161

So I upped the memory_limit as well.

With the same settings on the production server (30 sec and 64Mb) I have no problem uploading the images. (which is good because there I can't change the settings).

Why so much memory and time demand to upload a 1Mb image?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #57061 by william white
Replied by william white on topic Re: Cannot upload item photo
Getting images to upload may be a server issue, but when people are looking at them, thats another issue...Will your site load more quickley with a 1mb image or with an image optomized for the web? This is interesting reading . There are sometimes good reasons for putting large images...the question is usually when?

Please Log in or Create an account to join the conversation.

  • benbogart
  • benbogart's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57062 by benbogart
Replied by benbogart on topic Re: Cannot upload item photo
Yep, I agree with all that. The question was why does K2 suck up more than 32MB of memory and run for more than 30seconds to upload and save a 1MB image?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #57063 by Shari
Replied by Shari on topic Re: Cannot upload item photo
I too am getting this error - recent update to Joomla 2.5 with K2 2.5.1 I can not upload an image using the image tab upload in K2. I can upload an image in the category image tab. Getting the error "
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3600 bytes) in
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3600 bytes) in mysite/administrator/components/com_k2/lib/class.upload.php on line 3161. I have many other sites on the server, all have no errors, it started to happen when I updated to the latest code. My server upload_max_filesize 80M, max_execution_time 500...

Is this a bug?

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #57064 by usher.net
Replied by usher.net on topic Re: Cannot upload item photo
Hi, I was having the same issue, but discovered it was related to the size of the image (dimensions) not the physical size. I resized the image and the upload worked first time.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum