Jump to content
xt:Commerce Community Forum

Fehlermeldung bei Artikeleingabe


Recommended Posts

Guten Tag

Bei der Artikeleingabe bzw. Produkterfassung erhalte ich die folgende Fehlermeldung:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/XXXXX/public_html/shop/admin/includes/classes/categories.php on line 502

Bei einem neu erfassten Artikel werden zwar Artikelname, Produktbeschreibung, Kurzbeschreibung und Artikel-Bilder gespeichert. Aber der ganze Rest (wie Preis, Artikelnummer, Artikelanzahl, Reihung, etc.) wird nicht gespeichert.

Hier noch die Code-Zeilen aus /admin/includes/classes/categories.php:

		$customers_statuses_array = xtc_get_customers_statuses();

$permission = array ();
for ($i = 0; $n = sizeof($customers_statuses_array), $i < $n; $i ++) {
if (isset($customers_statuses_array[$i]['id']))
$permission[$customers_statuses_array[$i]['id']] = 0;
}
if (isset ($products_data['groups']))
foreach ($products_data['groups'] AS $dummy => $ {
$permission[$b] = 1;
}
// build array
if ($permission['all']==1) {
$permission = array ();
end($customers_statuses_array);
for ($i = 0; $n = key($customers_statuses_array), $i < $n+1; $i ++) {
if (isset($customers_statuses_array[$i]['id']))
$permission[$customers_statuses_array[$i]['id']] = 1;
}
}


$permission_array = array ();


// set pointer to last key
end($customers_statuses_array);
for ($i = 0; $n = key($customers_statuses_array), $i < $n+1; $i ++) {
if (isset($customers_statuses_array[$i]['id'])) {
$permission_array = array_merge($permission_array, array ('group_permission_'.$customers_statuses_array[$i]['id'] => $permission[$customers_statuses_array[$i]['id']]));
}
}
// $sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']), 'products_model' => xtc_db_prepare_input($products_data['products_model']), 'products_ean' => xtc_db_prepare_input($products_data['products_ean']), 'products_price' => xtc_db_prepare_input($products_data['products_price']), 'products_sort' => xtc_db_prepare_input($products_data['products_sort']), 'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']), 'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']), 'products_date_available' => $products_date_available, 'products_weight' => xtc_db_prepare_input($products_data['products_weight']), 'products_status' => $products_status, 'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']), 'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']), 'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']), 'product_template' => xtc_db_prepare_input($products_data['info_template']), 'options_template' => xtc_db_prepare_input($products_data['options_template']), 'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']), 'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']), 'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']), 'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']), 'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']), 'products_sperrgut' => xtc_db_prepare_input($products_data['products_sperrgut']));
$sql_data_array = array_merge($sql_data_array, $permission_array);[/PHP]

Würde mich ungemein über Hilfe freuen. Bin leider kein PHP-Crack. Also bitte beim antworten "Support-für-Volltrottel-Modus" anschalten. :D

Vielen Dank schon mal für eure Bemühungen - und herzliche Grüsse aus der Schweiz.

Link to comment
Share on other sites

Ohne Gewähr und Garantie, da der Fehler mir aus OSC bekannt ist!

Suche in admin/customers.php

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


$cInfo_array = array_merge($customers, $customer_info); 
und ändere in
$customer_info [COLOR=#666600]=[/COLOR] array_merge[COLOR=#666600](([/COLOR]array[COLOR=#666600])[/COLOR]$country[COLOR=#666600],[/COLOR] [COLOR=#666600]([/COLOR]array[COLOR=#666600])[/COLOR]$info[COLOR=#666600],[/COLOR] [COLOR=#666600]([/COLOR]array[COLOR=#666600])[/COLOR]$reviews[COLOR=#666600]);[/COLOR]


$cInfo_array [COLOR=#666600]=[/COLOR] array_merge[COLOR=#666600](([/COLOR]array[COLOR=#666600])[/COLOR]$customers[COLOR=#666600],[/COLOR] [COLOR=#666600]([/COLOR]array[COLOR=#666600])[/COLOR]$customer_info[COLOR=#666600]);[/COLOR]

Link to comment
Share on other sites

Archived

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

×
  • Create New...