Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all 14039 articles
Browse latest View live

Exclude only 1 CSS line item from caching?

$
0
0

Replies: 0

Hi there,

I just download and installed your plugin a few days ago and it is awesome! I am also thrilled that I can exclude only some JS scripts while still keeping aggregated inline JS. This is especially helpful as I have a multilingual site and most of the time the only difference is the JS is a minor one, for example “Ja” instead of “Yes”.

This does leave me with one question though. Is there a way to do something similar with only a certain CSS line items? How WPML works, as you may already know, is that a translated page/post/product/whatever gets a new page ID number. I have, for example, only one difference in the cached autoptimized css file between my two languages.
For English:
.menu-item-13429.menu-item-design-sized>.sub-menu-dropdown{min-height:270px;width:330px}

And for German:
.menu-item-13430.menu-item-design-sized>.sub-menu-dropdown{min-height:270px;width:330px}

Notice the only difference between them is the last two numbers behind “.menu-item-134XX”

It would be sad if I had to uncheck “Also aggregate inline CSS” just because of one css line item.
Do you perhaps have a workaround or idea for this?

Many thanks in advance!
Cheers,
Michael


Deleting cache broke site

$
0
0

Replies: 0

I deleted the cache from Autoptimize, and it broke the site. Layouts were off etc. I’ve tried updating theme which didnt work. So i tried restoring my site which also did not work. When i open the console, i am getting the following error:
rocket-loader.min.js:1 GET https://www.myflowater.com/wp-content/cache/autoptimize/js/autoptimize_8f8dcec4ec97da37c155333f20004f77.js net::ERR_ABORTED 404

I still get this error even after I disable and delete the Autoptimize plugin. Even after restoring the site to when it was working, I am still getting this error.
PLEASE HELP!

FOUC

$
0
0

Replies: 0

I’m getting a serious case of FOUC and I do not have inline & defer active. What should I do? It isn’t a problem with Autoptimize disabled, so it must have to do with the CSS aggregation. My speed scores are better with AO so I don’t want to get rid of it, but the flash is very annoying.

Automptimze Javascript breaking Theme Foundry Menus

$
0
0

Replies: 0

Hey Frank,

Hope all is well.

I’ve seen recently an issue on some of my sites where when activated, the Javascript minification is breaaking the Make Theme from The Theme Foundry’s drop down menus, which just simply won’t drop down.

I did install the ASYNC plugin to see if that would help, but it does not. I just left it on the basic settings.

This is the second site I’m having an issue with. The first, 67biltmore.com, I’ve turned off Autoptimize for now until I can figure out a solution.

Please be reminded, I’m not a developer – I’m a product owner, so I’m not specifically knowledgeable about some of these things and need a little hand holding to get past it.

Now that it’s happened on two different sites, but not others, I just don’t know what it could be. Because when I disable Javascript, it works. When I re-enable, it doesn’t. I haven’t changed any settings. Only the first box is checked.

Thanks,

Tony

PHP Notice: Undefined variable: med5list

$
0
0

Replies: 3

Hi.
local env: PHP 7.2.9-1+ubuntu18.04.1 (Homestead v6.3.0)
WordPress: 4.9.8
Autoptimize: 2.4.0

