• Resolved martinoriesek

    (@martinoriesek)


    Hello,

    we have created a new look of our website in the sub-directory – novyweb.tcz.cz – with the help of Elementor and Pods plugins. After completion, we redirected the content to the main domain – tcz.cz – so that it shows the content from the directory where we created the new website. Everything went fine, we rewrote the URL in the WP database to – tcz.cz and had the files and data regenerated in Elementor and the library synchronized.

    Pods adds text to element templates as expected.
    The problem is with the images – their links point to the original subdirectory (novyweb.tcz.cz/…)- so the images are not displayed.

    Please visit and inspect for example this product page – https://tcz.cz/en/product/cab-radio-vs87/

    If you omit the subdirectory, the images are displayed – in case of statically inserted images directly in Elementor there is no problem with their display. Also default option – Featured images – for custom post types works fine.

    Please can you advise us how to solve the problem?

    Many thanks in advance.
    Martin

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey. Every image file on the page mentioned is served from tcs.cz domain.

    Screenshot: https://paste.pics/PEAWE

    Can this be a caching issue? Have you tried a different browser just to check?

    Thread Starter martinoriesek

    (@martinoriesek)

    Hey,
    Thanks for the tip, yes I have tried different browsers, different devices and different internet connections. I’ve deleted the Pods cache several times.

    I currently switched the image source for products to Featured Image (as I mention above) because I needed a quick fix for the problem. So while the originally mentioned problem is not visible on the page, I have not been able to fix the root of it directly (just work around it with Featured Image).

    Thanks again for the reply.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @martinoriesek

    After visiting your page it seems that you already fixed the issue? I do not see any references to the subdomain anymore.

    Cheers, Jory

    Thread Starter martinoriesek

    (@martinoriesek)

    Hey,
    As I mention in a previous my comment, the problem is not visible on the page because I have activated in custom posts the option to add images to the native WP Featured Image Field (just work around the problem).

    The images to be linked from my Custom Pods Image Field are still loading from the original URL, so they can’t be loaded.

    I think this could be caused by the following – Pods records the original URL of the site somewhere during the initial initialization, which it later uses when loading the full image link elsewhere. However, when the URL is changed, this recorded value is not updated.

    Is this theory correct? Does the Pods have some stored URL value to work with later? Can this value be overwritten?

    It’s more than possible that I’m wrong, but it’s the only explanation I can think of with my knowledge of WP.

    Thank you very much in advance for your reply and your time.

    Martin

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @martinoriesek

    Pods only stores the attachment ID, nothing more. The methods of getting the image URL actually use WP core functions.

    Are you sure that all config params are correctly converted to the new (live) domain?
    Did you search/replace all values in your database? https://www.ads-software.com/plugins/better-search-replace/
    How are you using Elementor together with Pods exactly?
    Are you using their dynamic tags to load images?
    Do you use the original image or a custom size?

    Cheers, Jory

    Thread Starter martinoriesek

    (@martinoriesek)

    Hey,
    Thank you for your reply, the error must be somewhere in the database and/or in communication with Elementor.

    No I didn’t use BSR (I rewrote the URL manually in wp_options). I add images in Elementor via Dynamic Tags, with size setting – Full Size.

    I will try to use the BSR plugin. Since you answered my question if Pods saves the URL value (which it doesn’t), I can see that I don’t need to look for a error here.

    Thanks again very much for your help.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @martinoriesek

    No problem! Closing topic. Just let us know if you have other questions or need help!

    Cheers, Jory

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invalid Image Links after Migration’ is closed to new replies.