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
A 500 error is a server-side error, check with your host
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
Uninstall pretty urls.
Please look in the error log and include what the actual error is here.
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:
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)
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
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
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
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
For questions regarding specific mods, please see the support thread dedicated to supporting that specific mod
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?
QuoteThere is no PHP version 6, so what did you actually do in your cPanel?
I changed it from here
See the picture
Well there you have it. Set your domain & directories to PHP5.6 and your problem will disappear.
I can access the site. It seems you have it sorted. Thanks for using SMF.