GX-Bug #51344
Von Tobias Schindler vor mehr als 7 Jahren aktualisiert
Folgt man folgender URL im Gambio Admin, so wird ein Fehler in den Logs erzeugt: /admin/modules.php?set=shipping&module=item Die Fehlermledung lautet wie folgt: ~~~ html Es kann eine beliebige Seite der Versandarten gewählt sein, lediglich der Cache der MainFactory muss geleert sein, um den Fehler zu reproduzieren. 2017-05-02 10:49:03 (d99fbcc5cd52150ba5c8c9444892e200) WARNING(2): "Invalid argument supplied for foreach()" in /gxdev_feature_branch/src/system/core/MainFactory.inc.php:456 #1 File: /gxdev_feature_branch/src/system/core/MainFactory.inc.php:456 Code: │ line 454: $t_constructor_args_array = array(); │ line 455: ├─ line 456: foreach($p_args_array as $key => &$item) │ line 457: { │ line 458: $t_constructor_args_array[] = '$p_args_array[' . $key . ']'; #0 File: /gxdev_feature_branch/src/admin/modules.php:260 Code: │ line 258: $contents = array(); │ line 259: ├─ line 260: $languageTextManager = MainFactory::create_object('LanguageTextManager', true); │ line 261: $formIsEditable = false; │ line 262: Request: GET /gxdev_feature_branch/src/admin/modules.php?set=shipping&module=item - duration: ~3741ms - server: Apache/2.2.22 (Ubuntu) PHP/5.4.39-1+deb.sury.org~precise+2 mod_ssl/2.2.22 OpenSSL/1.0.1 - server address: 192.168.101.54 - user agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 - remote address: d99fbcc5cd52150ba5c8c9444892e200 Session: - tpl: Honeygrid - MOBILE_ACTIVE: false - language: german - languages_id: 2 - language_charset: utf-8 - language_code: de - currency: EUR - customers_status: Array ( [customers_status_id] => 0 [customers_status_name] => Admin [customers_status_image] => admin_status.gif [customers_status_public] => 0 [customers_status_min_order] => 0 [customers_status_max_order] => 0 [customers_status_discount] => 0.00 [customers_status_ot_discount_flag] => 1 [customers_status_ot_discount] => 0.00 [customers_status_graduated_prices] => 1 [customers_status_show_price] => 1 [customers_status_show_price_tax] => 1 [customers_status_add_tax_ot] => 1 [customers_status_payment_unallowed] => [customers_status_shipping_unallowed] => [customers_status_discount_attributes] => 0 [customers_fsk18] => 1 [customers_fsk18_display] => 1 [customers_status_write_reviews] => 1 [customers_status_read_reviews] => 1 ) - cart: shoppingCart Object ( [contents] => Array ( ) [total] => 0 [weight] => 0 [cartID] => [content_type] => [tax] => Array ( ) ) - wishList: wishList Object ( [contents] => Array ( ) [total] => 0 [weight] => 0 [cartID] => [content_type] => ) - customer_id: 1 - payment: ### Session entry not present ### - shipping: ### Session entry not present ### - cartID: ### Session entry not present ### - sendto: ### Session entry not present ### - billto: ### Session entry not present ### Get: - set: shipping - module: item ~~~