- Posts: 25
COMMUNITY FORUM
Cannot upload item photo
- benbogart
-
Topic Author
- Offline
- Junior Member
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
-
Topic Author
- Offline
- Junior Member
- Posts: 25
( ! ) 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.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Increase it until the problem goes away
Please Log in or Create an account to join the conversation.
- benbogart
-
Topic Author
- Offline
- Junior Member
- Posts: 25
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.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- benbogart
-
Topic Author
- Offline
- Junior Member
- Posts: 25
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.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- benbogart
-
Topic Author
- Offline
- Junior Member
- Posts: 25
Please Log in or Create an account to join the conversation.
- Shari
-
- Offline
- New Member
- Posts: 2
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.
- usher.net
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Thomas
-
- Offline
- New Member
- Posts: 5
I hope that there is a solution asap.
Thanks
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Olga
-
- Offline
- New Member
- Posts: 9
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.
- Andrea Cattabriga
-
- Offline
- New Member
- Posts: 1
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- mehrdad
-
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.