Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: nadeem34 on April 14, 2018, 06:09:09 PM

Title: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 14, 2018, 06:09:09 PM
Hi
I am using smf 2.0.15 Whenever a user click on the register button they got an error on chrome"This page isn't working
yourwebsite.com is currently unable to handle this request.
HTTP ERROR 500

If the user on Internet Explorer this error appears

"HTTP 500 error

That's odd... Microsoft Edge can't find this page

This page can't be displayed, because this site's server might be under maintenance or there could be a programming error."

Please help SMF team
Title: Re: User get http 500 error clicking upon registration link
Post by: Kindred on April 14, 2018, 09:06:59 PM
A 500 error is a server-side error, check with your host
Title: Re: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 14, 2018, 11:56:58 PM
QuoteA 500 error is a server-side error, check with your host

The host says he has nothing to do because from his side everything is alright

Please see my site discusscryptocurrency.com/ and check the error by clicking on register button.

I will really appreciate this help

thank you in advance
Title: Re: User get http 500 error clicking upon registration link
Post by: Sir Osis of Liver on April 15, 2018, 12:46:14 AM
Uninstall pretty urls.
Title: Re: User get http 500 error clicking upon registration link
Post by: Colin on April 15, 2018, 01:24:29 AM
Please look in the error log and include what the actual error is here.
Title: Re: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 15, 2018, 02:15:19 AM
QuotePlease look in the error log and include what the actual error is here.

The error log shows this error

Uncaught Error: Call to undefined function mysql_connect() in /home/username/public_html/Sources/Subs-Db-mysql.php:67
Stack trace:
Title: Re: User get http 500 error clicking upon registration link
Post by: Colin on April 15, 2018, 02:25:30 AM
Can you include a link to a phpinfo() page hosted on the server where your SMF installation is please.

What is a phpinfo() file? (https://wiki.simplemachines.org/smf/What_is_a_phpinfo()_file)
Title: Re: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 15, 2018, 02:42:32 AM
QuoteCan you include a link to a phpinfo() page hosted on the server where your SMF installation is please.

discusscryptocurrency.com:2083/cpsess7045155872/frontend/paper_lantern/filemanager/showfile.html?file=phpinfo.php&fileop=&dir=%2Fhome%2Fdiscusscryptocur%2Fpublic_html&dirop=&charset=&file_charset=utf-8&baseurl=&basedir=

Does it mean my server host does not support php? but before a day everything was alright and there was no error on the same server
Title: Re: User get http 500 error clicking upon registration link
Post by: Shambles on April 15, 2018, 04:34:55 AM
Quote from: nadeem34
Does it mean my server host does not support php?

No of course it doesn't mean that. It does mean that your host has incremented your version of PHP to the point where mysql_connect doesn't exist, which woud be PHP7+

Your phpinfo file (http://discusscryptocurrency.com/phpinfo.php) shows you are now on PHP7.2.3

Demand that your host return you to the former version or see if you can do it yourself via the cPanel link you gave
Title: Re: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 15, 2018, 06:20:45 AM
QuoteNo of course it doesn't mean that. It does mean that your host has incremented your version of PHP to the point where mysql_connect doesn't exist, which woud be PHP7+

Your phpinfo file (http://discusscryptocurrency.com/phpinfo.php) shows you are now on PHP7.2.3

Demand that your host return you to the former version or see if you can do it yourself via the cPanel link you gave

From my cpanel in "Set PHP Version per Domain" I tried all the versions of PHP from 4,5,6,6,7 but it doesn't work
Title: Re: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 15, 2018, 07:02:14 AM
Thank you team

Actually the problem was due to a Mod "stop forum spam" I uninstalled the mod and it worked

But i need that mod now upon again installation it shows the same error. What should I do with it that I want to use the mod without any error
Title: Re: User get http 500 error clicking upon registration link
Post by: Kindred on April 15, 2018, 07:07:53 AM
For questions regarding specific mods, please see the support thread dedicated to supporting that specific mod
Title: Re: User get http 500 error clicking upon registration link
Post by: Shambles on April 15, 2018, 07:13:09 AM
Quote from: nadeem34 on April 15, 2018, 07:02:14 AM
Actually the problem was due to a Mod "stop forum spam"

Actually, it's due to the change of PHP version as I mentioned. If you set your version to 5.6 the error will disappear. If you need the stop forum spam mod updating you'll need to ask in its support topic.

As for this:

QuoteI tried all the versions of PHP from 4,5,6,6,7
There is no PHP version 6, so what did you actually do in your cPanel?
Title: Re: User get http 500 error clicking upon registration link
Post by: nadeem34 on April 15, 2018, 02:36:58 PM
QuoteThere is no PHP version 6, so what did you actually do in your cPanel?

I changed it from here

See the picture
Title: Re: User get http 500 error clicking upon registration link
Post by: Shambles on April 15, 2018, 03:04:29 PM
Well there you have it. Set your domain & directories to PHP5.6 and your problem will disappear.
Title: Re: User get http 500 error clicking upon registration link
Post by: Colin on April 15, 2018, 03:10:37 PM
I can access the site. It seems you have it sorted. Thanks for using SMF.