Search the Community
Showing results for tags 'Module.php'.
-
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)
-
Hello everyone, I do not speak English well, I apologize in advance for my translation Prestashop version 1.6.1.6 Here is my problem I recently wanted to install "Mailchimp" on my shop. Once installed I see that my automatic email that sends after a customer performs an action on my shop (Purchase, account, welcome etc ...) it is disabled, so I uninstalled Mailchimp from my shop for restore automatic mail. Since that day I can not access my modules anymore I have an error message on my page (module and service). [PrestaShop] Fatal error in module file :/home/inmincxh/www/classes/module/Module.php(1361) : eval()'d code:Can't use function return value in write context I have to look dozens of topic, however I can not find an exact answer to this problem, most people say that I must erase (after backup) each module one by one until I find where the problem comes from. I am not very experienced and can not access the page to test, I am blocked. If you have another solution to offer me I thank you in advance! thank you ! Tradution bonjour à tous, Version de Prestashop 1.6.1.6 Voila mon problème j'ai récemment voulu installer "Mailchimp" sur ma boutique. Une fois installer je constate que mes mails automatique qui s'envoient après qu'un client effectue une action sur ma boutique (Achat, compte, bienvenue etc...) c'est désactivé, j'ai donc désinstallé Mailchimp de ma boutique pour rétablir les mail automatique. Depuis ce jour je ne peux plus accéder a mes modules, j'ai un message d'erreur sur ma page (module et service). [PrestaShop] Fatal error in module file :/home/inmincxh/www/classes/module/Module.php(1361) : eval()'d code:Can't use function return value in write context J'ai du regarder des dizaines de topic, cependant je ne trouve pas de réponse exacte à ce problème, la plus part des personnes disent qu'il faut que j'efface (après sauvegarde) chaque module un à un jusqu'a se que je trouve d'ou vient le problème. Je n'est pas beaucoup d’expérience et ne pouvant pas accéder à la page pour faire se teste, je suis bloqué. Si vous avez une autre solution à me proposer je vous en remercie d'avance ! Merci.
- 3 replies
-
- mailchimp
- error fatal
- (and 12 more)
-
Hola amigos Cuando intento entrar a "módulos y servicios" en mi back-office, me sale este error. Alguien me puede ayudar a solucionarlos, por favor? Muchas gracias por adelantado [PrestaShop] Fatal error in module file :/var/www/vhosts/dominio.es/httpdocs/classes/module/Module.php(1361) : eval()'d code:Can't use function return value in write context
-
Merhaba Değerli Prestashop Kullanıcıları, VPS olan web serverim üzerinde Cache system olarak Memcached'i yüklettim. Yüklemeden sonra iki sitemin ikisi de açılmıyor. Site cachini, browser cachini silerek kontrol ettim, .htaccess dosyasını yeniden oluşturttum Prestashop'a. Sonuç değişmedi. 1. sitenin anasayfası şu hatayı veriyor: Fatal error: Call to undefined method Smarty_Data::assign() in /home/.../public_html/classes/module/Module.php on line 1609 2.siteyi açmaya çalıştığımda ise; sunucu bulunamadı yazıyor. Acaba sorun Memcached yüklenmesinden mi kaynaklandı yoksa başka bir sorun olabilir mi. Çözümde yardımcı olabilecek arkadaşlara şimdiden teşekkür ederim. Kolay gelsin
- 3 replies
-
- sunucu hatası
- Module.php
-
(and 4 more)
Tagged with:
-
Сегодня утром установил модуль quickview. Посмотрел и сразу удалил. Но он не удалился по-хорошему, а выдал ошибку. После этого перестали работать админка и сайт (БО и ФО). Выскакивала ошибка 500 или чистый лист (на разных браузерах). Проверил логи на сайте. Ошибка следующего вида: Parse error: syntax error, unexpected $end in /home/cp555555/public_html/мой сайт/override/classes/module/Module.php on line 15 Посмотрел файл Module.php на сервере и он оказался испорчен: Вот что от него осталось: <?php abstract class Module extends ModuleCore { public function getExceptions($hookID, $dispatch = false) { if (self::$exceptionsCache === null) { Я скопировал модуль из папки classes и вставил в override, но опять вылетает ошибка: Fatal error: Cannot redeclare ps_module_version_sort() (previously declared in /home/cp555555/public_html/мой сайт/classes/module/Module.php:2028) in/home/cp555555/public_html/мойсайт/override/classes/module/Module.php on line 2031 Ребят, помогите пожалуйста. Уже устал пытаться поправить. Как решить эту проблему? Может есть какой-то чистый файл module.php. В магазине очень много товаров. Не хочется терять. (p.s. Бэкап есть в виде архива, но как он мне поможет - я не знаю. Не могу зайти в админку)