magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Element 'script': This element is not expected after magento upgrade (when in developer mode) #11194

Closed katculbert closed 7 years ago

katculbert commented 7 years ago

Preconditions Git 2.14.1 Apache 2.4.27 Memcached 1.5.1 MySQL 5.7.19 OpenSSL 1.0.2l PHP 7.0.23 phpMyAdmin 4.7.4 SQLite 3.7.15.1 Varnish 4.1.0

Steps to reproduce Upgrade Magento 2.2.0 from Magento 2.1.9 Flush magento cache Ensure magento is in developer mode After upgrading, navigate to website

Expected result Website homepage should display (as per before upgrade)

Actual result error page with the following 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'script': This element is not expected. Line: 38

Anyone else having this problem and know how I can resolve it?

Thanks in advance!

katculbert commented 7 years ago

Here is a screenshot

screen shot 2017-10-03 at 14 33 40
magento-engcom-team commented 7 years ago

@katculbert This looks like a problem with one of the installed extensions. Please try with the clean Magento installation.

katculbert commented 7 years ago

Sorry - you want me to cleanly install magento or there is a way to clean my magento install? This was a production website as when I did it in test it worked fine.

magento-engcom-team commented 7 years ago

@katculbert We suggest trying with the clean magento installation without third-party extensions to ensure that error comes from the extension.

katculbert commented 7 years ago

I only have the one extension - MageFan Blog and I have updated that to be the latest which is compatible in theory with Magento 2.2. I can try a new install to see if I can escape this issue

orlangur commented 7 years ago

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'script': This element is not expected.

Looks like some of your layout XML does not pass XSD schema validation anymore. Just identify which one and fix it.

katculbert commented 7 years ago

Thank you for your help :)

I tried to update the extension afterwards to resolve this. When this didn't work - i created a fresh install rolling back to previous backups (so to version 2.1.8) and this time updated the extension at the same time as upgrading magento (to v2.1.9) and it worked.

Shall try to upgrade to 2.2 another day when I'm less scared!!

xpoback commented 7 years ago

@orlangur @magento-engcom-team There's no mention on this page neither on this page that any XSD schema has changed and it can have adverse effects. So it would be good to still consider this an issue, even if this is a documentation issue

orlangur commented 7 years ago

@xpoback as far as we identified in previous similar bug reports XSD schema really didn't change (or didn't change much). Just somehow validation didn't work properly before.

Do agree that it would be nice to have some FAQ or recipes section in update guide. Documentation issues should be reported in https://github.com/magento/devdocs.