Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error after installation


GoAia

Recommended Posts

Hi,

 

After installation of some contributions (basically Ultimate SEO URLs, SecurityPro_1.0.2, header-tags-4-novices-v3.01), but also some moving of code, I get this:

 

"Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/yournutri/www/www/life/zzxx12zzxx99))/customers.php on line 733

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/yournutri/www/www/life/zzxx12zzxx99))/customers.php on line 735"

 

Line 726-737 looks like this:

" if ((!isset($HTTP_GET_VARS['cID']) || (isset($HTTP_GET_VARS['cID']) && ($HTTP_GET_VARS['cID'] == $customers['customers_id']))) && !isset($cInfo)) {

$country_query = tep_db_query("select countries_name from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$customers['entry_country_id'] . "'");

$country = tep_db_fetch_array($country_query);

 

$reviews_query = tep_db_query("select count(*) as number_of_reviews from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers['customers_id'] . "'");

$reviews = tep_db_fetch_array($reviews_query);

 

$customer_info = array_merge($country, $info, $reviews);

 

$cInfo_array = array_merge($customers, $customer_info);

$cInfo = new objectInfo($cInfo_array);

}"

 

 

and

 

"Warning: reset() [function.reset]: Passed variable is not an array or object in /home/yournutri/www/www/life/zzxx12zzxx99))/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/yournutri/www/www/life/zzxx12zzxx99))/includes/classes/object_info.php on line 18"

 

Looks like this:

 

"class objectInfo {

 

// class constructor

function objectInfo($object_array) {

reset($object_array);

while (list($key, $value) = each($object_array)) {

$this->$key = tep_db_prepare_input($value);

}

}

}

?>"

 

What is wrong? This is installed on a OsC template. Anyone having an idea, its a miracle :)

 

Lollo

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...