Previous Thread
Next Thread
Print Thread
Hop To
#130048 10/01/2006 10:14 AM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
UBB.Threads 6.5.4 | PHP 4.3.9 | MySQL 5.0.24a | Apache 2.0.x

I just moved my database to a different mysql server. I updated the config.inc.php file with the new connection information, but my forums won't come up - I just get a blank page. My apache log has tons of errors too. Here's a little sample:
[][client 65.191.146.5] PHP Notice: Undefined variable: tbopen in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1457, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Notice: Undefined variable: tbclose in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1458, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Warning: not_right(/Library/Tenon/WebServer/WebSites/www.realtree.com/forums//templates//ubbt_notright.tmpl): failed to open stream: No such file or directory in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 618, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Warning: not_right(): Failed opening '/Library/Tenon/WebServer/WebSites/www.realtree.com/forums//templates//ubbt_notright.tmpl' for inclusion (include_path='.:/Library/Tenon/WebServer/WebSites/globals') in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 618, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Warning: table_wrapper(/Library/Tenon/WebServer/WebSites/www.realtree.com/forums//templates//tbopen.tmpl): failed to open stream: No such file or directory in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1454, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Warning: table_wrapper(): Failed opening '/Library/Tenon/WebServer/WebSites/www.realtree.com/forums//templates//tbopen.tmpl' for inclusion (include_path='.:/Library/Tenon/WebServer/WebSites/globals') in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1454, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Warning: table_wrapper(/Library/Tenon/WebServer/WebSites/www.realtree.com/forums//templates//tbclose.tmpl): failed to open stream: No such file or directory in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1455, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Warning: table_wrapper(): Failed opening '/Library/Tenon/WebServer/WebSites/www.realtree.com/forums//templates//tbclose.tmpl' for inclusion (include_path='.:/Library/Tenon/WebServer/WebSites/globals') in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1455, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Notice: Undefined variable: tbopen in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1457, referer: http://www.realtree.com/
[client 65.191.146.5] PHP Notice: Undefined variable: tbclose in /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php on line 1458, referer: http://www.realtree.com/<br />
<hr /></blockquote><font class="post">

#130049 10/01/2006 10:40 AM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
Notice that "Default" is missing from the template path. What gives?

#130050 10/01/2006 10:48 AM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
On line 217 of ubbt.inc.php I have:
$tempstyle = "default";

#130051 10/01/2006 11:11 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, that's odd. Did anything else get changed at all? Are those the only errors in the error log? Anything about the mysql connection?

#130052 10/01/2006 11:18 AM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
No errors related to the MySQL connection. All I did was move my dumped database to a new server and import it. I have other apps on my webserver connecting to the MySQL server with no problems. If I change the $config['dbserver'] from "localhost" to "216.168.63.109", my board will immediately fail with the errors above.

Any idea why the template path is failing?

I went from using MySQL 4.0.18 to 5.0.24a.

#130053 10/01/2006 11:51 AM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
I had to change the MySQL password to the old format, then I was able to connect. But, I'm getting a new error now:

Script: /Library/Tenon/WebServer/WebSites/www.realtree.com/forums/ubbt.inc.php
Line#: 1608
SQL Error: Table 'ubb-realtree.w3t_Users' doesn't exist
SQL Error #: 1146
Query: SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = ''

Aren't table names case sensitive? If so, ubb-realtree.w3t_Users should be ubb-realtree.w3t_users

And, a clean install of 6.5.5 is working. This is weird.

#130054 10/01/2006 12:23 PM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
I just noticed that my original database is all lower case. The clean install uses upper case for the table names.

#130055 10/01/2006 12:44 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
That's definitely a problem. It doesn't seem that it preserved the case of your database when exporting or importing. You'll want to check the backup to see if it was an issue when backing up or when importing.

One more thing. Just noticed that you said you've moved to MYSQL 5. The current 6.5.5 version does not fully support MySQL 5, only MySQL 4. We do fully support this in version 7 however.

#130056 10/01/2006 12:58 PM
Joined: Jun 2006
Posts: 73
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 73
I capitalized table names, and the problems seem to be gone.

What types of things should I look out for with MySQL 5?


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
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
Who's Online Now
3 members (Stovebolt, ahmed047, Gizmo), 931 guests, and 151 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 20240501)