• Resolved gRoberts1984

    (@groberts1984)


    I have a Multisite setup with a number of sites and it appears that when attempting to use MMR on any of the sub-sites (root site works fine), results in empty CSS files.

    When checking the configuration, I can see that it is identifying the correct CSS files to be processed, however regardless of whether minify and merge is enabled or not, the generated CSS files are empty.

    As the URL’s of the resources include the sub-site prefix, i.e. site.com/a/wp-content/… could this be causing a problem as the file does not “physically” exist, it uses .htaccess to map that back to site.com/wp-content/…?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gRoberts1984

    (@groberts1984)

    As suspected, getting a “file_get_contents” error within the error log:

    [02-Nov-2017 11:13:42 UTC] PHP Warning: file_get_contents(/var/www/html/ae-ar/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php on line 508

    “ae-ar” being the Folder name of the sub-site.

    Thread Starter gRoberts1984

    (@groberts1984)

    Looks like fix_wp_subfolder is causing the issue.

    Lines 392 – 395, successfully removes the sub-site folder name from the requested resource, but then you add it back in on lines 397 – 399.

    The problem is when viewing a sub-site, the wordpressdir is set, rather than being empty.

    Plugin Author launchinteractive

    (@launchinteractive)

    Hi, I’ve just uploaded a new version of MMR that should resolve this. Please open a new thread if its still playing up for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Generated CSS files are empty on Multisite’ is closed to new replies.