View Full Version : 500 internal error when using batch uploading
homeofthenutty
11-30-08, 01:17 AM
Hi there,
my friends and I have been using coppermine on our site for a really long time now, but for some weird reason all I get when I try to upload a batch of images is this:
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
I uses to only get it when there was something wrong with my own internetconnection, but now my connection is perfectly fine but I've been getting that error for a little over 24 hrs anyway. I'm pretty sure it's got nothing to do with our galleries either considering we've been uploading just fine 'till last week and nothing has been changed by us.
Could someone help us out please?
PS: I've just found out that it doesn't happen in every gallery
Croc Hunter
11-30-08, 02:13 AM
Did you check the error log? OPS> Services> Site Tools> CGI error logs.
BrandonMiller
1-5-09, 01:31 AM
Did you check the error log? OPS> Services> Site Tools> CGI error logs.
I have tons of
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/www/r/rcrcadmin/sessions)
errors, so it looks like I have a sessions issue, attempting to open the .htaccess editor but it has taken over a minute and counting so far..
BrandonMiller
1-5-09, 02:02 AM
I changed my sessions path to another folder and same deal
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
the weird thing is with that error the path it reports is not the path I have set in my php.ini..
Have you checked the permissions on that folder to make sure that it is writable? It has been a while, but there were some reports of permissions changing on some directories after PowWeb did some updates.
BrandonMiller
1-5-09, 12:20 PM
they were 755, what should they be? I just opened it up to 777..
BrandonMiller
1-5-09, 12:23 PM
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
any other ideas? I still thing something is up with the sessions path since what I have in my php.ini is not what is being reported in the errors??
snowmaker
1-5-09, 12:40 PM
they were 755, what should they be? I just opened it up to 777..
I believe any scripts in a directory with permissions of 777 will fail automatically. A setting that Powweb has made on their servers I believe. 755 is fine, BTW. As for the sessions issue, sorry, I'm at a loss there..
Does Coppermine have a config file that might have that Session path in it somewhere? Does any part of that session path look familiar?
If you haven't done it, clear the log and then try to do the batch upload to see if that error show up in the log? I am sure it is related, but you would hate to be trouble shooting the sessions when that error is from another page.
Also, are you using the full path that they give you on the PHP.INI config page?
just brainstorming here, sorry if anything is too basic or doesn't make sense.
BrandonMiller
1-5-09, 03:31 PM
for one I am using gallery and joomla and they both do the same thing..
the sessions error comes on both apps..
Do you have another php.ini in htdocs?
The cgi error log was over 10 mb, which can cause issues with php scripts. I renamed the existing error log and created a new one. Wasn't able to reproduce any 500 errors on the site. Are you still seeing 500 errors?
BrandonMiller
1-5-09, 10:51 PM
The cgi error log was over 10 mb, which can cause issues with php scripts. I renamed the existing error log and created a new one. Wasn't able to reproduce any 500 errors on the site. Are you still seeing 500 errors?
aww man, get me all excited..
First time I tried
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
BrandonMiller
1-5-09, 10:53 PM
A quick check of my error log shows...
nothing? How do I get a 500 and no log?
BrandonMiller
1-5-09, 11:49 PM
just checked my gallery1 (I replaced it with gallery2 a long time ago which has died twice but 1 is still going)
and I show this
Warning!
Apache is not obeying the 'php_value' lines in your .htaccess file. Try entering the following into your web server's httpd.conf file:
<Directory /hermes/web10/bnnn/pow.username/htdocs/gallery>
AllowOverride Options FileInfo
</Directory>
If you are running PHP in CGI mode, this message is unavoidable.
php in cgi mode? heh? Is that a recent change or something?
BrandonMiller
1-5-09, 11:53 PM
FYI my old joomla is dead but the content is there
http://www.whiteknucklemotorsports.net/joomla/index.php?option=com_content&task=view&id=83&Itemid=27
I simply wanted to take that html from that page and put it here
http://www.whiteknucklemotorsports.net/content/index.php?option=com_content&view=article&id=46:a&catid=34:1983-toyota-pickup-qmopowerq
I can paste in a line at a time but any more and I get the 500. The html should not crash anything since it has been working for years on the other older joomla..
I'll go try to upload a few files in the gallery and see if I get the same 500 still and I'll keep posting to myself here until I get it fixed ;)
Still not convinced it is anything I can fix though..
ok, an attempt to import gallery1 data to gallery2 gave..
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
Yet... no errors in my log still!
Gallery 1 is batch upoading a ton of pics. It is a "flat file" but is the only thing actually working on my site right now..
To clarify the issue, I have had problems since august or even before so this is nothing new..
ok, the php.ini in my /htdocs does not match what comes up in the editor at http://members.powweb.com/member/cgiManagement/PHPplus.bml
where is that one reading??
I logged out of my (new) joomla and logged back in, then went to update the page I have been trying to update and I got the same thing again
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
and in my errors I still get..
Your CGI error log is currently empty.
funky..
You can't put php directives in .htaccess.
Make serverwide changes in the ops php.ini editor.
Make local changes per directory with php.ini in the required dir.
BrandonMiller
1-6-09, 12:38 AM
You can't put php directives in .htaccess.
Make serverwide changes in the ops php.ini editor.
Make local changes per directory with php.ini in the required dir.
I wasn't modifying the .htacess, I was using the php.ini editor but I have a php.ini in my /htdocs folder and I thought they were the same. No idea what that one is in there for (from october)
Now I see that it says you can have one for php4 and one for php5, I wonder if there is some sort of discrepency there. I can't troubleshoot verywell anymore since I get zero errors in my logs even though everything I do (connected to a database anyway) gets an error. My flat file gallery is still plugging away uploading a ton of pictures right now. Basically any MySQL stuff is not working..
BrandonMiller
1-6-09, 12:41 AM
kind of sad, my site pretty much died due to it not functioning and I myself started using facebook and all the other freebees to store my pictures. I pay for this and I can't get it to work. It's not like it is a new site either, it did work until it breaks. I try to fix and rebuild. I have done that atleast 10 times now, quite frustrating...
It was once a business (license and all) and a lot of places used my articles and are still linked to them, doesn't look to good. Next time I'll keep it all pure html I guess.
ok, changed the location of the sessions and set it to 755
retesting..
Bummer
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
BrandonMiller
1-6-09, 01:45 AM
You can't put php directives in .htaccess.
Make serverwide changes in the ops php.ini editor.
Make local changes per directory with php.ini in the required dir.
I think I see what your referring to know, that bold above is just what my gallery config wizard told me - I didn't set anything..
500 errors are commonly caused by .htaccess errors, which give no error messages.
Try a simple php script, then try one connecting to a db.
BrandonMiller
1-6-09, 02:01 AM
simple works, even to a db. Simple as in a single character change etc, get any more complicated and it doesn't.
What I am doing should work though, it already exists an another version of the same thing (trying to convert my old cms data to a new one)
Finally getting some errors to show in my log, but not related to the 500. You say related to .htaccess, I will take another look at that but the two apps I am having issues with are in different directories so they would have different .htaccess files. I guess if it is up from both apps it could affect them both.
It seems to be from an either time or file size limit, but the limits are quite a big larger than what I am doing
The new joomla for example:
I created a brand new db and installed a clean install to a new folder. I kind of think that rules out that so it has to be one of these files that are universal to my site or not even on my end, one or the other.
Croc Hunter
1-6-09, 02:03 AM
PM me your user/pass if you like Brandon and I'll check your stuff.
BrandonMiller
1-6-09, 02:16 AM
here is my php.ini
http://whiteknucklemotorsports.net/php.txt
here is a test article that I am trying to add to the new joomla that gives a 500 every time
http://whiteknucklemotorsports.net/test.txt
BrandonMiller
1-6-09, 02:23 AM
info pm'd thx
BrandonMiller
1-6-09, 03:32 AM
somehow croc got it going, got the one article up - but then I moved to the next one and got the same error :(
I even tried to break it down, this is all I pasted in and it died - no scripts, not even any links (ok, there is an email link)!
You can make the cuts with whatever tool you like from sawzall to die grinder and pneumatic air shears. I did all cuts with a cutting wheel, and a metal file set. Because my truck had allready been rolled the cab decided to twist when the top was cut completely through, because of this I will needed to reinforce the cab. I don't believe all trucks need this, but mine is all single wall and simply sliding a pice of steel between the cab pillars and screwing it from the backside will really keep it from tweaking it. Because the top is now cut off I drilled through the cage to mount the seat belts and it seems to be working fine. For support I bought a couple u-bolts from the local Home Depot and drilled throught the back of the cab placing the u-bolts around the cage and to the back of the cab.
In fear of stinky carpet I removed all the carpet interior and rolled on some Herculiner purchased from Kmart for a whoppin 100 bones. I still have a bit left and I did my doors, cab, and speaker box (not to mention the BED). My custom upholstry was removed to make way for waterproof seat covers and a custom center console was made, fully water proofed with a drain so that it can be used as an ice cooler for icy beverages on the trail. Below are some pictures with descriptions.
Please email if you would like me to add to this tech article with any further information. I will continue to update with any problems that I run into. Updates will be posted by date at the bottom of the page. I will say that the top has survived sevaral rain storms and is sealed quite well. I have see what happens if you cut your doors as per instructions and I am glad I cut the kit instead of the doors! For summertime I run my half doors that I also made myself. Please email me at webmaster@RCRC4x4.com if you have any questions. Please let me know what you think of this format (pictures with text) and let me know how I can write better articles in the future, see ya on the trail!
EDIT: I took out the last paragraph and it worked, put it back in and it got the 500. An email link..
EDIT again, it's not the email link. I took out that link and left the rest and I got the 500
grrrrrr
ok I think I am getting somewhere, my method of pasting is bringing in some funky javascript, things might be ok - stay tuned ;)
Could it be the length of the field? The original text is 1980 characters long including spaces (I didn't could them by hand :D) Is it restricted in some way in an ini file somewhere?
Try pasting the next into notpad and then copy the text from notepad and upload it. notepad should strip out any special formatting that other programs might be dumping into it.
If you are putting the article in on the back-end of Joomla, the editor should have an HTML button that would allow you to look at the actual code you have pasted in. Take a look at that and see if there is some hidden code. I know on one of my Joomla sites I was trying to paste some articles in and Joomla wouldn't save the page and it turned out there was a hidden character in the set of articles that was breaking the PHP code on save.
BrandonMiller
1-6-09, 10:56 AM
Try pasting the next into notpad and then copy the text from notepad and upload it. notepad should strip out any special formatting that other programs might be dumping into it.
If you are putting the article in on the back-end of Joomla, the editor should have an HTML button that would allow you to look at the actual code you have pasted in. Take a look at that and see if there is some hidden code. I know on one of my Joomla sites I was trying to paste some articles in and Joomla wouldn't save the page and it turned out there was a hidden character in the set of articles that was breaking the PHP code on save.
That is exactly what I am doing :)
It appears to be working now, doesn't answer why the gallery would 500 but I think Croc Hunter fixed that one :)
I think it is a mix of a bunch of things, slowly working them out.
4 billion articles to go :) (not really)
I am actually getting a 500 when I try and install a couple of the big Forums on my Joomla 1.5 install. I posted the issue in another thread and a PowWeb staff member made some suggestions to resolve them. I just need to find the time to work through it.
Croc Hunter
1-6-09, 06:03 PM
You are pasting the raw html code into the Joomla html dialog box aren't you Brandon? Joomla can bork at plain text or even incorrect <tags> there and tries to wrap code itself. Apart from the session syntax error in your php.ini else looked ok. When I get time I will look further if you wish.
For anyone reading on please don't give your OPS user/pass out. If someone here does ask for it please bring it to the attention of a Moderator or Staff.
I'm curious as to the error log not reporting errors. Were the errors encountered while you were within phpmyadmin or in some other location on the site?
Croc Hunter
1-6-09, 10:49 PM
That was my gut feeling mpk. Other than a few session entries the logs had like 3 "PHP Warning: require_once" referencing includes from Mambo.
BrandonMiller
1-6-09, 11:48 PM
You are pasting the raw html code into the Joomla html dialog box aren't you Brandon? Joomla can bork at plain text or even incorrect <tags> there and tries to wrap code itself. Apart from the session syntax error in your php.ini else looked ok. When I get time I will look further if you wish.
For anyone reading on please don't give your OPS user/pass out. If someone here does ask for it please bring it to the attention of a Moderator or Staff.
I think things are ok, and I really appreciate the help!
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.