Missing featured images
- This topic has 27 replies, 4 voices, and was last updated 2 years, 10 months ago by .
-
AuthorPosts
-
December 29, 2020 at 3:20 pm #4877
norbertg
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…)December 30, 2020 at 10:21 am #4879Bob
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?--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!December 30, 2020 at 2:01 pm #4886norbertg
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.December 30, 2020 at 2:35 pm #4889norbertg
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.December 30, 2020 at 2:42 pm #4893norbertg
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.
December 30, 2020 at 2:43 pm #4894Bob
Attach your website backup here (set reply as private) or if its size is too large use https://wetransfer.com/
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!December 30, 2020 at 4:53 pm #4899norbertg
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.December 30, 2020 at 5:01 pm #4901Bob
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 )
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!December 30, 2020 at 10:32 pm #4902devben
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
December 31, 2020 at 8:08 am #4905norbertg
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?December 31, 2020 at 8:08 am #4906Bob
The backup please, it’s really hard to debug the problem just described something is not working.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!December 31, 2020 at 8:10 am #4907norbertg
I understand, but how do I get the file to download? It is too big.
December 31, 2020 at 8:11 am #4908Bob
norbertg 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.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!December 31, 2020 at 8:13 am #4909norbertg
Is there any other way to transfer the file?
December 31, 2020 at 8:23 am #4910norbertg
If you have a cloud, could you open a subdirectory for me to upload the file to?
December 31, 2020 at 1:22 pm #4911norbertg
This reply has been marked as private.January 1, 2021 at 1:07 pm #4913devben
This reply has been marked as private.January 3, 2021 at 6:42 pm #4930Tomasz Dziuda
@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.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!January 4, 2021 at 8:55 am #4939Tomasz Dziuda
@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.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!January 4, 2021 at 8:56 am #4940Tomasz Dziuda
@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 🙂
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!January 4, 2021 at 9:18 am #4941norbertg
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.
January 4, 2021 at 9:58 am #4942Tomasz Dziuda
@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 🙂
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!January 4, 2021 at 10:07 am #4943norbertg
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.
January 4, 2021 at 10:17 am #4944norbertg
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?
January 4, 2021 at 10:34 am #4945Tomasz Dziuda
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?
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!January 4, 2021 at 10:41 am #4948norbertg
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
January 4, 2021 at 10:48 am #4949Tomasz Dziuda
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 🙂
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!January 4, 2021 at 8:22 pm #4952devben
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… -
AuthorPosts
- You must be logged in to reply to this topic.