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? Commented 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 !! Commented 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? Commented 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 Commented Jul 22, 2022 at 4:44
  • do you manged to fix this issue? Commented Sep 20, 2022 at 7:44
  • Facing the same issue again @WaqarAli Commented Dec 20, 2022 at 13:14

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.