Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Missing featured images

  • #4877
    Avatar photo[anonymous]

    Publii 0.37.3 (build 13870) beta:
    After about 400 posts, the featured images are not displayed in the post list or as headers in the actual post. The image itself is also not part of the html code. It is completely missing.
    My theme is: melisa
    Example
    https://blog.at4.de/tags/ruhrgebiet/seite/9/
    465 still works
    466 does not work ( 471, 472…)

    #4879
    Avatar photoBob

    The lack of an HTML image tag is because the image URL is empty, so it looks like there is no featured image.
    Have you tried to regenerate thumbnails?

    #4886
    Avatar photo[anonymous]

    Es gibt sehr viel ein vorgestelltes Bild! Ich habe etwa 400 Beiträge ohne Probleme erstellt, sie erscheinen gerade. Ich nehme an, dass es ein Problem mit dem Rendern
    mit diesem Betrag gibt. Ich habe alle problematischen Beiträge mehrmals gelöscht und erneuert: Das Problem bleibt gleich.

    #4889
    Avatar photo[anonymous]

    I attach 2 examples:
    First, a screenshot from the blog.
    Then the post 465, there the image is displayed.
    The post 466 is exactly the same, there the image is not displayed.

    #4893
    Avatar photo[anonymous]

    One more hint
    The images are available in the preview. Online it is missing.

    I hope I was able to describe the problem sufficiently. I am not an IT specialist.

    #4894
    Avatar photoBob

    Attach your website backup here (set reply as private)  or if its size is too large use  https://wetransfer.com/

    #4899
    Avatar photo[anonymous]

    The file is 17.76 GB in size.
    This is also too big for web transfer (max. 2 GB).
    I will upload the file to my own cloud (Nextcloud). However, this can only be done as a zip file.
    Is this ok?
    I will send the link later.

    #4901
    Avatar photoBob

    Yeap, the .zip is ok for me.  To reduce the weight of the backup file, you can zip the input folder only (‎(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ )

    #4902
    Avatar photo[anonymous]

    Hi, I have exactly the same behaviour as @norbertg with v.0.37.2 and v.0.37.3 version.
    I tried 2 different themes with thumbnails regeneration, but the featured Image is just ignored when rendering the full site.
    The themes tested are :

    • Simple v2.3.0.0
    • Editorial-2 v1.0.2.0
    #4905
    Avatar photo[anonymous]

    Unfortunately, I can’t share the file via Nextcloud either. I have uploaded it several times, but Nextcloud does not show it.
    Now it is on the server at my provider and I don’t know how to enable access. It is already very big with almost 18 GB. Also the input directory is barely smaller than the backup.
    What do we do now?

    #4906
    Avatar photoBob

    The backup please,  it’s really hard to debug the problem just described something is not working.

    #4907
    Avatar photo[anonymous]

    I understand, but how do I get the file to download? It is too big.

    #4908
    Avatar photoBob
    [anonymous] wrote:

    What do we do now?

    We can’t do anything without a backup, especially since this is not a frequent problem, I know sites with over 2000-3000 posts and they work very well.

    #4909
    Avatar photo[anonymous]

    Is there any other way to transfer the file?

    #4910
    Avatar photo[anonymous]

    If you have a cloud, could you open a subdirectory for me to upload the file to?

    #4911
    Avatar photo[anonymous]
    This reply has been marked as private.
    #4913
    Avatar photo[anonymous]
    This reply has been marked as private.
    #4930
    Avatar photo[anonymous]

    @devben – I have tried to debug your backup but all posts have their featured images on the single post pages. Could you describe your issue or explain what is the problem in your case? If you mean that there are no images on the post listing – please note, that featured images are disabled under your theme settings on the lists. After enabling the option – images appears.

    #4939
    Avatar photo[anonymous]

    @norbertg – your issue is caused by a fact that some of your images seems to be specific and causes this problem: https://github.com/image-size/image-size/issues/96

    I have replaced featured image to a different one and then it works, so the issue is not connected with fact that we exceed some limits.

    Please try to optimize your images with TinyJPG or similar tool: https://tinyjpg.com/ I have tested it with one of your invalid images and it helped. I suppose that some metadata included in your image broke image size detection script.

    The problem is connected with images in posts with ID:

    #422

    #421

    #420

    #419

    #418

    #417

    #416

    #410 (trashed)

    #409 (trashed)

    I will consider to change library to: https://github.com/nodeca/probe-image-size#readme but it is a bigger work and this is a first report of this type at this moment.

    #4940
    Avatar photo[anonymous]

    @norbertg – also you can check if there are some invalid images in Tools -> Log Viewer -> rendering-process.log – if you see error like:

    [WARNING] renderer-context.js: wrong image path – missing dimensions for: /Users/XYZ/Documents/Publii/sites/ruhr-blog/input/media/posts/410/004.JPG

    Then it means that this specific image causes a problems with the image dimension detection 🙂

    #4941
    Avatar photo[anonymous]

    Good day.

    Thank you for your quick information. I didn’t think about the image information because I have already developed a routine in image processing for years (from RAW development to downsizing the images for the www). But it is not a problem to delete the metadata (Exif) for export and downsize the images.

    It will try it soon and then report on it.

    #4942
    Avatar photo[anonymous]

    @norbertg – in fact it can be also a problem with image color profile or other metadata – TinyJPG removes a lot of them to reduce the file size as much as possible 🙂

    #4943
    Avatar photo[anonymous]

    I reduced the image size on the first test, but kept the metadata. This did not work.
    Then on the 2nd test I also removed the metadata. That worked.
    Since I reduce relatively many images, I use “Faststone Image Viewer”. With it I can do many other routines.
    But I still test and inform then.

    In addition still another question: The pictures are reduced by Publii on a suitable measure. Could you tell me which format is suitable? I could then internally on my computer probably save a lot of space.

    #4944
    Avatar photo[anonymous]

    It’s just strange that the first 400 or so posts worked with the same method without any problems. Could there be a connection – or is it a coincidence?

    #4945
    Avatar photo[anonymous]

    I have no idea why, but definitely it is some problem with the images metadata structure. In my opinion it is just coincidence – maybe your tool used to optimize images received an update?

    #4948
    Avatar photo[anonymous]

    I have now removed the metadata in all problem posts: everything worked!!!
    I always work with the latest program versions. It will not be because of that. But it is also strange that it affects all images older than 30.06.2016. Could there be a connection?
    (I deleted my old blog with WordPress and now fill backwards, so copy all old posts into it).

    No matter how – for me the problem is solved for now.
    Thank you very much for this!
    I wish you a good time and good health.
    To the Publii project I wish much success – it is very good!

    Norbert Grosser

    #4949
    Avatar photo[anonymous]

    But it is also strange that it affects all images older than 30.06.2016. Could there be a connection?

    Maybe these images were shot with other camera? It can be a lot of reasons – I think that if we have solved your issue this has no more meaning now, because most probably we will be unable to improve our code as it uses a 3rd party library for the image size detection 🙂

    #4952
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    @devben – I have tried to debug your backup but all posts have their featured images on the single post pages. Could you describe your issue or explain what is the problem in your case? If you mean that there are no images on the post listing – please note, that featured images are disabled under your theme settings on the lists. After enabling the option – images appears.

    Pff I am so sorry…. I forgot I did this for my previous site.
    Shame on me…