Keyword

Cannot upload item photo

  • benbogart
  • benbogart's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 4 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
13 years 1 month 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.

More
12 years 11 months ago #57065 by Thomas
Replied by Thomas on topic Re: Cannot upload item photo
I had convinced my customer to use K2, because he has not to resized files (what he cannot do / abel to do it). And now I must tell him, that he has to do it... bad thing.
I hope that there is a solution asap.
Thanks

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

More
12 years 11 months ago #57066 by Lefteris
Replied by Lefteris on topic Re: Cannot upload item photo
Hi. Anyone having problems with K2 images: Please ensure that you are using the latest stable versions of K2 and Joomla! and that your server meets the requirements. You need GD enabled. You also need to check that permissions are fine. Finally you may need to tweak your server settings regarding the maximum execution time and the memory limit.

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

More
12 years 11 months ago #57067 by Olga
Replied by Olga on topic Re: Cannot upload item photo
Could you specify more the server requirements? I have 64 Mb memory limit and the latest versions of K2 and Joomla installed but the same error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 900 bytes) in /home/uamaster/public_html/administrator/components/com_k2/lib/class.upload.php on line 3161

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

More
12 years 11 months ago #57068 by Andrea Cattabriga
Replied by Andrea Cattabriga on topic Re: Cannot upload item photo
Hello,
I first tested K2 2.5.5 on Joomla 2.5.4 (PHP 5.3.6 -MemoryLimit:32Mb) and works perfect

Then I tried K2 2.5.6 on Joomla 2.5.6 (same server) and got the following problem:

Images in item is not uploaded - no advices either on module manager or debuging the site.
Zipped archives of images in item successfully uploaded and showed in gallery.

Advices?

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

More
12 years 11 months ago #57069 by Lefteris
Replied by Lefteris on topic Re: Cannot upload item photo
@Olga

There is no safe value. If for example you are trying to upload a very large resolution image probably 64MB will not be enough. So check that your image is not enormous.

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

More
12 years 11 months ago #57070 by Lefteris
Replied by Lefteris on topic Re: Cannot upload item photo
@Andrea Cattabriga

Try to update K2 to the latest stable version (2.5.7). Also, even if you are on the same server you need to ensure that the server setup is also the same. For beginning check that the /media/k2/items/src and /media/k2/items/cache directories exists and are writable.

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

More
12 years 11 months ago #57071 by mehrdad
Replied by mehrdad on topic Re: Cannot upload item photo
Same problem... :dry: :huh: :unsure: :(

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


Powered by Kunena Forum