Closed dingman closed 4 years ago
Issue-Label Bot is automatically applying the label Type: Bug
to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
My hunch is that this is being stored this way because it's a Settings Page, so the data is being serialized
Media library URLs are not stored by Pods, those are in the wp_posts.guid
column, or in wp_postmeta.meta_value
for the "attachment" posts themselves.
We store IDs for media and that's it. Everything else is managed by WordPress itself. For a Settings Page pod type, we also store the ID for that, which you'd look for in wp_options.option_value
for the given wp_options.option_name
Thanks Scott. I'll check it during my next migration, I wonder if it's a transient issue and I just need to purge the cache to fix it. I'll report back the results.
Clearing the Pods cache did not fix this. It's still a persistent issue and trying to narrow down what could be causing it.
My next hunch is that it's related to me using the "guid" of the attachment, which seemingly breaks between environments.
Hi @dingman
If you are using the guid
then that will most likely be your issue.
The guid
should never be used anywhere other than RSS feeds.
This was the issue. I switched away from guid and that fixed it.
Describe the bug It seems that data it being stored in a manner that cannot be searched/replaced using migration plugins/scripts.
During each migration, local URLs for the media uploads are still being referenced as local files, and likewise when I pull down a database build, it continues using staging URLs. This only happens for the media upload field, all other fields get updated correctly.
To Reproduce Steps to reproduce the behavior: 1) Create a new Custom Settings Page 2) Create a field for File / Image / Video 3) Set the custom extensions to be "json" only
Expected behavior The expectation is that upon uploading a file on a local build, that during a migration, it would correctly get replaced with the new path for the new environment.
Screenshots
Pods Version
2.7.22
WordPress Environment