• Resolved FabioG

    (@lando39)


    Hi,

    I’m using pods with WPML and recently the singular template of a custom post disappears. This happens at random so I don’t really have steps for reproduction. Moreover, when this occurs, the images of custom post types are also disappearing and when I inspect an incorrect src appears for the images such as ‘7868’ and similar. Sometimes clearing pods cache solves the issue but this is not consistent. The reason I mention that I’m using WPML is because I feel like it may be involved in the issue. Can anyone assist me with this, please?

    Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    This sounds like a separate issue from the auto templates one.

    Can you reproduce this behavior with only Pods and WPML active? I just want to eliminate the possibility of other plugins being the cause of this.

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi,

    Thanks for your reply Jory. So I’ve been troubleshooting this for a while and even with all plugins disabled (excluding pods and wpml), the issue persists for all custom post types. I also thought that the issue might derive from WPML so I tried to disable WPML related plugins and yet the images and single template of certain posts are not appearing. The issue auto fixes itself sometimes or after clearing cache across different caching plugins, the issue is fixed. However, this never prevents it from happening again.

    [ Please do not bump. ]

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    The issue auto fixes itself sometimes or after clearing cache across different caching plugins.

    The fact that the issue gets fixed from time to time gives me the impression that this is most likely a conflict in caching. What caching plugins are you using? We really need more insights in your installation to have a shot at reproducing this issue.

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi Jory,

    I’ll go ahead and have a look at the caching plugins used. Is there a way to also disable Pods caching service and is it recommended?

    Thanks!

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    Pods only caches in WP Transients (unless you use addons). These transients are basically WP options but with an expiration date.

    If you would disable WP Transients then Pods is also unable to cache it’s data. However, I couldn’t quickly find a plugin to do so.

    If your caching plugins interfere with the transients then I could imagine that there could be some glitches there.

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi Jory,

    Unfortunately I’m still experiencing this problem. Despite disabling all caching plugins as well as other changes in the backend/hosting, the issue persists. At the moment, the images of the custom posts for the secondary language are not appearing. The source of the image contains a strange number like ‘7034’ or similar. A custom field is being used for the image.

    We’ve also been in touch with the Avada theme support in which they found that that an invalid value is being generated by the pods template for the image source. They advised to contact you about it for a further look. They also explained that the current behaviour involves fetching the ID of the post itself, and is not related to the theme or WPML.

    Would you have any other suggestions?

    Thanks in advance,
    Fabio

    • This reply was modified 1 year, 2 months ago by FabioG.
    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    The source of the image contains a strange number like ‘7034’ or similar.

    This almost sounds like you are using the GUID in a location.

    In order for me to better help you I really need to view a live location there the error occurs so I can view the HTML output myself.
    Also, could you share the code you are using to display these images?

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi Jory,

    I create a custom field of recipe_image which accepts an image. See screenshot. I then proceed to add the recipe_image as the source in an image tag in the pod template, like this:
    <img class=”recipe-image” src=”{@recipe_image}”/>

    I do the same exact thing for the english version of the site and it works fine at the moment.

    Thanks and regards,
    Fabio

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    Since you use the magic tag within an image attribute it’s better to use the src postfix: {@recipe_image._src}.

    However, this probably won’t fix your issue.
    Is there a public link I can go to and see this issue?

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi Jory,

    Unfortunately that magic tag didn’t work. You can see an example of the issue here.

    Thanks,
    Fabio

    • This reply was modified 1 year, 2 months ago by FabioG.
    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    Leuk om te zien dat Pods steeds meer Nederlandse gebruikers krijgt!
    Ik reageer verder wel in het Engels zodat evt. andere forum bezoekers hier mogelijk ook iets aan hebben.

    The tag only renders “/”, nothing more. Are you using this magic-tag within a Pods template or somewhere else? Maybe a Pods shortcode?
    Could you share the surrounding code and it’s location?

    It could be that the loop that is used for this view isn’t using the default WP loop and therefore not setting the current post correctly.

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi Jory,

    I’m only using the magic tag within the pod template for all custom posts. See here. In a page I then proceed to add the following shortcode:
    [pods name=”recipe” limit=”12″ pagination=”true” template=”Recipe List” orderby=”post_date DESC”]

    Regards,
    Fabio

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    I just checked your site again and saw that the first item now has an image. This gives me the impression that this case is fixed? Maybe the other items don’t have an image assigned?

    It might be best to wrap the image tag with an if statement:

    [if recipe_image]
    <img class="recipe-image" src="{@recipe_image._src.IMAGE_SIZE}" />
    [/if]

    Cheers, Jory

    Thread Starter FabioG

    (@lando39)

    Hi Jory,

    In the test post that you saw, I used WordPress’s default featured image instead of the recipe_image custom field. That seems to work. Is this something you know about?

    Thanks and regards

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    At this point I have no idea what to look for further. I cannot reproduce the behavior locally so could you please create a bug report on GitHub and provide all data that is asked? This way we can recreate your installation and try to reproduce the issue that way.

    pods.io/submit

    Thanks! Jory

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Singular template disappearing’ is closed to new replies.