The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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?
Code:
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
|
|
#2
|
|||
|
|||
|
You sure you correctly uploaded all of the files?
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
||||
|
||||
|
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? |
|
#9
|
||||
|
||||
|
I didn't change anything before creating the database backup. This is version 5.1.1.
|
|
#10
|
||||
|
||||
|
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.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|