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.
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.
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
Hello @vrushali_mhetre1
if you are installed magento using composer then you need to check same file into
vendor/magento/module-backend
Hi Sunil Patel,
I got the file and also compared it, its proper.
Hi Sunil Patel,
This solution didn't worked for us.
Could you please guide us with other solution?
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.
Thank You Sunil Patel
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