Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: bdtcomp on August 31, 2014, 08:20:56 PM

Title: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on August 31, 2014, 08:20:56 PM
I am starting a new thread on my can't add new smileys. I have an Internal Server Error 500.

Quote
Internal Server Error.
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I changed my forum form Windows to Linux. BUT I also upgraded in patches from 2.0.2 to 2.0.8. So it is possible that the problem aroused from updating, but not sure. I talked to GoDaddy for quite some time, they got on the forum, and we were able to look at the error log.

Quote
Apply Filter: Only show the error messages of this URLhttp://forum.mywebsite.com/index.php?action=admin;area=smileys;sa=addsmiley;cdc2ce3=1be9b863c26643ca1c254f367a68cb64Apply Filter: Only show the errors with the same message8: Undefined offset: 0Apply Filter: Only show the errors from this file File: /home/mydirectory/public_html/mywebsite/Themes/default/ManageSmileys.template.php
Line: 314

I am able to delete smileys. I don't know if this is a configuration because I am now on Linux, or it could have happened with the updates from 2.0.2 to 2.0.8.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Arantor on August 31, 2014, 08:33:42 PM
That error would not generate a 500 Internal Server Error.

I'd ask for the system error log.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on August 31, 2014, 09:13:22 PM
Arantor, where do I get the System Error log from?
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Arantor on August 31, 2014, 09:18:46 PM
You ask the host for it, they should be able to tell you where it is, since they configured it...
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on August 31, 2014, 09:34:57 PM
On  phone with GoDaddy now.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Colin on August 31, 2014, 09:39:18 PM
Cross your fingers :)
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on August 31, 2014, 10:16:02 PM
I downloaded the server file and it was huge, over 300,000 bytes compressed. The last few lines are from this morning, so I don't think it has the adding smileys on it.

Quote142.136 - - [31/Aug/2014:04:49:43 -0700] "GET /Smileys/default/uc16.gif HTTP/1.1" 304 - "http://forum.bdmoo.com/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
24.196.142.136 - - [31/Aug/2014:04:49:43 -0700] "GET /Themes/default/images/upshrink2.png HTTP/1.1" 304 - "http://forum.bdmoo.com/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
50.42.140.200 - - [31/Aug/2014:04:56:38 -0700] "GET /index.php?action=keepalive;time=
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on August 31, 2014, 10:37:48 PM
I just added an online store with MySQL database that I worked on back in 2011, and connected the database to. I was able to add an item with no problem. I hadn't touched this program in over two years.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 01, 2014, 09:35:29 AM
Colin,

My server updates I believe daily, so I have yesterday's log, and posting the snippet that is represented by a Error 404 which is the error I also get with the Internal Server Error 500. That isn't my forum name, I put in a dummy name.

