Hi Laszlo,
There’s a JavaScript error on the page.
You can try to purge the Autoptimize cache (probably also the page cache), and if this doesn’t work try disabling Autoptimize, and see if the error persists.
Marc.
pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.
if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.
hope this helps debugging,
frank (ao dev)
@optimizingmatters Frank, how did you get here so fast?? 🙂
Adding ?ao_noptimize=1 shows that it works when bypassing Autoptimize. I’ll do some testing to see if I can fix this without having to exclude scripts.
Marc.
Thread Starter
kacor
(@kacor)
:)) You guys are amazing 🙂
I’ll check what both of you said.
Thread Starter
kacor
(@kacor)
adding ?ao_noptimize=1 to the URL did help.
I’ll do some further testing to with the plugin, adding images while Marc figures out if he can fix this.
@kacor It works fine for me when I enable AO. Doesn’t purging the cache help?
Thread Starter
kacor
(@kacor)
@marcusig no, emptying cache doesn’t have any effect unfortunately
Thread Starter
kacor
(@kacor)
weird thing is:
– I purged the AO cache
– I purged the WP Super cache (just in case)
– I added excluded all files from AO under “plugins/product-configurator-for-woocommerce”
and checked the page again…
Now I’m getting these errors:
https://drive.google.com/file/d/1Y0ZElQ9UBI0ID1H8CwDoJQjzlSLS-Qz2/view?usp=sharing
Maybe try adding wp-includes/js to the exclusions?
Thread Starter
kacor
(@kacor)
Thread Starter
kacor
(@kacor)
If I turn off the Autoptimize plugin everything works fine.
Can we consider that this is the fault of the Autoptimize plugin? As in that case I would suggest to close this thread and continue under Autoptimize support.
-
This reply was modified 5 years, 10 months ago by
kacor.
Still no effect, although a bit different errors
again a weird issue as PC_Config is defined in the inline JS (which, if I am not mistaking, you were not aggregating?).
If I turn off the Autoptimize plugin everything works fine.
disabling JS optimization or JS aggregation will probably also work.
Can we consider that this is the fault of the Autoptimize plugin?
well, it does work with AO for marcusig, so it looks like something else might be in the mix here ..
As in that case I would suggest to close this thread and continue under Autoptimize support.
I would provide the same answers there as I do here 🙂
now if the whole exclusion trial-and-error process is not leading anywhere (or if you want a simpler solution), one can easily disable Autoptimize being active on a specific page, e.g. with below code snippet for your current page:
add_filter('autoptimize_filter_noptimize','kacor_noptimize',10,1);
function kacor_noptimize( $flag_in ) {
if ( strpos( $_SERVER['REQUEST_URI'], 'product/testtest/' ) !== false ) {
return true;
} else {
return $flag_in;
}
}
Thread Starter
kacor
(@kacor)
thank you Frank, I’ll definitely try