• Resolved Ironikus

    (@ironikus)


    Hey guys,

    we received a couple of requests that your plugin is breaking the functionality of WP Webhooks on its own plugin pages.
    After some quick tests, we could confirm that as you are loading your scripts and styles globally (cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-plugin.php:344)

    The received error:

    cloudinary.js?ver=2.7.3:1 Uncaught TypeError: Cannot read property 'classList' of null
        at HTMLButtonElement.<anonymous> (cloudinary.js?ver=2.7.3:1)

    Please only load the required scripts and styles on pages that really require it as everything else is bad practice.

    For everyone who faces that issue in the meantime and looks for a solution: You can simply dequeue the scripts on the pages of WP Webhooks.
    To do that, just add the following snippet into your functions.php file of your theme:

    add_action( 'wp_print_scripts', 'deregister_script_on_wp_webhooks_pages', PHP_INT_MAX );
    function deregister_script_on_wp_webhooks_pages() {
    
    	if( function_exists( 'WPWHPRO' ) ){
    		if( WPWHPRO()->helpers->is_page( WPWHPRO()->settings->get_page_name() ) ){
    			wp_deregister_script( 'cloudinary' );
    			wp_dequeue_script( 'cloudinary' );
    		}
    	}
          
    }

    Do reach out in case you need further details.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support loic @ cloudinary

    (@loiccloudinary)

    Hi @ironikus,

    Thanks for reaching out with all the details of the issue.

    I will share this with my team in order to embed it in a future release.

    I will keep you posted on our progress.
    Best,
    Loic

    Plugin Support loic @ cloudinary

    (@loiccloudinary)

    Hi @ironikus,

    Could you clarify what you mean by your plugin is breaking the functionality of WP Webhooks on its own plugin pages? If you can share a screenshot where we can see the issue, this could be definitely helpful.

    Thanks in advance.
    Best,
    Loic

    Thread Starter Ironikus

    (@ironikus)

    Hey @loiccloudinary – you can simply reproduce the issue.

    1. Install and activate WP Webhooks and your plugin
    2. Head over to settings -> WP Webhooks -> Receive Data
    3. Select a webhook action and try to open the description accordion or the settings pop up – nothing happens.

    You will find further details about that within the console.

    Plugin Support loic @ cloudinary

    (@loiccloudinary)

    Hi @ironikus,

    Hope you are well.

    Would you mind upgrading to the version 2.7.4 of our plugin. The issue should be fixed with this new version.

    Best,
    Loic

    Thread Starter Ironikus

    (@ironikus)

    Hey @loiccloudinary – Thank you very much for your message, as well as for the update.
    We just confirmed that everything is working as expected now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cloudinary breaks WP Webhooks’ is closed to new replies.