• Resolved nick8182

    (@nick8182)


    hi, can you tell me how to cancel this notification (Did you know Autoptimize includes on-the-fly image optimization and CDN via ShortPixel? Check out the Autoptimize Extra settings to activate this option.), click on the X symbol, delete it but then on each page, reappear.

    Versione 2.4.1

    • This topic was modified 6 years, 5 months ago by nick8182.
Viewing 15 replies - 46 through 60 (of 87 total)
  • Really surprised about this issue. I have this same library on my plugins with thousands of install and not one person have reported this issue.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can someone how is actively having this issue open up wp-content/plugins/autoptimize/classes/autoptimizeMain.php and on line

    change
    $_ao_imgopt_plug_dismissible = 'ao-img-opt-plug-123';
    into
    $_ao_imgopt_plug_dismissible = 'ao-img-opt-plug-forever';

    to check if this (which has the PanD library set expiry to 0) fixes this problem?

    I’m getting:

    [15-Oct-2018 01:03:40 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/[redacted]/wp-content/plugins/autoptimize/classes/autoptimizeMain.php:1) in /home/[redacted]/wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 257
    [15-Oct-2018 01:03:42 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/[redacted]/wp-content/plugins/autoptimize/classes/autoptimizeMain.php:1) in /home/[redacted]wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 267

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    bizarrio … but what about the notice @nyssamccanmore, is it dismissable now?

    Yes, it’s still gone.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so -except for that headers already output error, see below- this seems to work?

    regarding that “headers already sent”; when visiting an admin page, do you see any unusual output (from AO) in the HTML?

    Nothing unusual. I compared the HTML to the site which is having no trouble, and it looks the same.

    I also didn’t see the PHP errors this time.

    Dani

    (@danicasati)

    Tha hack doesn’t work for me.

    • This reply was modified 6 years, 5 months ago by Dani.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    @danicasati: so first it worked (the notice did not show) and then it “broke” again so the notice was visible again?

    Dani

    (@danicasati)

    Sorry, it was a cache issue.
    After purge and reloading, annoying message is always display.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, until I can reproduce somehow and debug this myself I’m going to provide you guys a workaround. Use this code-snippet to make that pesky notice go away;

    
    add_filter('autoptimize_filter_main_imgopt_plug_notice','no_aosp_notice');
    function no_aosp_notice() {
        return '';
    }

    @optimizingmatters the above can be shortened to the following.

    add_filter( 'autoptimize_filter_main_imgopt_plug_notice', '__return_empty_string' );

    ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    nice, didn’t know that, thanks! ??

    And there are others.

    https://codex.www.ads-software.com/Function_Reference/_return_empty_string
    (see related)

    • This reply was modified 6 years, 5 months ago by Andy Fragen.
    • This reply was modified 6 years, 5 months ago by Andy Fragen.
    Dani

    (@danicasati)

    Finally!
    The code snippet is working for me.

Viewing 15 replies - 46 through 60 (of 87 total)
  • The topic ‘Delete Notice: Check out the Autoptimize Extra settings to activate this option.’ is closed to new replies.