images aren’t displayed locally

I’m doing the maintenance on a project developed with the symphony framework version 2.7. The problem I’m encountering is that the images aren’t displayed locally but they are displayed in the online version.

The images are stored in web/uploads/Images. Following code is the one used to display the site’s logo: <img src="{{ asset(setting.logo) }}?{{"now"|date("d/m/Y H:i:s")}}" data-bs-hover-animate="swing" class="logo">.

When I inspect local version with my browser, it displays: <img src="/uploads/logo.png?30/12/2019 13:37:21" data-bs-hover-animate="swing" class="logo"> and the logo is not displayed.

But when I modify the source code in local : <img src="{{ asset('uploads/Images/LogoALEX.png') }}?{{"now"|date("d/m/Y H:i:s")}}" data-bs-hover-animate="swing" class="logo"> the image is displayed.

Now I don’t want to modify the source code since it works already online.please I’d like to have an explanation for this issue and know how to fix it.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *