We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Minify assets error

Hi guys,

Im having a problem in minifying my js assests, Im using Phalcon 1.3.4. Here is the error

Phalcon\Assets\Exception: Non-free jsminifier not available

Here is my code


use \Phalcon\Mvc\Controller as Controller,

class BaseController extends Controller
    public function initialize()
            set default title on every page of the site 
        Tag::prependTitle('Test Page | ');

            set assets on head tag 
        $this   ->assets
            set assets before body closing tag 
        $this   ->assets
                ->addFilter(new Phalcon\Assets\Filters\Jsmin());

Hi, you have compiled phalcon with the option excluding jsmin and cssmin which have "non free" licences.

Please compile with --without-non-free = false