Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Hi
regarding UBB.threads™ 7.5.4.2
I updated the /General HTML header section several times and cut same html code into the footer section too it all worked fine until i re edited it and hit reply.
the message that came up and has stayed is
Unable to connect to database server, please try again in a few minutes.


What could have gone wrong?

Can I edit the /General HTML footer section??? without being able to connect?

thanks for any help

I sure hope it just starts to work again but i doubt

Forum is
http://www.britbike.com/forums/ubbthreads.php


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
I can not see that editing the header or footer file would in any way cut off your database connection. those files are template files.

You did only edit the temp[later filers correct?

If you upload the stock unedited files are you still getting the same error?

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
If you are talking about using the control panel to edit your html includes.
That would really have nothing to do with a database connection error.
Try checking your mysql server it may be down.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
I uploaded a new empty footer.php file and set it to RWRWRW (666)and it did not help.

I can open mysql on my hosts admin area and see the database is there but thats it. it's not my field at all.
any clues what could be wrong or how can i call the database to check if there is a connection??


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
first thing check your config.inc.php file.
The top couple of lines will have your paths and connection info.
User name password etc.
It will be in your forums/includes folder.
Make sure they are correct


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
possibly your includes/config.inc.php now is either corrupt or has incorrect DB, user, password login info to your datbase..

do you have a backed up config.inc.php file?


edit: ugh.. Ruben is faster on the draw today frown

Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
includes/config.inc.php is empty ...???!!! that was strange...


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Yep it happens sometimes.
Just do what SD said. copy a backup file to your server.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
have nobackupas far as i know of... any ideas?


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
You also might want to check with your host.
The drive you are on may be full.
If so it probably will happen again.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Okay some where I believe Gizmo uploaded a config file.
You will need to edit it of course with a text editor.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Okay here is the post
HERE
Edit the top 7 or so lines to match your paths and db connection info.
Then upload it.

Then when the board is up again you will need to go through all of the settings that are incorrect.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
I have used 44 % of the mysql database


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Now i'm stressed cannot find any paths or if to put in the config... it's been a long time and my brain is tired now after a long day. It's 9pm here and i have been on to this for 5 hours straight


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
If you have like phpmyadmin.
Look at the ubb database for the database name, Username assigned to the database. For password just assign a new password to the user so you know what it is.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Also you might try digging a little bit. Maybe you have a copy of your config file somewhere before you upgraded.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
OK
i found a config file from Sep 2008 uploaded it and it is now and it is now possible to login.
However i see there are so much settings that are back to that date.

What should i think of changing or how do i locate allstuff that are in the config file easiest??? tips are highly appreciated
thanks
Morgan in Sweden with a bad keyboard...


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Looks like you are making some progress the board shows closed now.
Once you get it all running again you really should make a complete backup. DB and web files.

BTW, When I mentioned the disk may be full I was talking about the site not the mysql server.
That is where the config file is stored.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Okay we posted on top of each other.
Best thing really since I have no idea what you have changed since then is start in the control panel.
And go one by one through your settings.

Even if they appear correct still select the submit.

You probably are okay with the user/group permissions.

It really does not take that long.

If you were a little more intimate with the software you could just scroll through the config.inc.php file with a text editor and make changes there.
I don't recommend that in your case.

And did I say this before. BACKUP YOUR SITE when done.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Ruben

thanks for your help, funny i used to see easily how much disc space was used but cannot any longer. Thay changed the layout and been bought up a few times and somethings are actually much more difficult to find such things as how much used and paths and so on.

I need to work on with this ...

thanks


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well the problem with a full disk is not so much how much you are using but how much free space is on the drive. Unless you are on a dedicated server. You are sharing space on the same drive as many others. Most shared plans do not show you that , they just show what you are using.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
I managed to get the board going and edited the config as good as i could in the CP area.
however there has come up one issue and that is when someome replies with a "quote" the that does not work

i got this message

"For readability, you can only quote messages levels deep. Please edit your message and try again."

Any ideas what fault might be?


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
I found it in the CP
"Maximum number of nested quotes in a post" what would be a normal amount? I put "2" to get it going.


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
That is you choice.
I beleive the default setting is 4.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Thanks i'll set it to 4 then


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 502 guests, and 178 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)