neilime/zf2-assets-bundle

issue cached files

apoca opened this issue · 2 comments

I have this error:

Fatal error: Uncaught exception 'LogicException' with message '"/usr/local/zend/var/apps/http/esolidar.bewarket.setima.local/80/0.1/public/images/about/logo.png" has not been cached as file "/usr/local/zend/var/apps/http/esolidar.bewarket.setima.local/80/0.1/public/cache/fb4a13125a55e864c0b8368d1f8b386d/logo.png"' in /usr/local/zend/var/apps/http/esolidar.bewarket.setima.local/80/0.1/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/Service.php:1045 Stack trace: #0 [internal function]: AssetsBundle\Service\Service->rewriteUrl(Array, '/usr/local/zend...') #1 /usr/local/zend/var/apps/http/esolidar.bewarket.setima.local/80/0.1/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/Service.php(673): call_user_func(Array, Array, '/usr/local/zend...') #2 [internal function]: AssetsBundle\Service\Service->AssetsBundle\Service{closure}(Array) #3 /usr/local/zend/var/apps/http/esolidar.bewarket.setima.local/80/0.1/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/Service.php(675): preg_replace_callback('/url(([ in /usr/local/zend/var/apps/http/esolidar.bewarket.setima.local/80/0.1/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/Service.php on line 1045

Every media that are call into you stylesheets, must be cached.
You should add the directory public/images/about/ into your media configuration :

<?php
return array(
    //...
    'asset_bundle' => array(
        'assets' => array(           
            'media' => array(
                 //...
                 'images/about',
            )
        )
    ),
    //...
);

Do you have fixed your error ?