
Tagged: img
-
AuthorPosts
-
February 10, 2025 at 8:33 am #1476806
Hey Gunter,
We might have a bug with how the enfold parser is handling
tags that are inserted into an ALB element. Across multiple sites now we have randomly had images disappear entirely from the page, and from the source code. This only seems to ONLY affect images that are inserted via an img tag, and not via the ALB Image element or any sliders etc.
Eg: Insert a text block via ALB. Use the Add Media button to add an image.
Eg: Insert a timeline via ALB. Use the Add Media button to add an image.The page will work just fine, but then after some days randomly some of these images will not only be gone from the front end, but entirely missing from the backend as well, even in the shortcode debugging section. Then entire img tag just gets completely stripped out, like it was never there.
Have you had any reported instances of something like this before, or can you take a look at how Enfold parses these and see if you can spot any issues?
This has been occurring now for a couple of months across multiple sites.
Thanks a lot
Tim
-
This topic was modified 1 week, 5 days ago by
THP Studio.
February 10, 2025 at 3:31 pm #1476822Hey Tim,
We haven’t any other reports of this problem no. Is there a sure way of reproducing this, or should we follow this?
Eg: Insert a text block via ALB. Use the Add Media button to add an image.
Eg: Insert a timeline via ALB. Use the Add Media button to add an image.Best regards,
RikardFebruary 10, 2025 at 9:34 pm #1476851Hey Rikard,
Appreciate the quick response.
If you follow what you quoted above, hopefully you will see it. Only thing is, it doesn’t happen right away. The images get stripped some time after building the page. Sometimes it’s been days, other times weeks. But please try and see if you can reproduce it.
Only other thing we can think of is object cache causing a problem with how it’s being written to the database. Is enfold fully compatible with object caches?
Thanks
Tim
February 12, 2025 at 3:24 pm #1476958Hi Tim,
If the img tag disappears in database content (db field post_content and also in metadata ‘_aviaLayoutBuilderCleanData’) means that these fields are updated. I do not know a situation where Enfold itself updates this when a page is loaded in frontend. This happens when a post gets updated from backend.
object cache in my opinion could only be a problem when this happens on saving/updateing a page – but not when it is loaded in frontend. In this case the content is only read.
Is the page after the image disappeared an older version of the page before you added the image ? Then it could be that your hoster restored some older db entries from a backup ?
Best regards,
GünterFebruary 13, 2025 at 2:16 am #1476999Hi Gunter,
Thanks for the reply.
Can’t be a DB update from a backup, as has happened on multiple sites at different times.
We have one example where on the 28th of January we edited a page and inserted two images using the method described above (because they had previously disappeared from this page due to this issue) and sent a screenshot of it working on the front end to the client (we still have the screenshot).
Since then, we haven’t edited the page at all, and I noticed that they have disappeared since then, probably in the last week or so (as we would have noticed it sooner). If I go and check the page revisions, it shows the last revision was on the 28th of January, and it shows the text block where I inserted the images into as being completely empty of any content whatsoever.
We don’t understand how the page ever seems to work at all, but then randomly breaks over time. But it seems like it can only be something along the lines of: Enfold writes it to the DB on save, then perhaps sees it as bad ALB code when trying to read it down the track and strips it?
This has only appeared in the last few months, where we’ve gone from versions like 6 or 6.0.1 to the latest 6.0.8 or 9. Is it possible something has changed in those versions which could have affected this?
I know this is a tricky one to track down, as it will only disappear randomly, but if you would like a login for the page I’m talking about above to take a look just let me know.
Thanks
Tim
February 17, 2025 at 3:04 pm #1477250Hi Tim,
This sounds like a server-related issue. Sometimes security measurements on your server or security plugins may delete images, plugins, or themes if they are flagged as suspicious. You can check the security logs to see if that’s the case.
Please also make sure that there’s enough disk space on your server.
In the meantime, I followed the steps and added an image inside the Text Block element on a page on my live testing site. I’ll keep an eye to see if the issue will occur on my website as well.
Edit: Could you please check if you’re having the same issue when adding an inline image using Gutenberg?
Best regards,
Yigit-
This reply was modified 4 days, 18 hours ago by
Yigit.
February 21, 2025 at 2:11 am #1477521Hey Yigit.
Thanks for the feedback.
I understand what you’re saying about some other plugin or something, but the entire code section goes missing, not just the URL for the image, which makes me think this is less likely.
And yep, plenty of server space reported.
Thanks for making a test at your end, I have added one on my end, as well with your suggestion of trying it through Gutenberg – two pages made within minutes of each other, one with ALB and one with Gutenberg. Will report back in a week or two.
Thanks
Tim
-
This topic was modified 1 week, 5 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.