Forums

WP-Minify breaks if your theme is symlinked (1 post)

  1. paulschreiber
    Member
    Posted 6 months ago #

    If your theme is symlinked, i.e.
    $ ls -l wp-content/themes/
    drwxrwxr-x. 7 mainsite apache 4096 Nov 21 18:22 twentyeleven
    lrwxrwxrwx. 1 mainsite apache 48 Nov 29 17:01 whiteboard -> /var/www/sites/foobar/current/themes/whiteboard/

    Then wp-minify will fail with a 400 Bad Request error.

    Underlying cause:
    In min/lib/Minify/Controller/Base.php:123, _fileIsSafe() will return false.

    In min/lib/Minify/Controller/MinApp.php:116, it will log:
    Path \"{$path}\" failed Minify_Controller_Base::_fileIsSafe()

    Workaround is to not symlink your theme.

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 6 months ago by paulschreiber
  • This topic is not resolved
  • WordPress version: 3.2.1