PayU-EMEA / plugin_magento_2

Plugin for Magento versions: >2.0.6, 2.1, 2.2
GNU General Public License v3.0
18 stars 13 forks source link

Emaile po transakcji Payu - sa popsute + problem z layoutem kiedy właczony jest moduł Payu - nowi klienci #2

Closed tomekjordan closed 6 years ago

tomekjordan commented 6 years ago

Witam, po transkakcjach testowych w najnowszym Module do Magento 2 - wszystkie emaile transakcyjne są "zepsute"

Screenshot: http://prntscr.com/hgkwu2

Potwierdzenie zamowienia tez generuje pusty email z 1 linijką: "Error filtering template: Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed. Line: 74"

pozdr TJ

regdos commented 6 years ago

Wszystkie maile czy tylko mail o ponowieniu transakcji? W ktorej wersji Magento problem występuje?

tomekjordan commented 6 years ago

transakcyjne. to znaczy email z jakims info o ponowieniu przyszedl pusty i z tym bledem i standardowy z zamowieniem magento tez jets pusty i taki sam bład Magento 211

regdos commented 6 years ago

W standardowy mail w żaden sposób nie ingerujemy więc wygląda na problem po stronie Twojej instalacji Magneto.

tomekjordan commented 6 years ago

Dziwne, bo przed instalaja Payu - zrobilem testowe zamowienie i email byl prawidlowy. sprawdze po wylaczeniu pluginu i dam znac.

regdos commented 6 years ago

Co wyszło ze sprawdzanie? Bo nie możemy tego zreplikować.

regdos commented 6 years ago

Przetestowaliśmy to wielokrotnie z Magento 2.1 i 2.2 i wszystko działa poprawnie, z braku odpowiedzi zamykam.

tomekjordan commented 6 years ago

Moge potwierdzic ze to nadal występuje - i testowalem to przed chwilą na M2.2.2 gołym. Błąd ten występuje - kiedy: 1) klient robi zamówienie nie mając wcześniej konta w sklepie 2) klient chce założyć konto

Błąd ten występuje tylko wtedy kiedy moduł Payu jest włączony.

Jeżeli moduł Payu jest włączony - to nie można utworzyć konta klienta, tak samo przy zamówieniu kiedy się nie jest zalogowanym - zamówienie jest zrobione (nie testowalem przejscia do Payu), ale na COD payment, a po takim zamówieniu otrzymuje dokladnie taki sam pusty email z tekstem "Error filtering template: Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed. Line: 74".

Dla jasnosci - instaluje gołe Magento 2.2.2 CE. PHP 7.1 Maria DB 10.1 nic specjalnego tam nie ma. Po raz pierwszy ten bład wystąpił na M2.1.1 plus starsza wersja pluginu Payu. Teraz to samo występuje nadal na najnowszym Magento 2 i najnowszej wersji pluginu.

Prawopodobnie jest to coś związanego z tym: https://github.com/magento/magento2/issues/11116

Po dokonaniu zamówienia - i przejsciu na My Account http://domain.pl/customer/account/ wyskakuje:

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed.
Line: 897

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed.
Line: 897

#0 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')
#1 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/home/admin/dom...', '%message%\nLine:...')
#2 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#3 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#4 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#5 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Model/Layout/Update/Validator.php(141): Magento\Framework\Config\DomFactory->createDom(Array)
#6 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)
#7 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<body>\n   <refe...')
#8 /home/admin/domains/domain.pl/public_html/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)
#9 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()
#10 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()
#11 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Page/Config.php(197): Magento\Framework\View\Layout\Builder->build()
#12 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/View/Page/Config.php(217): Magento\Framework\View\Page\Config->build()
#13 /home/admin/domains/domain.pl/public_html/vendor/magento/module-customer/Controller/Account/Index.php(40): Magento\Framework\View\Page\Config->getTitle()
#14 /home/admin/domains/domain.pl/public_html/generated/code/Magento/Customer/Controller/Account/Index/Interceptor.php(24): Magento\Customer\Controller\Account\Index->execute()
#15 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/App/Action/Action.php(107): Magento\Customer\Controller\Account\Index\Interceptor->execute()
#16 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#17 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Controller\Account\Index\Interceptor->___callParent('dispatch', Array)
#18 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Controller\Account\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#19 /home/admin/domains/domain.pl/public_html/generated/code/Magento/Customer/Controller/Account/Index/Interceptor.php(39): Magento\Customer\Controller\Account\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#20 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/App/FrontController.php(55): Magento\Customer\Controller\Account\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#22 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#23 /home/admin/domains/domain.pl/public_html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#24 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#25 /home/admin/domains/domain.pl/public_html/app/code/Litespeed/Litemage/Model/App/FrontController/LitemagePlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Litespeed\Litemage\Model\App\FrontController\LitemagePlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#27 /home/admin/domains/domain.pl/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#28 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#30 /home/admin/domains/domain.pl/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#31 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#32 /home/admin/domains/domain.pl/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#33 /home/admin/domains/domain.pl/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#34 {main}
tomekjordan commented 6 years ago

@regdos dasz radę spojrzeć?