SMF board is down after getting multiple messages "SMF could not connect to the

Started by pirc-bw, May 02, 2020, 12:14:37 AM

Previous topic - Next topic

pirc-bw

My SMF board is down after getting 16 SMF could not connect to the database messages this evening.
My host GoDaddy has informed me that there has been a change to the Index.PHP file which is preventing it from connecting to the database.

This is what they are telling me.
HP Notice: Undefined variable: boarddir in /home/k4fw0oj9jhy9/public_html/index.php on line 47 [02-May-2020 03:33:11 UTC] PHP Notice: Undefined variable: sourcedir in /home/k4fw0oj9jhy9/public_html/index.php on line 51 [02-May-2020 03:33:11 UTC] PHP Warning: require_once(/QueryString.php): failed to open stream: No such file or directory in /home/k4fw0oj9jhy9/public_html/index.php on line 51

I am not a pro at this kind of thing.  How do I fix this, any help would be appreciated.

https://bw-forums.com
Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

vbgamer45

Is your settings.php file empty?

If so grab from the backup settings_bak.php or from a backup that you have.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

pirc-bw

Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

vbgamer45

Do you have a backup?
If not grab a settings.php from the zip for SMF.
And enter in your SMF database connection information
And I would suggest then run the repair settings tool
What is repair_settings.php?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

pirc-bw

Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

vbgamer45

Here is an empty settings.php you need to run the repair settings tool to update.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

pirc-bw

Ok, I have that.  Do I delete the old one and just upload this one?
Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

pirc-bw

Sorry for needing to go in baby steps.

I have uploaded the new file.  Now what do I do.
Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

pirc-bw

Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

vbgamer45

Now on the repair settings page you have to fill in your database connection information from your control panel.
Then it should work after you hit save.

Then you must remove repair_settings.php !

I am off to rest now though.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

pirc-bw

Merlene
Version Information:
Forum version: SMF 2.0.16
Current SMF version: SMF 2.0.16
www.bw-forums.com

Doug Heffernan

Do not forget to reupload a fresh index.php file as well afterwards.

Illori

Quote from: doug_ips on May 02, 2020, 05:57:17 AM
Do not forget to reupload a fresh index.php file as well afterwards.

that is not required. this is not from a hacking it is an issue with SMF coding.

you only need to replace the Settings.php file and you are good to go.

Doug Heffernan

Quote from: Illori on May 02, 2020, 06:06:33 AM
Quote from: doug_ips on May 02, 2020, 05:57:17 AM
Do not forget to reupload a fresh index.php file as well afterwards.

that is not required. this is not from a hacking it is an issue with SMF coding.

you only need to replace the Settings.php file and you are good to go.

As per the first post. It looks like the index.php file has been corrupted. I suggested it in case the correction of the Settings.php file did not fix the error.

 

Quote from: pirc-bw on May 02, 2020, 12:14:37 AM
My SMF board is down after getting 16 SMF could not connect to the database messages this evening.
My host GoDaddy has informed me that there has been a change to the Index.PHP file which is preventing it from connecting to the database.

This is what they are telling me.
HP Notice: Undefined variable: boarddir in /home/k4fw0oj9jhy9/public_html/index.php on line 47 [02-May-2020 03:33:11 UTC] PHP Notice: Undefined variable: sourcedir in /home/k4fw0oj9jhy9/public_html/index.php on line 51 [02-May-2020 03:33:11 UTC] PHP Warning: require_once(/QueryString.php): failed to open stream: No such file or directory in /home/k4fw0oj9jhy9/public_html/index.php on line 51

I am not a pro at this kind of thing.  How do I fix this, any help would be appreciated.

https://bw-forums.com

Arantor

No, it does not look like index.php has been corrupted, it looks EXACTLY like the race condition that wipes out Settings.php and nothing else.

Doug Heffernan

Quote from: Arantor on May 02, 2020, 06:58:28 AM
No, it does not look like index.php has been corrupted, it looks EXACTLY like the race condition that wipes out Settings.php and nothing else.

Dude, chill out. It looked like that to me.

Arantor

I don't chill out when I see people giving incorrect and possibly damaging advice, because who knows what mods will be broken by replacing index.php?

Doug Heffernan

Quote from: Arantor on May 02, 2020, 09:32:42 AM
I don't chill out when I see people giving incorrect and possibly damaging advice, because who knows what mods will be broken by replacing index.php?

It was definitely not a damaging advice. Anyways, you really need to take a chill pill dude, and while you are at it, you need to adjust your attitude and ego too.


Advertisement: