Hi @jleung1994,
I am really sorry about that. And please read why I did this: https://wordpress.org/support/topic/uris-major-update-version-3-1-10-release-note/
I need your support.
Thanks
Faraz
Hi @farazfrank,
I don’t mind resetting the caption and I started doing that.
The main issue is the images that were uploaded when it was on the testing site is using the testing site link which of course cannot show the image.
I re-selected the images, but only the thumbnail works fine.
How can I fix the link to fetch the image?
slide_id in /var/www/html/site/plugins/ultimate-responsive-image-slider/layout.php on line 333
I fix the old url problem with MySQL. Please do not use the guid column which uses the old testing site link.
UPDATE wp_posts SET guid= replace(guid, 'http://testing.site.com','https://site.com');
https://wordpress.org/support/topic/migrated-live-site-broken-links/
-
This reply was modified 6 years, 3 months ago by
jleung1994. Reason: fix text
The images that didn’t reset properly during the update (before I ran the MySQL query clean up) created many new slides (multiple copies using the 2016 post date) with new ids when I try to save it keeping the gray missing image. I had to clean up the sql database.
main image src needs to be fixed, thumbnail is fine
in layout.php
Main image
line 267 and 282
$slide_src = $attachment->guid;
I suggest using this wp_get_attachment_image_src($slide_id, 'full');
This way you won’t fetch the outdated testing site urls stored in the guid column. I don’t want to run MySQL queries again. It’s easy to mess up the database if I make any mistake.
thumbnail code line 333 and 346 works fine
$slide_medium = wp_get_attachment_image_src($slide_id, 'medium', true);
I suggest review the code and comment out unused variables. For example, I think you could remove slide_src = $attachment->guid; // full image URL on line 331, which isn’t used.
If you still facing any issues with the plugin, please contact me through my website.
Thnaks