Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Images not loading on web page


Go to End


15 Posts   5027 Views

Avatar
RobboNoCash

Community Member, 33 Posts

8 July 2015 at 12:15pm

Hi
I turned off the add blocking on the browser and it still does not work.
No images appear on the web pages.
Any idea how to fix?

Thanks

Avatar
Pyromanik

Community Member, 419 Posts

8 July 2015 at 9:11pm

Yes you need to look at the webserver's configuration. This is cannot be a silverstripe issue if _ALL_ images are missing.

Avatar
JonoM

Community Member, 130 Posts

9 July 2015 at 5:23am

If you open your dev tools in Chrome and look at what's happening in the Network tab when the browser tries to load images you might find some clues there.

Are other static resources like javascript files loading okay?

Do you have a <% base_tag %> in the head section of your Page.ss template?

Avatar
RobboNoCash

Community Member, 33 Posts

15 July 2015 at 1:01pm

Hi

Thanks for your reply.
What is this base tag?
Can you please write the code out for me?

Thanks
Robert

Avatar
Pyromanik

Community Member, 419 Posts

15 July 2015 at 9:49pm

Edited: 15/07/2015 10:06pm

Inspect the HTML that is output.
A the very beginning, it should look something like:

<!DOCTYPE html>
<html lang="...">
<head>
<base href="http://yoursite.com/ssinstall/" />

If it does not, then you need to add to your template, as the very first thing inside the <head> tag:
<% base_tag %>

This is very important in SilverStripe as all paths are given relative to the install root.

Avatar
RobboNoCash

Community Member, 33 Posts

22 July 2015 at 1:29pm

Thanks Pyromanik for your reply
I tried what you said and it still does not work.
The images are not appearing on the web pages??
Can someone please help me fix this

Avatar
Pyromanik

Community Member, 419 Posts

22 July 2015 at 9:59pm

We are helping you fix it.
Are img tags being output to the html?
If so, what happens if you try to open the link directly?

Go to Top