Search the Community
Showing results for tags 'Undefined offset'.
-
Bonjour à tous, Je me permets de revenir vers vous car je rencontre un souci avec le module Prestablog que je viens d'installer sur mon site. Tout fonctionne à priori, si ce n'est que j'ai un souci lorsque j'active celui-ci. J'ai un message d'erreur qui apparaît au dessus de mon header :Notice: Undefined offset: 3 in /homepages/6/d653480063/htdocs/modules/prestablog/class/popup.class.php on line 1235Notice: Undefined offset: 3 in /homepages/6/d653480063/htdocs/modules/prestablog/class/popup.class.php on line 1189Je me suis rendu sur les lignes concernées dans le fichier concerné, les voici :ligne 1235 : $id = (int)str_replace('id=', '', $url_split[3]);ligne 1189 : $cate = (int)str_replace('c=', '', $url_split[3]);Sauriez-vous m'indiquez quel est le souci je vous prie ? Le développeur du module m'a invité à mettre le popup.class au bon endroit (il y était déjà initialement) j'ai néanmoins refait la manipulation sans aucun résultat. Vous remerciant par avance.Cordialement, Alexandra
- 3 replies
-
- prestablog
- blog
-
(and 3 more)
Tagged with:
-
Hi, I'm getting the following errors in my php "error.log" using PS 1.6.1.10 (was the same for 1.6.1.8). [08-Jan-2017 09:18:09 Europe/Stockholm] PHP Notice: Undefined offset: 62376 in /var/www/html/ps16/classes/PaymentModule.php on line 233 [08-Jan-2017 09:18:09 Europe/Stockholm] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/ps16/classes/PaymentModule.php on line 233 [08-Jan-2017 09:19:59 Europe/Stockholm] PHP Notice: Trying to get property of non-object in /var/www/html/ps16/classes/module/Module.php on line 2284 The first one seems to have something to do with carriers, in PaymentModule.php: foreach ($cart_delivery_option as $id_address => $key_carriers) { foreach ($delivery_option_list[$id_address][$key_carriers]['carrier_list'] as $id_carrier => $data) { foreach ($data['package_list'] as $id_package) { The second one seems to have something to do with currency, in Module.php: if (Currency::isMultiCurrencyActivated()) { $cache_array[] = (int)$this->context->currency->id; } They mostly appear with a purchase, although not always with the same payment module? The BO logs also gives the error: 4910 -- 1 Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Cart 100021 0x0 2017-01-08 09:18:12 My shop has only English & Swedish installed and activated, but Swedish is the only language seen by the customer, there is no language block activated for such a selection! On the other hand, a Currency block is activated for the customer to choose between Kroner & Euro. All of my carriers have been added manually (and checked), no carrier modules are in use. I have not activated the main file Cache, although Smarty & CCC are activated. Can anybody help, any idea please? Thanks in advance. David C
- 4 replies
-
- error.log
- Undefined offset
- (and 5 more)
-
Salve a tutti, dopo aver modificato il file tinymce.inc.js, riscontro un errore di server 500. Ho annullato le modifiche fatte al file 'tinymce.inc.js', riportandolo quindi allo stato originale, ma l'errore di server 500 persiste. Ho attivato la modalita di Debug e il sito funziona e l'unico messaggio che il debug mosta e': Notice: Undefined offset: -1 in /home/arredoba/new.arredobagnoitaliano.com/override/controllers/front/listing/CategoryController.php on line 27 Qualche idea? Grazie e buon lavoro
-
Hi, I'm running PS1.6.1.10 (after updating recently from PS1.6.1.8) and during some payments I'm getting the following entries in the php error.log? [06-Jan-2017 13:54:23 Europe/Stockholm] PHP Notice: Undefined offset: 62345 in /var/www/html/ps16/classes/PaymentModule.php on line 233 [06-Jan-2017 13:54:23 Europe/Stockholm] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/ps16/classes/PaymentModule.php on line 233 If I then look at my "PaymentModule.php" (not Overridden in any way) it seems to be something to do with delivery and carrier data! See below Line 233 in red: foreach ($cart_delivery_option as $id_address => $key_carriers) { foreach ($delivery_option_list[$id_address][$key_carriers]['carrier_list'] as $id_carrier => $data) { foreach ($data['package_list'] as $id_package) { // Rewrite the id_warehouse $package_list[$id_address][$id_package]['id_warehouse'] = (int)$this->context->cart->getPackageIdWarehouse($package_list[$id_address][$id_package], (int)$id_carrier); $package_list[$id_address][$id_package]['id_carrier'] = $id_carrier; } } } Has anybody got any idea about this problem and how to fix it, please? Thanks, In Advance David C