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

Błąd w strukturze pliku XML layoutu: customer_account_index.xml; The attribute 'class' is not allowed #8

Closed dudzio12 closed 6 years ago

dudzio12 commented 6 years ago

Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed. Line: 922

Od wersji 2.2.0, nie jest dozwolone użycie atrybutu "class" w elemencie "referenceBlock".

<referenceBlock name="customer_account_dashboard_top" class="PayU\PaymentGateway\Block\Order\Recent">(...)</referenceBlock>

Takie użycie występuje w pliku view/frontend/layout/customer_account_index.xml. Błąd uniemożliwia przejście w skecję użytkownika: /customer/account.

Więcej o problemie tutaj: https://github.com/magento/magento2/issues/11116.

dudzio12 commented 6 years ago

Również w plikach: view/frontend/layout/sales_email_order_items.xml, view/frontend/layout/sales_order_history.xml, view/frontend/layout/sales_order_view.xml

tomekjordan commented 6 years ago

to jest pewnie przyczyna błędów ktore ja wczesniej wskazalem > https://github.com/PayU/plugin_magento_2/issues/2 ticket jest zamknięty - chociaż bład faktycznie występuje a kolega @regdos nie wierzył :)

Dorzucilem tam zrzut z loga ktory pokazuje - ze jest cos nie tak z Payu dla M2, bo to samo dalej występuje na v221, v222 > Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed. Line: 922

dudzio12 commented 6 years ago

Dokładnie tak

regdos commented 6 years ago

@tomekjordan tak. Pracuję nad poprawką.

regdos commented 6 years ago

Poprawka https://github.com/PayU/plugin_magento_2/commit/7483c430854e58c85b4970658fab4ad1b715d3a6 Testowane na wersji 2.1.9 i 2.2.1 i działa poprawnie. Proszę o sprawdzenie u Was.

dudzio12 commented 6 years ago

@regdos - Potwierdzam, że w /customer/account/ nie ma już błędu.