Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (Ruben, JAISP), 79 guests, and 18 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
id242
id242
California
Posts: 622
Joined: April 2004
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 19
id242 18
Ruben 9
ECNet 5
JAISP 4
whk 3
BB 2
Latest Photos
Some pictures for fun
test for attachment sizes
A gallery with animated GIFs
Lazy fox, drops, and a light house.
Welcome to poet
Previous Thread
Next Thread
Print Thread
#258857 - 01/02/17 11:09 AM Fatal error: Call to a member function error() on  
Joined: Mar 2007
Posts: 27
BB Offline
newbie
BB  Offline
newbie

Joined: Mar 2007
Posts: 27
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!

Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#258858 - 01/02/17 01:21 PM Re: Fatal error: Call to a member function error() on [Re: BB]  
Joined: Feb 2007
Posts: 1,259
JAISP Online partay
JAISP  Online Partay


Joined: Feb 2007
Posts: 1,259
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.


ABeagleWorld
UBB.threads 7.6.0
#258859 - 01/02/17 08:53 PM Re: Fatal error: Call to a member function error() on [Re: BB]  
Joined: Jun 2006
Posts: 16,442
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer

Joined: Jun 2006
Posts: 16,442
Portland, OR; USA
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.


Forums: A Gardeners Forum
UBB.Threads: UBBWiki, UBBSkins, UBB.Sitemaps
Longtime Supporter & Beta Tester & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
#258860 - 01/02/17 09:55 PM Re: Fatal error: Call to a member function error() on [Re: BB]  
Joined: Dec 2003
Posts: 5,738
Ruben Online yawn
Ruben  Online Yawn



Joined: Dec 2003
Posts: 5,738
Lutz,FL
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/17 10:00 PM.

Blue Man Group


There is no such thing as stupid questions. Just stupid answers
#258861 - 01/02/17 10:44 PM Re: Fatal error: Call to a member function error() on [Re: Ruben]  
Joined: Jun 2006
Posts: 16,442
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer

Joined: Jun 2006
Posts: 16,442
Portland, OR; USA
Originally Posted by Ruben
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.com
Reported 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


Forums: A Gardeners Forum
UBB.Threads: UBBWiki, UBBSkins, UBB.Sitemaps
Longtime Supporter & Beta Tester & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
#258862 - 01/02/17 11:07 PM Re: Fatal error: Call to a member function error() on [Re: BB]  
Joined: Mar 2007
Posts: 27
BB Offline
newbie
BB  Offline
newbie

Joined: Mar 2007
Posts: 27
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!

#258863 - 01/03/17 05:20 PM Re: Fatal error: Call to a member function error() on [Re: BB]  
Joined: Dec 2003
Posts: 5,738
Ruben Online yawn
Ruben  Online Yawn



Joined: Dec 2003
Posts: 5,738
Lutz,FL
Originally Posted by BB
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

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Slow Posting Times
by ECNet on 01/17/17 01:40 AM
Fatal Error when checking user
by Basil on 01/16/17 07:28 PM
Articles section of a ubb.threads board
by philwojo on 01/14/17 08:14 PM
Lost access to database following server restore
by Crasher on 01/11/17 08:37 PM
Missing Some Template Files (Re: Flashchat)
by ebenjen on 01/07/17 06:42 PM
Forum Statistics
Forums36
Topics34,805
Posts188,841
Members11,958
Most Online978
Jun 25th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Preview build 20170117)