Keyword

Server error 500

  • egdavies
  • egdavies's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #68467 by egdavies
Server error 500 was created by egdavies
Hi,

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.

More
15 years 11 months ago #68468 by Lefteris
Replied by Lefteris on topic Server error 500
Hi. What version are you using? I can not tell for sure but you can try the following:

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
  • egdavies's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #68469 by egdavies
Replied by egdavies on topic Server error 500
Apologies,

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
  • egdavies's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #68470 by egdavies
Replied by egdavies on topic Server error 500
Interesting, If I enter the image caption, credits and size overides it works.

Eddie

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

  • egdavies
  • egdavies's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #68471 by egdavies
Replied by egdavies on topic Server error 500
Seemed to have tracked this down to some permissions issue on 1and1 hosting. I tried another host and it works fine out of the box, anyone else using 1and1?

Eddie

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

More
15 years 10 months ago #68472 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
I'm also on 1and1 and having the same problem.

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

More
15 years 10 months ago #68473 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
Problem does not occur with smaller images (under 72KB and 500x375 pixels). When I took my test image and went to 600x450 and 88KB, it failed.

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

  • egdavies
  • egdavies's Avatar Topic Author
  • Offline
  • New Member
More
15 years 10 months ago #68474 by egdavies
Replied by egdavies on topic Server error 500
Same here. Yet if you use the attachments feature I have been able to upload quite large files. I hope the final version of K2 arrives soon! There are a number of projects that I'd love to use it on!

Eddie

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

More
15 years 10 months ago #68475 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
I have a project underway now that I'm basing on K2, so I'm hoping it comes along quickly. :)

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.

More
15 years 10 months ago #68476 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
K2 team - is there anything we can provide you to help troubleshoot this issue?

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

More
15 years 9 months ago #68477 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
Travis Prebble said:K2 team - is there anything we can provide you to help troubleshoot this issue?


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
  • egdavies's Avatar Topic Author
  • Offline
  • New Member
More
15 years 9 months ago #68478 by egdavies
Replied by egdavies on topic Server error 500
Same here :-(

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.

More
15 years 9 months ago #68479 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
Looking at the media/k2 folder, the images are actually being created for all the various sizes, so it looks like my folder permissions are fine there.

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.

More
15 years 9 months ago #68480 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
Got it working! Looks like it was a memory issue, so I had to do the following to "fix" the problem.

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.

More
15 years 9 months ago #68481 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
I was still having problems with larger (over 800x600) images, so I've been playing with this some more. I didn't notice the earlier note about setting the image overrides, but that works!

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.

More
15 years 9 months ago #68482 by Matthew Harless
Replied by Matthew Harless on topic Server error 500
I had the same problem and fixed it by changing to php5. On 1and1 it defaults to php4. You must add this to your htaccess file to enable php5:
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.

More
15 years 9 months ago #68483 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
Matthew Harless said:I had the same problem and fixed it by changing to php5. On 1and1 it defaults to php4. You must add this to your htaccess file to enable php5: AddType x-mapp-php5 .php
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.

More
15 years 8 months ago #68484 by Matthias Dohm
Replied by Matthias Dohm on topic Server error 500
Hi all,

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.

More
15 years 8 months ago #68485 by Travis Prebble
Replied by Travis Prebble on topic Server error 500
Matthias Dohm said:I hope this will help a bit.


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
  • Christian Carlos Chaparro Ponce's Avatar
  • Offline
  • New Member
More
15 years 8 months ago #68486 by Christian Carlos Chaparro Ponce
Replied by Christian Carlos Chaparro Ponce on topic Server error 500
Thanks for the tip Matthias

I was near to give up from this. Thanks again

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


Powered by Kunena Forum