Images missing

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
CErdtmann
New Member
New Member
Posts: 3
Joined: Fri Mar 04, 2022 4:10 pm

Images missing

Post by CErdtmann »

Hey i moved the whole Website to another Server.
But now all Images are missing.
The images are still at the same place like before and i can open them in the browser by typing the url manually.

But the CMS dont use the right path to the images. Instat it show just the folder.png on my site.
How you can see here:
<a href="http://ferien-veit.de/gallery/Austattung/16" title="Austattung"><img src="modules/Gallery/images/folder.png" alt="Austattung"></a>
-> Normalie there should be an image from the folder "Austattung"

How can i solve this problem?

Full Site you can visite here: http://ferien-veit.de/
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: Images missing

Post by DIGI3 »

It looks like it's just the Gallery module that has missing images, the design-related ones seem to be there. Check that Gallery doesn't have any hardcoded paths in its settings and/or templates. It also looks like jquery isn't loading (see the console) so there may be other path-related issues.

Make sure to clear the cache after moving a site, and of course ensure you're up to date. Check config.php and .htaccess for any hardcoded paths or urls.
Not getting the answer you need? CMSMS support options
CErdtmann
New Member
New Member
Posts: 3
Joined: Fri Mar 04, 2022 4:10 pm

Re: Images missing

Post by CErdtmann »

I have checked config.php and .htaccess there are no hardcoded paths.

The Images are present in the gallery and on the same place like before moving the site.

I found in the consol this error:
Mixed Content: The page at 'https://ferien-veit.de/' was loaded over HTTPS, but requested an insecure stylesheet 'http://ferien-veit.de/modules/Gallery/t ... alerie.css'. This request has been blocked; the content must be served over HTTPS.
VM29 jquery.fancybox.pack.js:46 Uncaught ReferenceError: jQuery is not defined
at VM29 jquery.fancybox.pack.js:46:291
(Index):38 Uncaught ReferenceError: $ is not defined
at (Index):38:1
ferien-veit.de/:110 Mixed Content: The page at 'https://ferien-veit.de/' was loaded over HTTPS, but requested an insecure stylesheet 'http://ferien-veit.de/modules/Gallery/t ... alerie.css'. This request has been blocked; the content must be served over HTTPS.
jquery.fancybox.pack.js:46 Uncaught ReferenceError: jQuery is not defined
at VM29 jquery.fancybox.pack.js:46:291
(Index):113 Uncaught ReferenceError: $ is not defined
at (Index):113:1
hotkeys.js:1 Object
ferien-veit.de/:1 Mixed Content: The page at 'https://ferien-veit.de/' was loaded over HTTPS, but requested an insecure stylesheet 'http://ferien-veit.de/modules/Gallery/t ... alerie.css'. This request has been blocked; the content must be served over HTTPS.

But i dont understand whats to do now.
1. Why why it try to load the insecure stylesheet over http? - the site is https so the stylsheets should be loaded from a https too. Where can i change this?
2. jQuery is not defined - How can i solve this?

The cach is cleared.

At my template i have to test i just written {Gallery}.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: Images missing

Post by DIGI3 »

What version of CMSMS and Gallery are you running?

It sounds like your Gallery template has the path to the css hardcoded, I think that was rectified in later versions but I could be wrong. Check it and change to https as necessary. It also doesn't look like you're loading jquery at all, you'll need to load that before you call fancybox. Either in your page template, or in your Gallery template.

(note: topic moved to Modules/Add-Ons as these issues are not core)
Not getting the answer you need? CMSMS support options
Post Reply

Return to “Modules/Add-Ons”