- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Error while adding/editing products in magento 2
Hello @vrushali_mhetre1
make sure you did not edit that file
compare your code with
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Error while adding/editing products in magento 2
Hi Sunil Patel,
I got the file and also compared it, its proper.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Error while adding/editing products in magento 2
Thank You Sunil Patel
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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