You are here:  » Image URL Cut Off So Image Not Displaying

Active Forum Topics


Image URL Cut Off So Image Not Displaying

Submitted by bat on Wed, 2021-11-03 21:30 in

Hi David,
On a feed I have, the Image URL is rather long on some products and the end of the URL is being cut off and so on those products the image isn't showing/it's broken.
What do I need to do to ensure that the full URL from the feed is imported into the database please?

Thank you :)

Submitted by support on Thu, 2021-11-04 08:34

Hi,

Here's a dbmod.php script to change the image_url to 1024 characters...

<?php
  set_time_limit
(0);
  require(
"includes/common.php");
  
$sql "ALTER TABLE `".$config_databaseTablePrefix."products`
            CHANGE `image_url` `image_url` VARCHAR(1024) NOT NULL"
;
  
database_queryModify($sql,$result);
  print 
"Done.";
?>

Cheers,
David.
--
PriceTapestry.com

Submitted by bat on Thu, 2021-11-04 23:28

Awesome, thanks David!