Advertisement:

Author Topic: User get http 500 error clicking upon registration link  (Read 580 times)

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
User get http 500 error clicking upon registration link
« 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
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,494
  • Gender: Male
    • Kindred-999 on GitHub
Re: User get http 500 error clicking upon registration link
« Reply #1 on: April 14, 2018, 09:06:59 PM »
A 500 error is a server-side error, check with your host
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: User get http 500 error clicking upon registration link
« Reply #2 on: April 14, 2018, 11:56:58 PM »
Quote
A 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
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,941
  • 'Tis the gift to be simple (duh)
Re: User get http 500 error clicking upon registration link
« Reply #3 on: April 15, 2018, 12:46:14 AM »
Uninstall pretty urls.

Offline Colin

  • Developer
  • SMF Hero
  • *
  • Posts: 7,857
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: User get http 500 error clicking upon registration link
« Reply #4 on: April 15, 2018, 01:24:29 AM »
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

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: User get http 500 error clicking upon registration link
« Reply #5 on: April 15, 2018, 02:15:19 AM »
Quote
Please 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:
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Colin

  • Developer
  • SMF Hero
  • *
  • Posts: 7,857
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: User get http 500 error clicking upon registration link
« Reply #6 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?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: User get http 500 error clicking upon registration link
« Reply #7 on: April 15, 2018, 02:42:32 AM »
Quote
Can 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
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,803
  • Gender: Male
    • i30 Owners Club
Re: User get http 500 error clicking upon registration link
« Reply #8 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

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: User get http 500 error clicking upon registration link
« Reply #9 on: April 15, 2018, 06:20:45 AM »
Quote
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

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
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: User get http 500 error clicking upon registration link
« Reply #10 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
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,494
  • Gender: Male
    • Kindred-999 on GitHub
Re: User get http 500 error clicking upon registration link
« Reply #11 on: April 15, 2018, 07:07:53 AM »
For questions regarding specific mods, please see the support thread dedicated to supporting that specific mod
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,803
  • Gender: Male
    • i30 Owners Club
Re: User get http 500 error clicking upon registration link
« Reply #12 on: April 15, 2018, 07:13:09 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:

Quote
I 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?

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: User get http 500 error clicking upon registration link
« Reply #13 on: April 15, 2018, 02:36:58 PM »
Quote
There is no PHP version 6, so what did you actually do in your cPanel?

I changed it from here

See the picture
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,803
  • Gender: Male
    • i30 Owners Club
Re: User get http 500 error clicking upon registration link
« Reply #14 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.

Offline Colin

  • Developer
  • SMF Hero
  • *
  • Posts: 7,857
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: User get http 500 error clicking upon registration link
« Reply #15 on: April 15, 2018, 03:10:37 PM »
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