neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

Fatal error with glyphicons in ZF2 Skeleton Application #22

Closed leitgab closed 10 years ago

leitgab commented 10 years ago

If I integrate zf2-assets-bundle in a newly installed ZF2 Skeleton Application, I get the following error:

PHP Fatal error:  Uncaught exception 'LogicException' with message '"/home/.../public_html/public/fonts/glyphicons-halflings-regular.eot" has not been cached as file "/home/.../public_html/public/cache/fonts/glyphicons-halflings-regular.eot"' in /home/.../public_html/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/Service.php:855
neilime commented 10 years ago

Can you read the ZF2 Skeleton Application configuration into the readme, I've made an update of the configuration to fix your issue

leitgab commented 10 years ago

Added the 'fonts' directory to 'media' - now it works. Thank you very much!

billortell commented 9 years ago

Wanting to use the

'asset_bundle' => array(
    'assets' => array(
        'less' => array('@zfRootPath/vendor/twbs/bootstrap/less/bootstrap.less'),
    ),
),

within Application Module's module.config.php file (as seen in example), but i keep getting this error message (for this particular issue).

neilime commented 9 years ago

You have to define the fonts to be cached :

'asset_bundle' => array(
    'assets' => array(
        'less' => array('@zfRootPath/vendor/twbs/bootstrap/less/bootstrap.less'),
        'media' => array('@zfRootPath/vendor/twbs/bootstrap/less/fonts',)
    ),
),