• Home
  • Get help
  • Ask a question
Last post 5 hours 18 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67837
All time tickets 10483
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#10581 – Problem with image on error-page

Posted in ‘4SEO’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 27 November 2023 10:32 UTC
deroderuiter

I use the error page in 4SEO which contains an image, gekko.png which is in the directory:  /images.
Since a couple of days I see a lot of recorded 404 errors concerning this image: 

begrippen/insecten/images/gekko.png
schimmels/images/gekko.png
begrippen/slim-zoeken
begrippen/images/gekko.png
begrippen/insecten/images/images/gekko.png

I have no idea why these errors occur. 
When I enter one of these URLs in the browser, and I inspect the page, indeed I can see that the link to the image is incorrect (see the attachment).  The tag is: Gekko.png, but the URL that is being used is: 
https://example.nl/begrippen/insecten/images/images/gekko.png

Probably I do something wrong, but I cannot figure out what the problem is. Could you help me with this problem?

Monday, 27 November 2023 10:47 UTC
wb_weeblr

Hi

First off, you say you use this image in 4SEO error page, but when I try to display this error page, all seems to work:

 

Conclusion: these 404s do not come from the 4SEO error page.

So I'm guessing you use that image elsewhere. Having the kind of URLs you mentioned means that the image URL in the pages causing these errors is relative.

Meaning the URL is rendered as <img src="/images/Gekko.png".../>. Notice the missing leading / in the src attribute.

So you should try and find where else on the site you use that image and that's where the error should be fixed.

Also note that not all of your faulty URLs follow the same pattern: some also have double-images. But again, they all look like relative URLs to me.

One last thing to note: some URL use gekko.png, some others Gekko.png. These are not the same, it's one or the other.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 

 

 
Monday, 27 November 2023 11:14 UTC
deroderuiter

Thank you for your reply. 

The only other place where I use the image Gekko.png is in 4SEO in "Configuration > Social networks" as a default image.
There I used the full URL: https://example.nl/images/Gekko.png
Maybe this should be: images/Gekko.png  ?
I think the problem started when I started using the Social network option, but I'm not quite sure about that.

I don't use the image anywhere else, and I surely don't use the lower case name gekko.png. But I added it now, so now I do have the images Gekko.png and gekko.png 
Could this have anything to do with the option: "Always redirect to lowercase URLs" in the Page settings of 4SEO?

Monday, 27 November 2023 12:02 UTC
wb_weeblr

Hi

I did not mean inside or related to 4SEO. Inside of 4SEO, your settings are correct and I did check that in the 2 places where 4SEO is using this images (OGP tags output for Social Networks and 404 error page), this is working as expected.

In both cases, the URL is correct and the image renders as expected with no error.

Could this have anything to do with the option: "Always redirect to lowercase URLs" in the Page settings of 4SEO?

Not really. If the file exists, then images are not rendered through Joomla. Your webserver responds directly with the image and Joomla or 4SEO do not have any impact on the image URL or content.

If the image is a 404, then yes, the URL will likely go through 4SEO as it will try to apply the redirect to lowercase thing.

Importantly, this is not the source of the 404. The sequence of event is:

1. A request is made for begrippen/insecten/images/Gekko.png

2. That URL is wrong, the file does not exist in the folder /begrippen/insecten/images on your server disk,  so your .htaccess sends the request to Joomla, in case Joomla would know what to do

3. At this stage, 4SEO likely redirects to the lowercase version, begrippen/insecten/images/gekko.png

4. This fails too of course, and you see a 404 error record with the lower case name

But again, that's not the source of the 404. The source of the 404 is that the URL is incorrect in the first place, it should be /images/Gekko.png

I don't use the image anywhere else, 

It does not have to be you. It can be any crawler on the web, any browser extension running on one of your visitors...

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 

 

 
Monday, 27 November 2023 12:20 UTC
deroderuiter

Thank you for your reply. I do understand now what you wrote. 


 

Tuesday, 28 November 2023 08:17 UTC
wb_weeblr

Hi

You're welcome (Sorry, saw your post and forgot to reply yesterday!). Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.