Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2005, 07:13 PM
Femtos Femtos is offline
 
Join Date: Aug 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moved mysql database and site files, not working

Hi, I recently moved my vbulletin 3.0.8 forums from one host to another. I backed up the mysql database in phpmysql and restored it in full in phpmysql on my new host. I then uploaded all the other site files, entered in the new config.php details and tried accessing the restored forum. Sadly, I received two errors that make the forum unfunctional.



Warning: array_keys(): The first argument should be an array in /includes/functions.php on line 3090



Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3090





Are the errors I get. On line 3090 of my includes/functions.php, I have:



Code:
 foreach(array_keys($forumcache) AS $forumid)


So $forumcache doesnt seem to be working.



I installed a lot of hacks including vbfeedback, vbjournal, and vbgarage although I don't see why it wouldnt work if I transfered every single thing that vbulletin uses (database and site files). Is there something I missed? Please help.
Reply With Quote
  #2  
Old 09-17-2005, 07:24 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you very sure the backup was complete and not corrupted?
Reply With Quote
  #3  
Old 09-17-2005, 08:50 PM
Femtos Femtos is offline
 
Join Date: Aug 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I just did another full copy/rewrite and the errors persist.

Perhaps it was the way in which I backed up the database? I backed up using

"Use hexadecimal for binary fields" and selecting compatibility for Mysql40 because the host we were moving to had a different version of mysql that could not support latin1 charset. Could that be the reason why?
Reply With Quote
  #4  
Old 09-17-2005, 09:04 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What MySQL version is on the old & new server?

Could you also please check the backup file with an editor end check that the last few lines contain entries for the 'word' table?

PS What is the size of the backupfile?
Reply With Quote
  #5  
Old 09-17-2005, 09:29 PM
Femtos Femtos is offline
 
Join Date: Aug 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

old server: MySQL 4.1.13a-Debian_2-log

new server: MySQL 4.0.25-standard

The backup file's last line is INSERT INTO `word` VALUES (14778, 'consulting');

The size of the backup file is 213 megabytes. Mostly due to vbGarage's pictures being stored in the database. I managed to restore it through the host's help.
Reply With Quote
  #6  
Old 09-18-2005, 04:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try creating a new backup, but don't select "Use hexadecimal for binary fields".

PS If you have SSH/Telnet access, better use that since it is much mor reliable.
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 11:43 AM.


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.03896 seconds
  • Memory Usage 2,202KB
  • Queries Executed 13 (?)
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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete