vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Problem Moving vB5 (https://vborg.vbsupport.ru/showthread.php?t=317275)

grayloon 02-11-2015 02:35 PM

Problem Moving vB5
 
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


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.


All times are GMT. The time now is 07:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01094 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete