No announcement yet.

Error in MYSQL | Includes on line

  • Filter
  • Time
  • Show
Clear All
new posts

  • Error in MYSQL | Includes on line

    I am moving servers, both servers have the same version of php, mysql, phpmyadmin.

    I exported my DB through PHPMYADMIN and through cpanel and through admincp database backup.

    all three import fine into my new server but when I view the board I get this error at the top:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 3699
    Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3699

    All the posts , board names and threads are all gone. Can anyone help?

  • #2
    Did you have a complete backup?

    The only consistently reliable method of backing up and restoring a database is with shell access via telnet or ssh. This is because backing up with a PHP script like that in the Admin CP or phpMyAdmin can result in PHP timeout errors and an incomplete backup file.
    Please see the instructions here:



    If you don't have telnet or SSH access, some people have reported success with these scripts:




    I would also recommend that you re-upload all the original vB and non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.


    • #3
      Thats funny as i just encountered the same problem with my site and all my info is still there when i go through the php admin panel. Anyone help on what else might be going on thanks in advance.
      Here is a link


      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.