Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default "Argument #2 is not an array" using the pro back up addon

    ok i installed the pro back up onto my cart then when to tools then site backup ok well when it is done i got this i just need to know if this is normall



    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

  2. #2
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default Re: "Argument #2 is not an array" using the pro back up addon

    can someone please help

  3. #3
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default getting warnings when i do a backup

    i am getting this warning when i do a backup is this normal

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,019
    Plugin Contributions
    61

    Default Re: "Argument #2 is not an array" using the pro back up addon

    Did you do this part?
    Setup Cron Job:
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
    1) open File 'backup_mysite_cron.php'.
    2) Set $document_root to the correct path to your Zen.
    3) Set the Cron job as

    php -f /pathtozen/admin/backup_mysite_cron.php

    Example:
    php -f /home/account_name/public_html/store/admin/backup_mysite_cron.php
    /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  5. #5
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default Re: "Argument #2 is not an array" using the pro back up addon

    im sorry but i dont understand this is what i have if you can change what needs changed please then i can copy and past please

    Code:
    ###### config variables
    
    $document_root = '/home/public_html'; //The zencart home directory with no trailing slash ie: /home/username/public_html
    $backup_dir = '/admin/backups/'; //The directory you want the backup to go to. (/admin/backups/ for zencart).
    $tarball_name = 'automated_backup'; //The name of the backup file. It will be appended with the date and time.
    
    ###### end of config variables
    
    set_error_handler("basic_error_handler");
    
    function basic_error_handler($errno, $errstr, $errfile, $errline) {
    	global $document_root, $backup_dir;
    
    	if ($errno == E_USER_ERROR) {
    		$error = "ERROR [$errno] $errstr error on line $errline in file $errfile, PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
    
    		$handle = fopen($document_root . $backup_dir . 'backup_mysite_error_log.txt','a');
    		fwrite($handle, $error);
    		fclose($handle);
    
    		die();
    	}
    
    	return true;
    }
    
    if (file_exists($document_root . '/admin/backup_mysite_backend.php')) {
    	require_once($document_root . '/admin/backup_mysite_backend.php');
    } else {
    	trigger_error('Cannot require file at: ' . $document_root . '/admin/backup_mysite_backend.php',E_USER_ERROR);
    }
    
    $backup = new Tar_Archive($document_root, $backup_dir, $tarball_name);
    $backup->backup_check(1); //passing 1 to the function forces a backup instead of it checking $_GET
    
    ?>

  6. #6
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default Re: "Argument #2 is not an array" using the pro back up addon

    if you can change what needs changed please then i can copy and past
    Code:
    ###### config variables
    
    $document_root = '/home/public_html'; //The zencart home directory with no trailing slash ie: /home/username/public_html
    $backup_dir = '/admin/backups/'; //The directory you want the backup to go to. (/admin/backups/ for zencart).
    $tarball_name = 'automated_backup'; //The name of the backup file. It will be appended with the date and time.
    
    ###### end of config variables
    
    set_error_handler("basic_error_handler");
    
    function basic_error_handler($errno, $errstr, $errfile, $errline) {
    	global $document_root, $backup_dir;
    
    	if ($errno == E_USER_ERROR) {
    		$error = "ERROR [$errno] $errstr error on line $errline in file $errfile, PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
    
    		$handle = fopen($document_root . $backup_dir . 'backup_mysite_error_log.txt','a');
    		fwrite($handle, $error);
    		fclose($handle);
    
    		die();
    	}
    
    	return true;
    }
    
    if (file_exists($document_root . '/admin/backup_mysite_backend.php')) {
    	require_once($document_root . '/admin/backup_mysite_backend.php');
    } else {
    	trigger_error('Cannot require file at: ' . $document_root . '/admin/backup_mysite_backend.php',E_USER_ERROR);
    }
    
    $backup = new Tar_Archive($document_root, $backup_dir, $tarball_name);
    $backup->backup_check(1); //passing 1 to the function forces a backup instead of it checking $_GET
    
    ?>

  7. #7
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default Re: "Argument #2 is not an array" using the pro back up addon

    can someone help please

  8. #8
    Join Date
    Jul 2009
    Posts
    53
    Plugin Contributions
    0

    Default Re: "Argument #2 is not an array" using the pro back up addon

    i am still having problems in my back up can someone help please

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 106

    Warning: Invalid argument supplied for foreach() in /hermes/bosweb/web173/b1732/ipw.jlcaudio/public_html/admin/backup_mysite_backend.php on line 116

 

 

Similar Threads

  1. v150 "CSS Button Addon" causing "Page Not Found" Error ...
    By Rony in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 30 Apr 2012, 05:37 AM
  2. Warning: array_merge() [function.array-merge]: Argument #1 is not an array
    By antieuclid in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 19 Jul 2010, 02:50 AM
  3. Replies: 19
    Last Post: 14 Dec 2009, 01:17 PM
  4. Getting "There were errors" using the Add Customer In Admin addon
    By Skeanie in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Sep 2009, 12:24 PM
  5. Replies: 1
    Last Post: 14 Mar 2008, 02:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR