- Posts: 6
COMMUNITY FORUM
Server error 500
- egdavies
-
Topic Author
- Offline
- New Member
Anyone else getting a Internal Server Error when adding an image to a item? I have tried various suggested fixes with no luck (file permissions in media folder, clean joomla install)
Any ideas?
Eddie
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
1. Ensure that the php files of the component have execute permissions.
2. Check that PHP GD extension is installed.
3. Try to upload a smaller image.
4. Check that your file's size doesn't exceed the server's upload limit.
Please Log in or Create an account to join the conversation.
- egdavies
-
Topic Author
- Offline
- New Member
- Posts: 6
Am using Joomla 1.5.11 with K2 2.0.0. GD is installed and I have tried small images (less than 100k) server limit should be not a problem (20MB) Which files in the component need execute permissions? (All of them?) I did have K2 v1.0.2 installed prior to this, though as I have tried v2.0.0 on a clean joomla installation and itr sill errors.
Thanks again,
Eddie
Please Log in or Create an account to join the conversation.
- egdavies
-
Topic Author
- Offline
- New Member
- Posts: 6
Eddie
Please Log in or Create an account to join the conversation.
- egdavies
-
Topic Author
- Offline
- New Member
- Posts: 6
Eddie
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
Please Log in or Create an account to join the conversation.
- egdavies
-
Topic Author
- Offline
- New Member
- Posts: 6
Eddie
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
This image size issue is a big one, though. It would be great if K2 could reference an image already on the hosted file system rather than requiring an upload.
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
Wanted to mention that I just upgraded to V2.0 final and am still getting this error. I will likely abandon the use of K2 if I can't figure out what's going on.
Please Log in or Create an account to join the conversation.
- egdavies
-
Topic Author
- Offline
- New Member
- Posts: 6
I've had to go over to drupal for the project I was going to use K2 on. But I will be using K2 on other projects (different servers seem to work OK)
Keep up the good work though!
Eddie
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
I also upgraded the class.upload.php to version 0.28 to see if that would fix any problems. It didn't.
And I unfortunately do not have access to the Apache error logs in order to see what, exactly, the problem is. :(
To answer Lefteris' list:
1. They do
2. It is
3. Did that with success, details elsewhere in thread
4. It definitely does not. The limit is set to 20MB and my image files were all under 1MB.
What else in involved with the item saving process around images? I really want to figure this out.
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
Created php.ini in my root folder with these settings:
max_execution_time = 90
set_time_limit = 0
post_max_size = 20M
max_input_time = -1
memory_limit 64M
Then appended this to my .htaccess:
SetEnv PHPRC /path/to/root/folder
That seems to have done the trick. So if you're a 1and1 user, give that a shot.
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
For each item, if I set the caption, credits, and then set item and category image settings to "show" instead of "inherit", everything works great.
Any ideas why this would be?? I can live with this for now as a procedural process, but it would be great to have this addressed.
I can now process greater than 1MP images with ease.
Please Log in or Create an account to join the conversation.
- Matthew Harless
-
- Offline
- New Member
- Posts: 1
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Before that it was very random whether or not an item would save properly.
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
AddHandler x-mapp-php5 .php
I had AddType in there already. Adding AddHandler didn't help the situation. And this week, not even my workaround is working.
I'm just going to have to come back to K2 some time later and continue on without it.
Please Log in or Create an account to join the conversation.
- Matthias Dohm
-
- Offline
- New Member
- Posts: 5
I finally managed to get the image upload working after switching to php5 and creating a php.ini did not solve the problem. So for those of you who use 1and1 hosting and still receive this error:
The problem occurs inside the class.upload.php (administrator/components/com_k2/lib/class.upload.php). Starting somewhere around line 4080 there is a block (//converts image from true color, and fix transparency if needed) which looks at every single pixel of the resized image. For the XL and the L size, this giant loop is too big (at least on a 1and1 server). So if you just comment out or delete this section the image upload works perfectly.
There might still occur some problems when you try to upload a GIF-image, but I tested it for JPGs and PNGs which worked fine.
I hope this will help a bit.
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
It helped immensely and greatly increased the speed of posting new items for me! Thanks!
Please Log in or Create an account to join the conversation.
- Christian Carlos Chaparro Ponce
-
- Offline
- New Member
- Posts: 7
I was near to give up from this. Thanks again
Please Log in or Create an account to join the conversation.