[07-Oct-2018 12:02:58 UTC] PHP Notice:  Undefined variable: med5list in /home/vagrant/code/homeswithsoul/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 644
[07-Oct-2018 12:02:58 UTC] PHP Stack trace:
[07-Oct-2018 12:02:58 UTC] PHP   1. shutdown_action_hook() /home/vagrant/code/homeswithsoul/wp-includes/load.php:0
[07-Oct-2018 12:02:58 UTC] PHP   2. do_action() /home/vagrant/code/homeswithsoul/wp-includes/load.php:679
[07-Oct-2018 12:02:58 UTC] PHP   3. WP_Hook->do_action() /home/vagrant/code/homeswithsoul/wp-includes/plugin.php:453
[07-Oct-2018 12:02:58 UTC] PHP   4. WP_Hook->apply_filters() /home/vagrant/code/homeswithsoul/wp-includes/class-wp-hook.php:310
[07-Oct-2018 12:02:58 UTC] PHP   5. wp_ob_end_flush_all() /home/vagrant/code/homeswithsoul/wp-includes/class-wp-hook.php:286
[07-Oct-2018 12:02:58 UTC] PHP   6. ob_end_flush() /home/vagrant/code/homeswithsoul/wp-includes/functions.php:3743
[07-Oct-2018 12:02:58 UTC] PHP   7. autoptimizeMain->end_buffering() /home/vagrant/code/homeswithsoul/wp-includes/functions.php:3743
[07-Oct-2018 12:02:58 UTC] PHP   8. autoptimizeStyles->minify() /home/vagrant/code/homeswithsoul/wp-content/plugins/autoptimize/classes/autoptimizeMain.php:435

Handling of wp_add_inline_script()

$
0
0

Replies: 1

I’ve got a question/request about how the plugin handles (or doesn’t handle) scripts added with wp_add_inline_script().

I’ve got a few projects that include themes or plugins that use wp_add_inline_script() to add an inline portion of a script. Some of these are things I wrote, and others aren’t. These inline scripts typically depend on the script they were added for. So, as an example, the theme might load a carousel script, and then output the actual script that applies the carousel to a specific element with wp_add_inline_script().

The problem I’m having is that without “Aggregate inline JS” enabled, this results in the optimised JS file loading after the inline script that was output by wp_add_inline_script(). Since the inline script expected its dependency to already be loaded, this results in errors.

Enabling “Aggregate inline JS” resolves the issue, because the inline parts are now included in the optimised script itself, but now my cache is becoming enormous. Often in the Gigabytes.

Is there anything the plugin can do to ensure that inline scripts added with wp_add_inline_script() are loaded after the optimised script that contains its dependencies?

Autoptimize ignoring disable when logged in setting

$
0
0

Replies: 0

I’ve unchecked the “Also optimize for logged in users?”, but I’m still getting optimized/concatenated files and minimized HTML when logged in.

I’m using 2.4

PHP Fatal Error

$
0
0

Replies: 0

Hi,

Getting an HTTP500 error on the page https://www.pharmout.net/gmp-training/ when Autoptimize is enabled.

Checked with host and they have pointed me to the log where the following errors are displayed:

[Mon Oct 08 02:28:05.617844 2018] [:error] [pid 1744] [client XXXXXX] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /XXXXXX/wp-content/plugins/autoptimize/classes/external/php/yui-php-cssmin-bundled/Minifier.php on line 574
[Mon Oct 08 02:28:05.618699 2018] [:error] [pid 1744] [client XXXXXX] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

I know nothing about this topic so any info you can provide that I can then pass to our developer would be really appreciated.

Currently, the plugin is disabled.

Cheers,
Steve

  • This topic was modified 3 hours, 4 minutes ago by zebbedy.
  • This topic was modified 3 hours, 3 minutes ago by zebbedy.

Delete Notice: Check out the Autoptimize Extra settings to activate this option.

$
0
0

Replies: 1

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 36 minutes ago by nick8182.

Run Regex Replace on HTML optimization?

$
0
0

Replies: 0

Hi Frank is there a way to run a regex replace on the html code when running the html optimization?

Issue with cache filling up on GetFlywheel hosting

$
0
0

Replies: 1

Hi guys,

I love the plugin for what it does but it is creating 1 MB files every 3 minutes that quickly fill up the cache file to 1GB or more. These files are all called something like autoptimize_c50e07b5ef0c49f29f949ce3bd76fd22.php.none

Any idea what settings I have set wrong that could be causing it?

Latest Update Effecting WordPress Page Views Tracking

$
0
0

Replies: 1

