Forums / Maintenance / Report Problems

27,513 total conversations in 1,713 threads

+ New Thread


Images not appearing on Articles and Image pages.

Last posted Oct 21, 2022 at 11:55PM EDT. Added Oct 01, 2022 at 03:24PM EDT
12 posts from 6 users

I'm having an error where the images at the top of the page, article thumbnails and images disappear on article pages, image pages and profile pages, but nowhere else so far. I've messed around with stuff on my end and nothing changes, Is anyone else having this problem?

Example:

Getting the same problems. Started early today. Using Firefox.
Checking the Console, it has several warning messages like:

Diretiva Referrer: Ignorando a diretiva 'referrer' menos restrita โ€œunsafe-urlโ€ na requisiรงรฃo cross-site: https://s.kym-cdn.com/assets/desktop-2bd272782762aa48af2b3a067c22d592.js

And one error:

GET https://knowyourmeme.com/photos/null
[HTTP/1.1 404 Not Found 239ms]

The html of the image shows as:
<img alt="Anonymous 09/28/22 (Wed)13:09:59 No.70377616 1664335122333743.jpg 612 KB JPG >sea creature breaks pipeline >humans blame eachother >they all die in ww3 >fish population returns 3 Product Cartoon Organism Purple Font Art Magenta" class="centered_photo" fetchpriority="high" src="null" width="692" height="851">

Last edited Oct 01, 2022 at 06:22PM EDT

I have the same problem.
I've noticed that it happens whenever I have enabled the KYM Image Filtering script from Tampermonkey.
When I turn it off, the site works perfectly fine (on Firefox at least).

I'm not familiar with that script but we recently changed some images above the fold so that they're no longer lazy loaded.

I assume the script is trying to insert the data-src attribute (now empty) into the src attribute for those images.

Yeah, the Image Filtering was the problem.
I managed to fix the code by adding a few lines.

Change this:
if ((isNsfw && unveilNsfw) || (isSpoiler && unveilSpoilers)) { this.src = this.getAttribute('data-original-image-url'); this.height = this.getAttribute('data-original-height'); } else { this.src = this.getAttribute('data-src') }

to this:
if ((isNsfw && unveilNsfw) || (isSpoiler && unveilSpoilers)) { this.src = this.getAttribute('data-original-image-url'); this.height = this.getAttribute('data-original-height'); } else if (this.hasAttribute('data-src')) { this.src = this.getAttribute('data-src'); } else { this.src = this.getAttribute('src') }

Probably there is a better way to fix it, but the filtering seems to be working and the other images are loading, so good enough for me.

Skeletor-sm

This thread is closed to new posts.

Old threads normally auto-close after 30 days of inactivity.

Why don't you start a new thread instead?

Hey! You must login or signup first!