1

I created a multiple image uploader in magento2 everything was working fine but after some days it is giving this error

Uncaught ReferenceError: byteConvert is not defined

enter image description here

I don't know whats the issue. Kinldy help thanks in advance

1
  • can you share that module? Jul 25, 2022 at 6:02

1 Answer 1

1

byteConvert is a one of function from varien/js.js library

This library loads via backend theme vendor/magento/theme-adminhtml-backend/etc/view.xml

<item type="file">Lib::varien/js.js</item>

You need to check why this library doesn't load on your backend page and solve the issue.

5
  • How to do that I was trying but dindnot find any solution !! Jul 21, 2022 at 10:56
  • Please check lib/web/legacy-build.min.js. Is this file contains byteConvert function? Is this file loads in admin? Jul 21, 2022 at 11:19
  • yes It contains the byteConvert function but still it is not working, I had try all the commands like cache:clean,cache:flush,setup:upgrade,di:compile,content:deploy etc Jul 22, 2022 at 4:44
  • do you manged to fix this issue?
    – Waqar Ali
    Sep 20, 2022 at 7:44
  • Facing the same issue again @WaqarAli Dec 20, 2022 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.