Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default images not working. #79

Open
lghamie opened this issue May 30, 2018 · 0 comments
Open

Default images not working. #79

lghamie opened this issue May 30, 2018 · 0 comments

Comments

@lghamie
Copy link

lghamie commented May 30, 2018

I was getting the following error on a freshly installed diamantedesk with docker.:

[2018-05-30 20:50:27] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Source image could not be found" at /var/www/diamante/vendor/liip/imagine-bundle/Controller/ImagineController.php line 101 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Source image could not be found at /var/www/diamante/vendor/liip/imagine-bundle/Controller/ImagineController.php:101, Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException(code: 0): Source image invalid "/var/www/diamante/src/Diamante/DeskBundle/Resources/public/img/branch-placeholder.png" as it is outside of the defined root path(s) "/var/www/diamante/web" at /var/www/diamante/vendor/liip/imagine-bundle/Binary/Locator/FileSystemLocator.php:141)"} []

So i found this related link: maximecolin/technical#13

I tried that solution and it worked: I added

liip_imagine:
  loaders:
    default:
      filesystem:
        data_root: 
                - "%kernel.root_dir%/../web"
                - "/var/www/diamante/src/Diamante/DeskBundle/Resources/public/img/"

At the end of the config.yml and deleted the cache and restarted the container.

You might wanna add that to master because the current code is failing since liip_imagine v 1.7.1

If you need me to create a pull request please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant