• Hi,
    I am getting this console error whenever I try run a product export from a different plugin.

    Disabling Asset Cleanup allows the export to run.

    This is the error
    https://prnt.sc/115xttm

    and this is the file in question.
    /wp-content/plugins/wp-asset-clean-up/assets/sweetalert2/dist/sweetalert2.min.js?ver=1

    I contacted the other plugin developer and they say its a AssetCleanup issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @shanedel90 what’s the name of the plugin? There’s a chance that SweetAlert is not needed to load there. In fact, I’ll double-check this and make sure it only loads when it’s needed. I could install the same plugin you’re using so I can debug it. I have a suspicion that the other plugin is using JavaScript to trigger the export and it can’t because of this file getting loaded with the error you mentioned.

    Thread Starter shanedel90

    (@shanedel90)

    The other plugin is WooCommerce Quickbooks Connector by Techspawn

    If you need a copy of the plugin I can ask the developers for a copy for debugging purposes.

    • This reply was modified 3 years, 7 months ago by shanedel90.
    • This reply was modified 3 years, 7 months ago by shanedel90.
    Plugin Author Gabe Livan

    (@gabelivan)

    @shanedel90 can you make a ZIP file of the plugin and send it to me privately via https://www.gabelivan.com/contact/? You can use Dropbox or another similar platform to share the ZIP. I need to analyze its code and determine if there could be a conflict with Asset CleanUp’s SweetAlert script.

    Plugin Author Gabe Livan

    (@gabelivan)

    @shanedel90 I found out what the problem is. The SweetAlert used by the “WooCommerce Quickbooks Connector by Techspawn” plugin is conflicting with the one used in Asset CleanUp. I made some changes and now it should work okay (no more conflicting). In my tests, it’s been working well. Please try the development version which has the fix and let me know how it works. Here’s how you can do that: https://www.assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/

    Thread Starter shanedel90

    (@shanedel90)

    Works great, thanks so much. What exactly was the issue? I have another plugin causing the same issue but both developers are blaming each other for incorrect implementation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught TypeError: Cannot call a class as a function sweetalert2.min.js?ver=1:1’ is closed to new replies.