User get http 500 error clicking upon registration link

Started by nadeem34, April 14, 2018, 06:09:09 PM

Previous topic - Next topic

nadeem34

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
Creative ways to make money fast
https://gotryus.com/

Kindred

A 500 error is a server-side error, check with your host
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

nadeem34

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
Creative ways to make money fast
https://gotryus.com/

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Colin

Please look in the error log and include what the actual error is here.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

nadeem34

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:
Creative ways to make money fast
https://gotryus.com/

Colin

Can you include a link to a phpinfo() page hosted on the server where your SMF installation is please.

What is a phpinfo() file?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

nadeem34

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
Creative ways to make money fast
https://gotryus.com/

Shambles

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

nadeem34

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
Creative ways to make money fast
https://gotryus.com/

nadeem34

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
Creative ways to make money fast
https://gotryus.com/

Kindred

For questions regarding specific mods, please see the support thread dedicated to supporting that specific mod
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shambles

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?

nadeem34

QuoteThere is no PHP version 6, so what did you actually do in your cPanel?

I changed it from here

See the picture
Creative ways to make money fast
https://gotryus.com/

Shambles

Well there you have it. Set your domain & directories to PHP5.6 and your problem will disappear.

Colin

I can access the site. It seems you have it sorted. Thanks for using SMF.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: