Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2015, 02:35 PM
grayloon's Avatar
grayloon grayloon is offline
 
Join Date: Mar 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 02-11-2015, 03:22 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You sure you correctly uploaded all of the files?
Reply With Quote
  #3  
Old 02-11-2015, 04:05 PM
grayloon's Avatar
grayloon grayloon is offline
 
Join Date: Mar 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-11-2015, 05:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 02-12-2015, 12:13 PM
grayloon's Avatar
grayloon grayloon is offline
 
Join Date: Mar 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-12-2015, 05:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-12-2015, 06:03 PM
grayloon's Avatar
grayloon grayloon is offline
 
Join Date: Mar 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 02-12-2015, 09:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 02-13-2015, 11:15 AM
grayloon's Avatar
grayloon grayloon is offline
 
Join Date: Mar 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't change anything before creating the database backup. This is version 5.1.1.
Reply With Quote
  #10  
Old 02-13-2015, 05:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04176 seconds
  • Memory Usage 2,258KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete