Smush Update Settings button is not working

The “Update Settings” button from the main Smush settings page is not working when having my theme active on the site.

  • Ash
    • WordPress Hacker

    Hello Marcin

    I am sorry, I am a bit confused about the control panel. As the language is Polish, I have used chrome browser translator, but still I could not fine the file manager.

    So, would you please send me your theme then I can install it on my test site and then troubleshoot? Please email me to contact@wpmudev.org with the subject line "Attn-Ash" and a link to this ticket. I will test on my site and try to find the issue.

    Have a nice day!

    Cheers,
    Ash

  • Ash
    • WordPress Hacker

    Hello Marcin

    Please go to /wp-content/themes/domilux-official/inc/setup.php line no 113 and put:

    if( isset( $_REQUEST['page'] ) && $_REQUEST['page'] != 'smush' )

    So the total function will look like:

    function domilux_admin_scripts( $hook ) {
    	if( isset( $_REQUEST['page'] ) && $_REQUEST['page'] != 'smush' )
        wp_enqueue_script( 'domilux-admin', get_stylesheet_directory_uri() . '/js/admin.js' );
        global $post;
        wp_localize_script( 'domilux-admin', 'post', array( 'post_id' => $post->ID ) );
    }

    But it's better to talk to the theme author as the error comes from the admin.js file in the theme.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.