News:

Join the Facebook Fan Page.

Main Menu

Connection Problems!??

Started by Shades., September 15, 2009, 10:22:14 PM

Previous topic - Next topic

Shades.

I just reinstalled my forum without touching the database, just copied over the php files and am now getting the following error when going to my forum:

Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.


Please help!

http://www.therallyboard.com
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kill Em All

What is repair_settings.php?

Try that. It has solved many problems in the past. :)


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Yigal

Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kill Em All

Well now when I go onto your site I get a error:
Parse error: syntax error, unexpected '}' in /home/omegadex/public_html/biker/Settings.php on line 62


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Shades.

I'm getting that same error now too and I installed a fresh Settings.php file too!
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kill Em All

Quote from: BoZilla on September 15, 2009, 10:40:17 PM
I'm getting that same error now too and I installed a fresh Settings.php file too!
Did you enter the correct Database info and file paths?


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Tyrsson

Can you please email me a copy of the settings.php file to:

[email protected]

There should not be a brace in that file.

Please PM me and let me know when you email it so I can check it.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Shades.

Quote from: Kill Em All on September 15, 2009, 10:41:47 PM
Quote from: BoZilla on September 15, 2009, 10:40:17 PM
I'm getting that same error now too and I installed a fresh Settings.php file too!
Did you enter the correct Database info and file paths?
Yes, I checked and rechecked and they are correct!
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Quote from: Tyrsson on September 15, 2009, 10:45:12 PM
Can you please email me a copy of the settings.php file to:

[email protected]

There should not be a brace in that file.

Please PM me and let me know when you email it so I can check it.
Yes, emailing you now! Thanks!
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Tyrsson

This block of code should not be there:

header('Location: http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 's' : '') . '://' . (empty($_SERVER['HTTP_HOST']) ? $_SERVER['SERVER_NAME'] . (empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']) : $_SERVER['HTTP_HOST']) . (strtr(dirname($_SERVER['PHP_SELF']), '\\', '/') == '/' ? '' : strtr(dirname($_SERVER['PHP_SELF']), '\\', '/')) . '/install.php'); exit;

}


Is this code that you have added?
PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

Going to email you a clean copy.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Shades.

Quote from: Tyrsson on September 16, 2009, 12:06:35 AM
This block of code should not be there:

header('Location: http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 's' : '') . '://' . (empty($_SERVER['HTTP_HOST']) ? $_SERVER['SERVER_NAME'] . (empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']) : $_SERVER['HTTP_HOST']) . (strtr(dirname($_SERVER['PHP_SELF']), '\\', '/') == '/' ? '' : strtr(dirname($_SERVER['PHP_SELF']), '\\', '/')) . '/install.php'); exit;

}

Is this code that you have added?
I didn't add any code to Settings.php file. I just uploaded a new copy of it over the existing one and then ran repair_settings.php and all this happened.

Going to check my email  now...thanks!
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Thank you so much...your clean Settings.php worked like a charm! I don't have any idea how that code got in there cause the one I sent you came straight out of the zip file and I just uploaded it, ran repair_setting.php and the errors started happening. So I downloaded that settings.php file and emailed it to you.

Is it possible that the repair_settings.php file is corrupt and adding that code to the settings.php file?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Tyrsson

No, that should not be the case. I would like to know how the code got there. You may want to check the last edit date for the rest of the files that are on the server and see if any other files were changed on the same date and time.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Shades.

Do you have any idea what the code does? That could help me find the mod or whatever that might have inserted that code if it was a mod...cause I have no idea!

What actions would that code perform?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kill Em All

Quote from: BoZilla on September 16, 2009, 05:55:02 PM
Do you have any idea what the code does? That could help me find the mod or whatever that might have inserted that code if it was a mod...cause I have no idea!

What actions would that code perform?
No mod should change anything in the settings.php file. From the looks of the code, it does nothing but make your forum act up.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Shades.

Quote from: Kill Em All on September 16, 2009, 08:15:12 PM
Quote from: BoZilla on September 16, 2009, 05:55:02 PM
Do you have any idea what the code does? That could help me find the mod or whatever that might have inserted that code if it was a mod...cause I have no idea!

What actions would that code perform?
No mod should change anything in the settings.php file. From the looks of the code, it does nothing but make your forum act up.
I didn't think any mod would...just can't figure out how it got there! :o
The code wasn't there until I ran repair_settings.php.

I guess this ones just gonna have to be a mystery! 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kill Em All

hum. That never happened to me before, and I have ran the repair_settings.php a few times. Maybe just a configuration glitch or something.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Shades.

I have ran it several times before as well and never had a problem...makes no sense to me either but that's what's happening! :o

When I ran it, it added or caused something else to add that code in there! I used a fresh repair_setting.php and a fresh Settings.php and did everything else as I always have and checked and rechecked.

Everything works fine now that "Tyrsson" emailed me a clean copy of Setting.php and I didn't run the repair_settings.php file this time.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: