Previous Thread
Next Thread
Print Thread
Hop To
#238036 07/20/2010 9:42 PM
Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
I was thrown into a project where we're moving a forum from one server to another. I have no experience with ubbthreads, but I like what I see so far smile

My current issue is outlined below.

UBB Message We encountered a problem. The reason reported was

Script: /home/mdsfound/public_html/forums/libs/user.inc.php
Line#: 467
SQL Error: Table 'mdsfound_forum.ubbt_USERS' doesn't exist
SQL Error #: 1146
Query: SELECT t2.USER_TIME_OFFSET,t2.USER_TOPIC_VIEW_TYPE,t2.USER_TIME_FORMAT, t1.USER_ID, t1.USER_DISPLAY_NAME, t1.USER_PASSWORD, t1.USER_SESSION_ID, t1.USER_MEMBERSHIP_LEVEL, t1.USER_IS_BANNED,t1.USER_RULES_ACCEPTED, t1.USER_IS_UNDERAGE, t2.USER_TOTAL_PM, t2.USER_STYLE, t2.USER_HIDE_LEFT_COLUMN,t2.USER_HIDE_RIGHT_COLUMN, t2.USER_LANGUAGE, t2.USER_MOOD, t2.USER_RELATIVE_TIME, t2.USER_TIME_OFFSET,t2.USER_SHOW_ALL_GRAEMLINS, t2.USER_AVATAR, t2.USER_TITLE, t2.USER_CUSTOM_TITLE, t2.USER_NAME_COLOR, t2.USER_SHOW_LEFT_MYSTUFF FROM ubbt_USERS as t1, ubbt_USER_PROFILE as t2 WHERE t1.USER_ID = '' AND t1.USER_ID = t2.USER_ID

Please click back to return to the previous page.

Any insight would be awesome! We have this setup so DNS is still pointing to live site. I've changed my host file so local DNS resolves to the new server while we work out the bugs.

Thanks in advance for your insights!

Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
The database file was not uploaded into the MySQL.

If it is a large file I usually always do it by command line into the MySQL Server.

JAISP #238046 07/21/2010 1:14 PM
Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
I resolved the error by changing the values of the files in questions. The old database used UPPERCASE for tables and the new uses lowercase. I simply changed UPPERCASE values to lowercase and it worked smile

Now my issue looks like:

Fatal error: require_once() [function.require]: Failed opening required '/home/mdsfound/public_html/forums/scripts/libs/functions_forums.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mdsfound/public_html/forums/scripts/cfrm.inc.php on line 50

Anything look wrong here>?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The table name issue is definitely a gotcha when going from windows to linux. We're going to finally resolve that in v8.

As for your new error. It's a bit strange. It's looking for /forums/scripts/libs/functions_forums.inc.php when it should be looking for /forums/libs/functions_forums.inc.php

Are you getting that from the main page?

Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
I think it has to do with my "FULL_PATH setting in config.inc.php

The old value was c:/inetpub/wwwroot/mds-foundation.org/forums

The new is /home/mdsfound/public_html/forums/scripts

Does this look right?

Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
That was it!!! I took out the /scripts so it refers to /forums without /scripts and I'm on the next error which are more UPPERCASE to lowercase related issues smile

I'll report back with stuff I get stuck on!


Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ah, there's your problem. Chop the /scripts off the end of the new path.

Rick #238051 07/21/2010 1:27 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Beat me to the punch smile

Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
Ok - so it seems that the only problems left are the UPPERCASE table names.

Is there any kind of something to help with this. I got the forum to come up, but of course visiting any link throws more errors.

Any help is greatly appreciated.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you'll need to rename your tables to uppercase.. i've run into this a couple of times

SD #238056 07/21/2010 2:57 PM
Joined: Dec 2003
Posts: 6,566
Likes: 78
Joined: Dec 2003
Posts: 6,566
Likes: 78
Went through this myself a while back going from windows to Linux.
Assuming your Table Prefix is ubbt the default setting.

The first table should appear as:

ubbt_ADDRESS_BOOK



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
SD #238058 07/21/2010 3:53 PM
Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
Done and worked like a charm...

Now I just need to reset the admin password in phpMyAdmin...

Joined: Dec 2003
Posts: 6,566
Likes: 78
Joined: Dec 2003
Posts: 6,566
Likes: 78
Okay , Don't forget the password is stored in the config.inc.php file via the ubb control panel.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #238061 07/21/2010 4:05 PM
Joined: Jul 2010
Posts: 13
J
stranger
stranger
J Offline
Joined: Jul 2010
Posts: 13
Password for database user?

I'll post a new topic about resetting my admin pass.

Joined: Dec 2003
Posts: 6,566
Likes: 78
Joined: Dec 2003
Posts: 6,566
Likes: 78
Yes the database user login.
Kinda a catch 22.
Usually it is easier to edit the config file.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

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
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 1,277 guests, and 207 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 20240506)