• 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.

  • The topic ‘WP-Minify breaks if your theme is symlinked’ is closed to new replies.