• Resolved osvaldasv

    (@osvaldasv)


    Errors are thrown for each asset when using the plugin on multisite WP:

    Warning: file_get_contents(/Users/username/Sites/wp/wp-blog-1/wp-content/themes/theme-name/assets/stylesheets/dist/app.css): failed to open stream: No such file or directory in /Users/osvaldas/Sites/wp/wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php on line 487

    No errors on the main site though, works fine there, unlike on the other (secondary) sites… Any ideas why so?

    The multisite is configured to work on an additional slug basis, not subdomain.

    • This topic was modified 7 years, 7 months ago by osvaldasv.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    Hi,

    Is /Users/username/Sites/wp/wp-blog-1/wp-content/themes/theme-name/assets/stylesheets/dist/app.css a valid path? Does that file exist ?

    Thread Starter osvaldasv

    (@osvaldasv)

    No, the valid path is without a blog slug (wp-blog-1):

    /Users/username/Sites/wp/wp-content/themes/theme-name/assets/stylesheets/dist/app.css

    And in HTML (<link href=…) the path to file is this:

    https://wp-site.com/wp-blog-1/wp-content/themes/theme-name/assets/stylesheets/dist/app.css

    Plugin Author launchinteractive

    (@launchinteractive)

    Ahh ok. I’ll setup a staging site and see if I can replicate it.

    Plugin Author launchinteractive

    (@launchinteractive)

    I’ve just uploaded a new version of MMR that should fix this. Please open a new thread if its still playing up.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘file_get_contents error on multisite’ is closed to new replies.