Zen Cart Logo
Forums / All Other Contributions/Addons / "Argument #2 is not an array" using the pro back up addon

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

Locked

Views: 2,229

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
20 Jul 2009, 4:59 AM
#1
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

"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

20 Jul 2009, 10:10 PM
#2
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

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

can someone please help

25 Jul 2009, 10:35 PM
#3
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

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

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

26 Jul 2009, 12:11 PM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

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

27 Jul 2009, 12:42 AM
#5
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

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

###### 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

?>
27 Jul 2009, 12:44 AM
#6
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

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

###### 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

?>
31 Jul 2009, 2:38 AM
#7
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

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

can someone help please

13 Aug 2009, 10:38 PM
#8
jlcaudio avatar

jlcaudio

New Zenner

Join Date:
Jul 2009
Posts:
53
Plugin Contributions:
0

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