Log in

View Full Version : Problem Moving vB5


grayloon
02-11-2015, 02:35 PM
I'm trying to move my forums to a new server. I've moved the files and database. When I access my forums, I get an internal server error. The apache error log shows issues with the API calls or something. Can anyone decipher and help me correct this?
PHP Fatal error: Call to a member function fetch_userinfo_value() on a non-object in /home/domain/forums.domain.com/public_html/core/vb/api/state.php on line 316
PHP Stack trace:
PHP 1. {main}() /home/domain/forums.domain.com/public_html/index.php:0
PHP 2. vB5_Frontend_Application::init() /home/domain/forums.domain.com/public_html/index.php:44
PHP 3. vB5_Frontend_Routing->setRoutes() /home/domain/forums.domain.com/public_html/includes/vb5/frontend/application.php:10
PHP 4. Api_InterfaceAbstract::instance() /home/domain/forums.domain.com/public_html/includes/vb5/frontend/routing.php:92
PHP 5. Api_Interface_Collapsed->init() /home/domain/forums.domain.com/public_html/includes/api/interfaceabstract.php:61
PHP 6. vB_Request_WebApi->createSession() /home/domain/forums.domain.com/public_html/includes/api/interface/collapsed.php:33
PHP 7. call_user_func_array:{/home/domain/forums.domain.com/public_html/core/vb/request/webapi.php:25}() /home/domain/forums.domain.com/public_html/core/vb/request/webapi.php:25
PHP 8. vB_Request->createSession() /home/domain/forums.domain.com/public_html/core/vb/request/webapi.php:25
PHP 9. call_user_func_array:{/home/domain/forums.domain.com/public_html/core/vb/request.php:121}() /home/domain/forums.domain.com/public_html/core/vb/request.php:121
PHP 10. vB_Session_WebApi::createSession() /home/domain/forums.domain.com/public_html/core/vb/request.php:121
PHP 11. vB_Session_WebApi->__construct() /home/domain/forums.domain.com/public_html/core/vb/session/webapi.php:38
PHP 12. vB_Session_Web->__construct() /home/domain/forums.domain.com/public_html/core/vb/session/webapi.php:45
PHP 13. vB_Session->__construct() /home/domain/forums.domain.com/public_html/core/vb/session/web.php:31
PHP 14. vB_Session->loadExistingSession() /home/domain/forums.domain.com/public_html/core/vb/session.php:339
PHP 15. vB_Session->rememberSession() /home/domain/forums.domain.com/public_html/core/vb/session.php:207
PHP 16. vB_Library_User->fetchUserWithPerms() /home/domain/forums.domain.com/public_html/core/vb/session.php:288
PHP 17. vB_Library_User->fetchUserinfo() /home/domain/forums.domain.com/public_html/core/vb/library/user.php:156
PHP 18. vB::getUserContext() /home/domain/forums.domain.com/public_html/core/vb/library/user.php:384
PHP 19. vB_UserContext->__construct() /home/domain/forums.domain.com/public_html/core/vb/vb.php:660
PHP 20. vB_UserContext->reloadUserPerms() /home/domain/forums.domain.com/public_html/core/vb/usercontext.php:106
PHP 21. vB_UserContext->hasPermission() /home/domain/forums.domain.com/public_html/core/vb/usercontext.php:221
PHP 22. vB_PermissionContext->hasPermission() /home/domain/forums.domain.com/public_html/core/vb/usercontext.php:384
PHP 23. vB_PermissionContext->isLimitPermission() /home/domain/forums.domain.com/public_html/core/vb/permissioncontext.php:486
PHP 24. array_key_exists() /home/domain/forums.domain.com/public_html/core/vb/permissioncontext.php:340
PHP 25. vB5_ApplicationAbstract::handleError() /home/domain/forums.domain.com/public_html/core/vb/permissioncontext.php:340
PHP 26. vB5_ApplicationAbstract::showErrorPage() /home/domain/forums.domain.com/public_html/includes/vb5/applicationabstract.php:247
PHP 27. vB5_Template->render() /home/domain/forums.domain.com/public_html/includes/vb5/applicationabstract.php:311
PHP 28. vB5_User::instance() /home/domain/forums.domain.com/public_html/includes/vb5/template.php:195
PHP 29. vB5_User->__construct() /home/domain/forums.domain.com/public_html/includes/vb5/user.php:30
PHP 30. Api_Interface_Collapsed->callApi() /home/domain/forums.domain.com/public_html/includes/vb5/user.php:41
PHP 31. call_user_func_array:{/home/domain/forums.domain.com/public_html/includes/api/interface/collapsed.php:87}() /home/domain/forums.domain.com/public_html/includes/api/interface/collapsed.php:87
PHP 32. vB_Api_Wrapper->__call() /home/domain/forums.domain.com/public_html/includes/api/interface/collapsed.php:87
PHP 33. vB_Api->checkApiState() /home/domain/forums.domain.com/public_html/core/vb/api/wrapper.php:109
PHP 34. vB_Api_State->checkBeforeView() /home/domain/forums.domain.com/public_html/core/vb/api.php:461
PHP 35. vB_Api_State->checkPasswordExpiry() /home/domain/forums.domain.com/public_html/core/vb/api/state.php:86

Dave
02-11-2015, 03:22 PM
You sure you correctly uploaded all of the files?

grayloon
02-11-2015, 04:05 PM
I pulled my files from current server. When those didn't work. I grabbed a fresh copy from the members section of vBulletin.com. Those didn't work either. So, I'm guessing it's either a database issue or an issue with the new server config. I just don't know where to start looking.

Lynne
02-11-2015, 05:07 PM
What version PHP and MySQL on the new and old server? What is the collation of the database on the new and old server? Did you move the .htaccess file? Did you change the URL at all for the forums? Does you new server have mod_rewrite enabled as well as cURL?

Lynne Sands
vBulletin Support Staff
vBulletin.org Admin

grayloon
02-12-2015, 12:13 PM
Old Server
PHP 5.3.20
MySQL 5.1.61

New Server
PHP 5.4.37
MySQL 5.6.22

The .htaccess file didn't move. I set up a test URL for the forums on the new server, since I haven't actually made the switch yet. I updated the core/includes/config.php file and setting table with the test URL. The new server has both mod_rewrite and cURL.

Lynne
02-12-2015, 05:48 PM
You said the .htaccess file didn't move, but you need an .htaccess file in vB5, so you need to move it to the new site.

grayloon
02-12-2015, 06:03 PM
Oh - I meant that the .htaccess file hadn't changed to a different location. I had copied to the new server in the same location.

Lynne
02-12-2015, 09:21 PM
If you set up a test URL, did you change the URL in the admincp before creating the database backup and moving the database to the new server?

What version of vB is this?

grayloon
02-13-2015, 11:15 AM
I didn't change anything before creating the database backup. This is version 5.1.1.

Lynne
02-13-2015, 05:57 PM
Did the domain URL change? If so, then you need to have the correct domain URL in there. You should put it in there *before* creating the database backup and moving it to the new server.

grayloon
02-13-2015, 06:04 PM
Gotcha. I'll give that a try.