• Hello Frank,

    I’m having some issues with AO in our folder-based multisite setup.

    1. When I try to check the box in the Network Settings to configure all settings at once, the page keeps reloading without checking the box. The following error is logged in the console:

      Pattern attribute value ^(https?:)?\/\/([\da-z.-]+).([\da-z.]{2,6})([\/\w .-])(:\d{2,5})?\/?$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^(https?:)?\/\/([\da-z.-]+).([\da-z.]{2,6})([\/\w .-])(:\d{2,5})?\/?$/v: Invalid character in character class
    2. So I’ve set up all the pages independently of one another. I’m using Aggregate all linked JS-files to have them loaded non-render blocking? on all of them, because it’s better to work with CDN. It works fine on Site ID 1. However, the JS files aren’t being combined on the subpages.

      Site ID 3 URL/blog/, Site ID 4 URL/grenzgaengerbrief/

    Do you have any idea what might be causing this?

    Kind regards, Bruno

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    hi Bruno;
    I tested the network-wide setup page on my local development multisite setup and cannot the regular expression error, so that’s a bit of a mystery. It looks as if some characters in the regex are missing, but that could be because of the forum software breaking/ escaping things?

    Anyway, on to the 2nd part of your question; I don’t even see AO active on the main site, but it could be that W3TC is ‘hiding’ things be re-optimizing the JS? My first guess would be a conflict somehow with W3TC, does the problem with AO persist when W3TC it temporarily off? The second guess would be the fact the JS/ CSS is served via a CDN; if AO does not “know” of the CDN, it will consider the files external and hence will not optimize, so that would be a 2nd thing to test?

    looking forward to your feedback!
    frank

    Thread Starter ImageIndikatorDesign

    (@indikatordesign)

    Hello Frank,

    you can see what’s meant in this video: https://7.ly/fi2rtywy

    Do you have an idea why this can happen?

    Kind regards, Bruno

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    OK, so when W3TC (and even all other plugins) is not active, you see _some_ proof of AO active by virtue of the aggregated CSS file but not all CSS files are aggregated and no JS files are aggregated at all, is that correct?

    Re. that aggregated CSS-file; I see the name differs from how AO typically names file, is that something you changed (with constants in wp-config.php)? Any other tweaks?

    I also see that indeed the aggregated CSS file is on the CDN, but the CSS files that are not aggregated are loaded from your own site. If I understand correctly the CDN is set in AO, what happens if you disable that?

    Thread Starter ImageIndikatorDesign

    (@indikatordesign)

    Hello Frank,

    Any other tweaks?

    I have defined this constants inside wp-config:

    define( ‘AUTOPTIMIZE_CACHE_CHILD_DIR’, ‘/cache/’ );
    define( ‘AUTOPTIMIZE_CACHEFILE_PREFIX’, ‘wwl-cache’ );
    define( ‘AUTOPTIMIZE_WP_CONTENT_NAME’, ‘/wp-content’ );

    but not all CSS files are aggregated and no JS files are aggregated at all, is that correct?

    –> Not for Site ID 1. Here everything works fine. Yes for Site ID 3 and 4 and maybe other ID’s. Here, the CSS appears to be partially minified, while the rest is included normally, as if it weren’t affected by the optimizations. Furthermore, all JS files seem to be excluded. And that’s strange, because this only happens on the “subpages.” On the main page, everything works perfectly fine.

    but the CSS files that are not aggregated are loaded from your own site.

    That doesn’t seem to be the case. All assets are delivered via CDN, and since W3TC is disabled, that must be controlled by AO.

    Kind regards,
    Bruno

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    i made a quick screenshot of part of your vid, just after you showed the aggregated CSS file, you mentioned the non-aggregated CSS and indeed that is not on the CDN?

    View post on imgur.com

    for me the next step would be disabling the CDN and all of the tweaks and see if that changes anything?

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.