S
S
Sergey2015-08-28 09:52:39
symfony
Sergey, 2015-08-28 09:52:39

Why is LiipImagineBundle Symfony2 production env not working?

LiipImagineBundle doesn't work in production .
Settings:
config.yml

liip_imagine:
    resolvers:
       default:
          web_path: ~

    filter_sets:
        cache: ~
        thumb:
            quality: 80
            filters:
                thumbnail: { size: [150, 150], mode: outbound }

routing.yml
_imagine:
    resource: "@LiipImagineBundle/Resources/config/routing.xml"

Call:
{{ vich_uploader_asset(gallery, 'photoFile')|imagine_filter('prev_on_page_item_slider_grid_2') }}
Everything works fine in the dev environment. In a pro environment, it refuses to work.
Googling found solutions to set the correct permissions for the cache directory and update the bundle itself. Did not help ( .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2015-09-03
@skobkin

In general, the standard advice, if something does not work in the prod environment, is to clear the cache of the prod environment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question