cancel
Showing results for 
Search instead for 
Did you mean: 

Error while adding/editing products in magento 2

SOLVED

Error while adding/editing products in magento 2

I am getting following error when I add/edit products from backend in Magento 2.

 

Notice: Use of undefined constant data - assumed 'data' in /public_html/test/vendor/magento/module-backend/view/adminhtml/templates/media/uploader.phtml on line 28

7 REPLIES

Re: Error while adding/editing products in magento 2

Hello @vrushali_mhetre1

 

make sure you did not edit that file

 

compare your code with 

 

https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Backend/view/adminhtml/templates/med...

 

Also make sure php short tag enabled from php.

 

 

 

if works then mark as solution

Re: Error while adding/editing products in magento 2

Hi Sunil Patel

I am using Huge/Huge1 Theme, This theme installed is with magento setup files.

I couldn't find magento2/app/code/Magento/Backend/view/adminhtml/templates/media/uploader.phtml

 

 

Re: Error while adding/editing products in magento 2

Hello @vrushali_mhetre1

 

if you are installed magento using composer then you need to check same file into 

vendor/magento/module-backend

Re: Error while adding/editing products in magento 2

Hi Sunil Patel,

 

I got the file and also compared it, its proper.

 

Re: Error while adding/editing products in magento 2

Hi Sunil Patel,

This solution didn't worked for us.

Could you please guide us with other solution?

Re: Error while adding/editing products in magento 2

Hello @vrushali_mhetre1

 

you are using very old Magento, so i am recommended to use latest Magento

 

for temp solution please disable error log

 

hope it will help you.

Re: Error while adding/editing products in magento 2

Thank You Sunil Patel Smiley Happy