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

Error when saving product with image - Magento 2 #5746

Closed dapdx closed 8 years ago

dapdx commented 8 years ago

Not able to save any products with images. Clean Magento 2.1 install.

Here is the error I'm getting

Warning: DOMXPath::query(): Invalid expression in /chroot/home/customb1/custom.breweryapparel.com/html/vendor/magento/framework/Config/Dom.php on line 273

Products with no images save fine. Any help would be greatly appreciated.

maderlock commented 8 years ago

I suspect that you have not completed installation, with this error. Have you run both composer install and bin/magento setup:install?

(btw, I do not think that this is a bug with Magento, so please ask for help on Stack Exchange if you need further help on this)

oserediuk commented 8 years ago

Hello! Could you provide more details? I cannot reproduce this issue on the fresh installed instance version 2.1

dapdx commented 8 years ago

I was able to fix this issue. It was caused by an incorrect line in the view.xml file in a custom theme.

Thank you

On 7/27/2016 6:35 AM, Oleksii Serediuk wrote:

Hello! Could you provide more details? I cannot reproduce this issue on the fresh installed instance version 2.1

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/5746#issuecomment-235586504, or mute the thread https://github.com/notifications/unsubscribe-auth/ATobILS0ThIpo93iPmJriHbUT4-clsB4ks5qZ167gaJpZM4JSJBd.

oserediuk commented 8 years ago

You are welcome!

mengbo123456 commented 7 years ago

me too

Warning: DOMXPath::query(): Invalid expression in E:\web work\wwwroot\appweb\vendor\magento\framework\Config\Dom.php on line 273

image

image view.xml image