Hallo!
ich habe heute über Composer Isotope auf die Version 2.3.0 upgedatet.
Bei einer Testbestellung gab es dann, nach dem Absenden der Bestellung nur noch eine Fehlermeldung.
PHP-Code:
Warning: Illegal offset type in isset or empty in system/modules/core/library/Contao/System.php on line 158
#0 system/modules/core/library/Contao/System.php(158): __error(2, 'Illegal offset ...', '/kunden/doebeln...', 158, Array)
#1 system/modules/isotope/library/Isotope/Module/Checkout.php(198): Contao\System::importStatic('Isotope\Rules', Object(Isotope\Module\Checkout))
#2 system/modules/core/modules/Module.php(282): Isotope\Module\Checkout->compile()
#3 system/modules/isotope/library/Isotope/Module/Module.php(112): Contao\Module->generate()
#4 system/modules/isotope/library/Isotope/Module/Checkout.php(85): Isotope\Module\Module->generate()
#5 system/modules/core/elements/ContentModule.php(59): Isotope\Module\Checkout->generate()
#6 system/modules/core/library/Contao/Controller.php(476): Contao\ContentModule->generate()
#7 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#8 system/modules/core/modules/Module.php(282): Contao\ModuleArticle->compile()
#9 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#10 system/modules/core/library/Contao/Controller.php(409): Contao\ModuleArticle->generate(false)
#11 system/modules/core/library/Contao/Controller.php(269): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#12 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#13 system/modules/core/controllers/FrontendIndex.php(267): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#14 index.php(20): Contao\FrontendIndex->run()
#15 {main}
Warning: Illegal offset type in system/modules/core/library/Contao/System.php on line 160
#0 system/modules/core/library/Contao/System.php(160): __error(2, 'Illegal offset ...', '/kunden/doebeln...', 160, Array)
#1 system/modules/isotope/library/Isotope/Module/Checkout.php(198): Contao\System::importStatic('Isotope\Rules', Object(Isotope\Module\Checkout))
#2 system/modules/core/modules/Module.php(282): Isotope\Module\Checkout->compile()
#3 system/modules/isotope/library/Isotope/Module/Module.php(112): Contao\Module->generate()
#4 system/modules/isotope/library/Isotope/Module/Checkout.php(85): Isotope\Module\Module->generate()
#5 system/modules/core/elements/ContentModule.php(59): Isotope\Module\Checkout->generate()
#6 system/modules/core/library/Contao/Controller.php(476): Contao\ContentModule->generate()
#7 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#8 system/modules/core/modules/Module.php(282): Contao\ModuleArticle->compile()
#9 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#10 system/modules/core/library/Contao/Controller.php(409): Contao\ModuleArticle->generate(false)
#11 system/modules/core/library/Contao/Controller.php(269): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#12 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#13 system/modules/core/controllers/FrontendIndex.php(267): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#14 index.php(20): Contao\FrontendIndex->run()
#15 {main}
Warning: Illegal offset type in system/modules/core/library/Contao/System.php on line 163
#0 system/modules/core/library/Contao/System.php(163): __error(2, 'Illegal offset ...', '/kunden/doebeln...', 163, Array)
#1 system/modules/isotope/library/Isotope/Module/Checkout.php(198): Contao\System::importStatic('Isotope\Rules', Object(Isotope\Module\Checkout))
#2 system/modules/core/modules/Module.php(282): Isotope\Module\Checkout->compile()
#3 system/modules/isotope/library/Isotope/Module/Module.php(112): Contao\Module->generate()
#4 system/modules/isotope/library/Isotope/Module/Checkout.php(85): Isotope\Module\Module->generate()
#5 system/modules/core/elements/ContentModule.php(59): Isotope\Module\Checkout->generate()
#6 system/modules/core/library/Contao/Controller.php(476): Contao\ContentModule->generate()
#7 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#8 system/modules/core/modules/Module.php(282): Contao\ModuleArticle->compile()
#9 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#10 system/modules/core/library/Contao/Controller.php(409): Contao\ModuleArticle->generate(false)
#11 system/modules/core/library/Contao/Controller.php(269): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#12 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#13 system/modules/core/controllers/FrontendIndex.php(267): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#14 index.php(20): Contao\FrontendIndex->run()
#15 {main}
Fatal error: Call to a member function writeRuleUsages() on a non-object in /xxx/xxx/xxx/imkerei/system/modules/isotope/library/Isotope/Module/Checkout.php on line 200
Ich habe dann den Codeteil in der Checkout.php auskommentiert, danach wurde die Bestellung ausgeführt.
PHP-Code:
// !HOOK: pre-process checkout
if (isset($GLOBALS['ISO_HOOKS']['preCheckout']) && is_array($GLOBALS['ISO_HOOKS']['preCheckout'])) {
foreach ($GLOBALS['ISO_HOOKS']['preCheckout'] as $callback) {
$objCallback = \System::importStatic($callback[0], $this);
if ($objCallback->$callback[1]($objOrder) === false) {
\System::log('Callback ' . $callback[0] . '::' . $callback[1] . '() cancelled checkout for Order ID ' . $this->id, __METHOD__, TL_ERROR);
static::redirectToStep('failed');
}
}
}
Viele Grüße
Steffen Winde