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.
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
if you are installed magento using composer then you need to check same file into
Hi Sunil Patel,
This solution didn't worked for us.
Could you please guide us with other solution?
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.