The recent Autooptimize update is effecting my WordPress analytics tracking stats.

As soon as I updated Autoptimze to version 2.4.1 my WordPress page view stats plummeted.

Literally, my Google Analytics numbers and WordPress numbers matched up hour by hour – right up until the point I updated the Autoptimize plugin.

I have not updated any other plugins (or made any website changes) throughout this time.

The only thing that’s changed has been Autoptimize.

Latest update broke site

$
0
0

Replies: 0

Hi

After i update the plugin javascript and css broke.

Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

Recent update and console warning

$
0
0

Replies: 2

Warning code:
https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&subset=latin%2Clatin-ext

Warning message:
Failed to decode downloaded font: https://fonts.gstatic.com/stats/Noto+Serif/normal/700

I have received this warning after autoptimize update. Is there any relation between the error and this update? I have checked it by using Chrome.

  • This topic was modified 1 hour, 6 minutes ago by lamanus.

Compatibility Autoptimize and Woo-multi-currency

$
0
0

Replies: 4

Hello,

I have already found an issue thread on the support pages of Woo-multi-currency where you tried to step in.

We are experiencing similar issues. After a lot of testing it turns out that autoptimize with “Aggregate all linked JS-files” on, breakes the currency switching completely. Chrome console throws the error: A conflict is preventing required resources to be loaded.
Turning off the Aggregate switch, the currency switcher then works but still 404 errors appear: /wp-content/cache/autoptimize/js/autoptimize_single_39538c571a2ddb6dc68a2a5f7288f401.js 404 (Not Found)

1. is there a specific .js file to exclude when activating the aggregate? (I could not find one) to be able to still use aggregate.
2. Maybe you can contact the plugin maker directly to settle these issues?

Not using the currency switcher is not really an option for us since we have worldwide business. Not aggregating is also not a great option for performance, we have 19 requests more that way which results in 5 points less at pingdom.


Can’t Remove Shortpixel Admin Notice

$
0
0

Replies: 1

Hey Frank,

Since the last update i can’t remove the following notice from my admin area:

“Did you know Autoptimize includes on-the-fly image optimization and CDN via ShortPixel? Check out the Autoptimize Extra settings to activate this option.”

I click on the x but the notice reappears when i visit another page. I thought it may have been Cloudflare, but putting that in development mode didn’t make any difference.

Any ideas on how i can close this notice?

Thanks

How to remove fonts.googleapis.com/css?

$
0
0

Replies: 1

Hi, I am very proud to install Autoptimize plugin on my site. By this plugin I could increase the speed of my site. But there is a problem yet. I can not optimize fonts.googleapis.com/css without much effort. If me help a bit, I’ll always be grateful. If I can optimize it my site could get more speed. Thank you.

Remove render-blocking JavaScript

How To Remove render-blocking JavaScript

$
0
0

Replies: 1

Wow, I am very sorry to disturb another time. But I want to know again, How ca I remove the render-blocking following JavaScript file.
https://www.fileour.com/wp-content/cache/autoptimize/js/autoptimize_single_0ce8f355891c26c28f057e195e97dcd5.js
or
https://www.fileour.com/wp-content/cache/autoptimize/js/autoptimize_f3282407d422c7bc58ebb5c0cf32f3cc.js
I properly configure the plugin JavaScript Options but can not remove the script.

What a mistake? Please help me. or How can Remove render-blocking JavaScript?

Thank you.

Autoptimize. Message error in new version

$
0
0

Replies: 1

I updated the plugin to the latest version (2.4.1). Since then, the following message appears in the wordpress editor for autoptimize:

Warning: array_key_exists() expects parameter 2 to be array, null given in /web/wp-content/plugins/autoptimize/classes/autoptimizeExtra.php on line 640

What does this mean and how do I solve this problem?

Thank you.

  • This topic was modified 32 minutes ago by ceslad.
Viewing all 14039 articles
Browse latest View live