1

When i try to upload product image by clicking "Browse Files" button. Image selection window is not showing.

In browser console window i can see some errors.

enter image description here

Uncaught SyntaxError: Unexpected token ;
(index):1480 Uncaught SyntaxError: Unexpected token ,
(index):1434 Uncaught ReferenceError: media_gallery_contentJsObject is not defined
    at HTMLInputElement.onclick ((index):1434)

any solution to fix this issue?

Hussain
  • 21
  • 6
  • I am face same issue in Magento 1.9.3.8 and I am use custom theme So can you suggest me where to add this content in adminhtml or frontend ? – Sanjay Gohil Jan 05 '19 at 15:54

2 Answers2

1

i found that magento 1.9.3.0 they remove the flash uploader so js file need to run uploader add these file in head.

<reference name="head">
      <action method="addJs"><file>lib/uploader/flow.min.js</file></action>
        <action method="addJs"><file>lib/uploader/fusty-flow.js</file></action>
        <action method="addJs"><file>lib/uploader/fusty-flow-factory.js</file></action>
        <action method="addJs"><file>mage/adminhtml/uploader/instance.js</file></action>
</reference>
Teja Bhagavan Kollepara
  • 3,816
  • 5
  • 32
  • 69
Vishal Baraiya
  • 2,816
  • 1
  • 11
  • 22
0

If you haven't already i would suggest installing SUPEE-8788. This removes the flash uploader from the admin meaning that it uses the default html functionality instead. Most browsers block flash by default and you have to manually enable it for use on sites. This is to prevent vulnerabilities in flash.

Once the patch is applied, clear caches, log out/back into the admin and try again and you should be good to go.

Worth a read before applying: Possible Issues with SUPEE-8788

Edit after more information provided. If you've just updated Magento (Which you should have put in your original question) then,

  1. Make sure you've cleared all caches, logged out of the admin and back in again
  2. It looks like JS consolidation is enabled so it may be worth disabling that while debugging in System > Configuration > Developer > Javascript Setting.
  3. Do you have the Creare SEO Extension? If so there is an incompatibility with it and SUPEE-8788 but there is a fix available for it here: https://github.com/adampmoss/CreareSEO/pull/78/files
DanCarlyon
  • 930
  • 1
  • 7
  • 15
  • Hi Dan Previously its working when magento version 1.9.0.1 .But after updating to 1.9.3.2 this issue came. – Hussain Dec 31 '17 at 10:53
  • Hi @Hussain, I didn't know you had just upgraded, this gives some new information which I have now added to my answer, it's most likely point number 3 in the list. If this helps, please upvote my answer :) – DanCarlyon Dec 31 '17 at 16:40
  • 1
    Thanks . Product upload issue solved by adding all patches. – Hussain Jan 11 '18 at 06:26
  • Awesome glad to here it. As my answered helped would you mind up voting it please so it may help other people in the future :) – DanCarlyon Jan 11 '18 at 07:27