|
Joined: Mar 2007
Posts: 36 Likes: 1
Newbie
|
Newbie
Joined: Mar 2007
Posts: 36 Likes: 1 |
Hello, I'm running version 7.5.9 and trying to move to a new server. I'm getting this error message on the new server: Fatal error: Call to a member function error() on a non-object in libs/mysql.inc.php The new server is http://158.69.69.199/board/admin/login.php or https://new.wordsmith.org/board/admin/login.php (this will get a cert warning; you can ignore it). The old server is https://wordsmith.org/board/ . The forum code and data tables are exactly the same on both the servers. Thanks for your help!
|
|
|
|
Joined: Feb 2007
Posts: 1,294 Likes: 2
Veteran
|
Veteran
Joined: Feb 2007
Posts: 1,294 Likes: 2 |
On your MySQL database have you used the same exact database name, user name, and passcode? Also check the information for your database in /includes/configure.inc.php for that information to make sure it is correct to your new server settings. You may have to change the server from localhost to 127.0.0.1 to access your database depending on how the new server is setup.
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
Sounds like you moved servers but neglected to update the paths in the includes/config.inc.php file; you'll need to populate the new information for both the MySQL server and the paths to your user directory, as well as ensure the chmods of all of your files are correct. I have a Migration Guide on the ubbwiki at Migration Guide.
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
what you need to remember is even if you have the same file structure on a new server. Paths may change due the the host setup, especially the db paths. which also means user name, db and password. Meaning a prefix may have changed or if on linux the case has changed. It is best to edit the config.inc.php file At least the first few lines(there are more depending on what options you have turned on). Once you have it running again. You should go thru all the settings in the cp and re-save them even if they look correct.
Last edited by Ruben; 01/02/2017 6:00 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
At least the first few lines(there are more depending on what options you have turned on). There are more indications of the path further down the file if he had setup attachments. Prior to a move you should try the UBB.threads System Requirement Test to ensure your new server can run UBB.threads without any issues (such as suhosin, among other checks), the latest version will also tell you: PHP Interface: cgi-fcgi PHP Version: v5.6.29 Reported Host: www.ubbwiki.comReported IP: 184.154.76.213 Reported OS: Linux Reported Path: /home/ubbwiki/public_html Reported Port: 80 Documentation for it is available at UBB.threads System Requirement Test
|
|
|
|
Joined: Mar 2007
Posts: 36 Likes: 1
Newbie
|
Newbie
Joined: Mar 2007
Posts: 36 Likes: 1 |
Well, I had neglected to set the 'nobody' password on the db. I wish the bboard software would give a more descriptive error message, such as: Error accessing database.
Anyway, thanks everyone, for your help. Appreciate it very much!
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
Well, I had neglected to set the 'nobody' password on the db. I wish the bboard software would give a more descriptive error message, such as: Error accessing database.
Anyway, thanks everyone, for your help. Appreciate it very much! It does, you need to enable server logs in the ubb control panel. In fact it is strongly advised by all of us to do so. Other wise you get a generic message The logs are accessible via the cp and the files are view able as text if you ftp to the folder.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
1 members (Havenofsobriety),
458
guests, and
91
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|