One more thing, I have an intact forum on my Windows hosting still for at least a week. But I don't have a domain on it. I will call GoDaddy to see if there is a way I can connect to it. The MySQL database is there too, and it's Version 2.0.8. (I may be able to compare Server logs there too.

Note, I checked the add Smileys code in ManageSmileys.tempate.php & didn't see any difference in code.

Quote50.42.140.200 - - [31/Aug/2014:10:33:04 -0700] "GET /Smileys/default/00000549.gif HTTP/1.1" 200 3685 "http://myforum.com/index.php?action=admin;area=smileys;sa=addsmiley;cdc2ce3=1be9b863c26643ca1c254f367a68cb64" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.102 Safari/537.36"
50.42.140.200 - - [31/Aug/2014:10:33:04 -0700] "GET /Themes/default/images/upshrink2.png HTTP/1.1" 304 - "http://myforum.com/index.php?action=admin;area=smileys;sa=addsmiley;cdc2ce3=1be9b863c26643ca1c254f367a68cb64" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.102 Safari/537.36"
50.42.140.200 - - [31/Aug/2014:10:33:20 -0700] "GET /Smileys/default/sleeping-puppy.gif HTTP/1.1" 200 26719 "http://myforum.com/index.php?action=admin;area=smileys;sa=addsmiley;cdc2ce3=1be9b863c26643ca1c254f367a68cb64" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.102 Safari/537.36"
50.42.140.200 - - [31/Aug/2014:10:33:33 -0700] "POST /index.php?action=admin;area=smileys;sa=addsmiley HTTP/1.1" 404 - "http://myforum.com/index.php?action=admin;area=smileys;sa=addsmiley;cdc2ce3=1be9b863c26643ca1c254f367a68cb64" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.102 Safari/537.36"
50.42.140.200 - - [31/Aug/2014:10:33:48 -0700] "POST /index.php?action=admin;area=smileys;sa=addsmiley HTTP/1.1" 404 - "http://myforum.com/index.php?action=admin;area=smileys;sa=addsmiley;cdc2ce3=1be9b863c26643ca1c254f367a68cb64" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.102 Safari/537.36"
86.140.239.187 - - [31/Aug/2014:10:33:51 -0700] "GET /index.php?action=post;topic=308.135;last_msg=23494 HTTP/1.1" 200 30568 "http://myforum.com/index.php?topic=308.135" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Arantor on September 01, 2014, 09:41:45 AM
That's the access log not the error log.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Kindred on September 01, 2014, 09:44:48 AM
nd do note, as you have lreayd been told - this has nothing at all to do with the smf version or the path used to upgrade.

500 error is a server side error - while it can be caused by the scripts, it is most often caused by some sort of confusion in configuration on the server side of things
(e.g. bad htccess, bad permissions, invalid extensions)

the 404 is a red herring.   Basically, the 404 is just telling you that you do not have a specific error page configured to display in cases of a 500 error.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 01, 2014, 09:47:00 AM
Thanks Colin,

I'm going to get a coffee & give GoDaddy a call again.

Kindred, thanks.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 01, 2014, 10:30:49 AM
The only thing that GoDaddy could show was an error log of the last 300 errors and there were none showing. So I don't know what I can do. My other database programs work find, I have three MySQL databases that I put up and they work, and I can upload, delete & modify with no problems.

Kindred you mentioned at .htacess file and I created it. It only has a few redirects in it. I removed it, to see if anything and the same. I tried to add mod_security scripts to it but it failed, in fact the whole forum gave an error.

I guess I can add the smileys manually and modify. I don't know what else I can do. I don't see why the upload should fail on the smf forum but is fine on two Wordpress blogs & an Online Store that I am building, started while on a Windows server, built with just PHP code, and transferred beautifully without a hitch, other than perhaps a path change. (http://forum.bdmoo.com/Smileys/default/jul4.gif)

Another thing with the smileys, is that seem to refresh more often.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 01, 2014, 11:18:58 AM
Is there anyway I can modify my .htaccess for the forum. I wonder if because it's on a subdomain I am having a problem. The subdomain is forum.bdmoo.com while the files are actually in http://bdtprogramming.com/forum_irishstyle/ .

This is different than I had it in Windows, though the subdomain was the same.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 01, 2014, 11:37:58 AM
I'm going to get on my treadmill, but want to thank Colin & Kindred for your help. I am also interested in learning more about server issues, first just a general view then more detail. I am stuck with GoDaddy for better or worse, they do have around the clock support, but on a holiday I know that they don't have all the experts on hand.

and...
Happy Labor Day
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 01, 2014, 07:50:12 PM
As a way to manually put smileys in the directory, mine is default, the only one as I removed all the other ones from the old Windows Hosting. I had found a link to modify the smiley, but haven't been able to do it, outside writing an SQL query to add the record, which I will do if I have to, but I thought there was another way.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 02, 2014, 06:05:27 AM
I want to mark this topic closed, but until I can 'Upload smileys without an Internal Error 500 I can't. I upgraded to PHP 5.5, but I don't see that has happened yet at GoDaddy as they may have to reboot or refresh their servers. I uploaded phpinfo.php to check what features are working. I know it has Fast CGI. I tried to slow it down in .htaccess but that didn't work. Other things people have tried, I have tried in .htaccess but had to remove right away as it made my sites error on any page requested.

SO, I am going to call GoDaddy in 5 to 7 hours from now, or when the business day is in full swing in Arizona, so that I can get the best technical help I can.

I want to close this issue in the next couple of days!

Never, never, never give...
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 02, 2014, 04:56:15 PM
Okay, I talked to GoDaddy, and they mentioned, .htaccess & .user.ini files. Now Kindred, I have read a few of your posts and many others! So I don't need .htaccess. So I have removed it for the forum. I don't have a .user.ini file, been researching it. I went and uploaded phpinfo.php. I had the lady at GoDaddy change my PHP from 5.4 to 5.3, though that did nothing and it wasn't the answer.

I have fast cgi. They said they don't change mod_security. SO before I go overboard on the php, and the fact that GoDaddy says Internal error 500 is a generic term and can be scripting,

I wonder if I need some scripting in the .user.ini or the .htaccess files??

Now, I want the Smileys to upload right. THEY do upload, I had a 2 million byte file upload, and saw the percentage go to 100% and then the Internal 500 error. I can also get smileys uploaded and actually manully loaded a 'sleeppuppy.gif and it is part of the forum.

But I went and created a new forum on another domain of mine on this Linux hosted site.

I got it up and running in an hours time. So I went to my smileys, and had the three sets, and so I tried to upload my 'sleepypuppy.gif' and I get the same doggone Internal 500 error.

So I have something to call back GoDaddy with, and before I threaten to say I want my money back and move to different hosting I am hoping there is a scripting I can add.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Kindred on September 02, 2014, 05:19:07 PM
well, first of all, the statement that they don't remove or re-configure mod_security is BS. We have evidence all over this board that they do so - but only if you scream loud enough and get to at least level 3 support.

As for 500 error being generic...     while it CAN be caused by a script, it is 99% of the time, due to server issues.
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 02, 2014, 05:57:00 PM
I will call them again this evening.

I tried this in the forum root, in .htaccess but it didn't work, the forum still worked, but still Internal Error 500.

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Kindred on September 02, 2014, 06:28:48 PM
guarantee that has no effect on godaddy servers -- they won't let you turn it off at your end of the chain
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 02, 2014, 07:01:58 PM
I don't understand mod_security and what this does?
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: Kindred on September 02, 2014, 07:07:56 PM
http://www.inmotionhosting.com/support/website/modsecurity/what-is-modsecurity-and-why-is-it-important


the problem is -- most hosts - including and especially goDaddy seem incapable of actually configuring the module correctly. (and also ignore the fact that SMF *DOES* include code for cleaning and validating input.)
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 02, 2014, 07:25:23 PM
Well I am going to call Godaddy now & send that article to the tech I talk too. If they can disable just to the forum I have that would be great, actually to the new one I started since I may actually use it too.  O:)
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on September 03, 2014, 09:34:17 AM
I am going to keep this post open, a bit. I have two things more important, one is learning more about Apache, PHP...

And too, I'm trying to make a living, make money! OMG, how terrible, it sounds by people in my local, I should work for free?

But I did work on creating a new log for the GoDaddy people. So will see how goes, not sure it will work, but will look at later. I can get around adding new smileys, as I will write a query to add about 20 dummy images and then I can just edit. This will be a good exercise, though will back up the database first.

So I just need to set a reminder to check back, and hopefully before Christmas, this will be closed, and MUCH sooner, if I can get my other work going, which I haven't last weekend.  8)
Title: Re: Can't add new smileys ~ Internal Server Error 500
Post by: bdtcomp on October 06, 2014, 09:58:35 AM
It's been a month since I started this post. I just haven't had time to research my 'can't add new smileys'. But I want to add a new one, I don't just want to edit, which works.

Now in PhpMyadmin I can insert a new record, but I am unsure of the smiley_order number. I see there are duplicate numbers, so they must be in relation to the 'hidden' field. Then too I see that the id_smiley doesn't always increment by one. I see that it usually does, but sometimes it skips 10 to 50. I know I haven't deleted that many smileys?

Am I okay to pick an ID above the last one added? The last smiley I added, is

ID         CODE                    FILENAME                DESCRIPTION     SMILEY_ROW   SMILEY_ORDER     HIDDEN
1459  :sleeping-puppy:  sleeping-puppy.gif  sleeping-puppy     0 ------------------  0 -------------------- 0 --------       
The last one is right below here.
1477  :sue:                            sue.gif                    Sue                     0                           13                   0


I am thinking the sleeping-puppy smiley was one I edited, and removed perhaps the first smiley since it was one I wanted deleted anyway.

I backed up the MySQL database just in case, though this looks like just a simple insertion. And for now I just want the new smiley to be above the text box, which would be 'hidden = 0'
                 

The highest 'smiley_order' is 621.