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

1 ACCEPTED SOLUTION

Accepted Solutions

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.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

View solution in original post

8 REPLIES 8

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


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

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


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

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.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Error while adding/editing products in magento 2

Thank You Sunil Patel Smiley Happy

Re: Error while adding/editing products in magento 2

Hello,

 Found Solution after R&D On Magento database.
Login In your phpmyadmin
Go to your website database
Open "eav_attribute" table
Find Your multiselect "attribute_id"
Edit Row
If "backend_model" Column blank then paste this Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend

CjUZ6.png