• Resolved rquang

    (@rquang)


    I am receiving an error when trying to upload PDF’s. After pressing upload the loading animation just hangs. Error from the console:

    Uncaught TypeError: g.data.indexOf is not a function
    at HTMLDocument.<anonymous> (functions-admin.min.js?ver=1.6.5:1)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:9)
    at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:4)
    at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,backbone,wp-util,wp-backbone,media-m&load[]=odels,moxiejs,plupload,wp-plupload,jquery-ui-sortable&ver=4.9.8:4)

    When I view the media library, I can see that the PDF get’s uploaded.

    I have tested this in both Firefox and Chrome.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author maximum.software

    (@maximumsoftware)

    Looks like that JS file is part of ‘Perfect WooCommerce Brands’ plugin. Do you have that installed? Can you try disabling it and see if that solves your issue?

    Once I get a chance, I will replace that the file upload with media library thickbox which should improve compatibility a bit.

    Thread Starter rquang

    (@rquang)

    That was the issue!

    Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error on PDF Upload’ is closed to new replies.