Author Topic: Image URL messed up with CSVI when placed in subfolder  (Read 9682 times)

tens

  • Beginner
  • *
  • Posts: 14
Re: Image URL messed up with CSVI when placed in subfolder
« Reply #15 on: October 28, 2009, 20:27:37 pm »
I'm having the issue with the lightbox opened when you click on the thumbnail on the page product (flypage.tpl i guess?)

here is my flypage.php:

Code: [Select]
<?php if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
 
?>


<?php echo $buttons_header // The PDF, Email and Print buttons ?>

<?php
if( $this->get_cfg'showPathway' )) {
echo "<div class=\"pathway\">$navigation_pathway</div>";
}
if( 
$this->get_cfg'product_navigation')) {
if( !empty( $previous_product )) {
echo '<a class="previous_page" href="'.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page" href="'.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}
?>

<br style="clear:both;" />
<table border="0" style="width: 100%;">
  <tbody>
<tr>
<?php  if( $this->get_cfg('showManufacturerLink') ) { $rowspan 5; } else { $rowspan 4; } ?>
  <td width="33%" rowspan="<?php echo $rowspan?>" valign="top"><br/>
  <?php echo $product_image ?><br/><br/><?php echo $this->vmlistAdditionalImages$product_id$images ?></td>
  <td rowspan="1" colspan="2">
  <h1><?php echo $product_name ?> <?php echo $edit_link ?></h1>
  </td>
</tr>
<?php if( $this->get_cfg('showManufacturerLink')) { ?>
<tr>
  <td rowspan="1" colspan="2"><?php echo $manufacturer_link ?><br /></td>
</tr>
<?php ?>
<tr>
      <td width="33%" valign="top" align="left">
      <?php echo $product_price_lbl ?>
      <?php echo $product_price ?><br /></td>
      <td valign="top"><?php echo $product_packaging ?><br /></td>
</tr>
<tr>
  <td colspan="2"><?php echo $ask_seller ?></td>
</tr>
<tr>
  <td rowspan="1" colspan="2"><hr />
  <?php echo $product_description ?><br/>
  <span style="font-style: italic;"><?php echo $file_list ?></span>
  </td>
</tr>
<tr>
  <td><?php 
  
if( $this->get_cfg'showAvailability' )) {
   echo $product_availability
   }
   ?>
<br />
  </td>
  <td colspan="2"><br /><?php echo $addtocart ?></td>
</tr>
<tr>
  <td colspan="3"><?php echo $product_type ?></td>
</tr>
<tr>
  <td colspan="3"><hr /><?php echo $product_reviews ?></td>
</tr>
<tr>
  <td colspan="3"><?php echo $product_reviewform ?><br /></td>
</tr>
<tr>
  <td colspan="3"><?php echo $related_products ?><br />
   </td>
</tr>
<?php if( $this->get_cfg('showVendorLink')) { ?>
<tr>
  <td colspan="3"><div style="text-align: center;"><?php echo $vendor_link ?><br /></div><br /></td>
</tr>
<?php  ?>
  </tbody>
</table>
<?php 
if( !empty( $recent_products )) { ?>

<div class="vmRecent">
<?php echo $recent_products?>
</div>
<?php 
}
if( !empty( 
$navigation_childlist )) { ?>

<?php echo $VM_LANG->_('PHPSHOP_MORE_CATEGORIES'?><br />
<?php echo $navigation_childlist ?><br style="clear:both"/>
<?php 
?>


tens

  • Beginner
  • *
  • Posts: 14
Re: Image URL messed up with CSVI when placed in subfolder
« Reply #16 on: October 28, 2009, 22:39:04 pm »
I've just noticed that i also have the same issue with the browse page... i can't see the thumbnails when browsing products of a category (but i can see the thumbnail on its own specific page).

tens

  • Beginner
  • *
  • Posts: 14
Re: Image URL messed up with CSVI when placed in subfolder
« Reply #17 on: October 29, 2009, 01:32:29 am »
Found the solution. Actually, the images path were written with "%2F" instead of "/". If you want to be able to display images with this writing, you need to activate the enable the AllowEncodedSlashes Directive in the Apache configuration of your hosting.
For this, if you can (or you need to ask your host support to do it),
you need to add the line :

AllowEncodedSlashes On

in the apache config file of your host.

Hope this will help.

shivanshu

  • Beginner
  • *
  • Posts: 4
Re: Image URL messed up with CSVI when placed in subfolder
« Reply #18 on: August 27, 2010, 14:21:46 pm »
i have problem with url encodine when i click to the view full size images.
not found error is there.
subfolder / is replace with %2f.
i am uploading product from csv import.in subfolder.
is there any solution??
please help

essexboyupnorth

  • Beginner
  • *
  • Posts: 25
Re: Image URL messed up with CSVI when placed in subfolder
« Reply #19 on: August 28, 2010, 20:39:28 pm »
I have found a solution to this, after a day of hair removal. Go into CSVI, edit your import template, select the file paths tab, delete the pathway from the file location product images text box or just make sure it's empty.

Now in both the product_full_image_column and product_thumb_image columns of your import feed put the entire pathway to your full image and the thumb nail. http://www.yoursite.com/components/com_virtuemart/shop_image/product/yourimage.jpg

Import this and CSVI will return a load of errors saying it can't find your images but look at your site and they will be there. This method means you can specify your own sub folders for images.

It's also worth noting that when you delete items from virtuemart the images are deleted from the server, if you have been clearng VM and starting from stratch each time you do an import it may be that many of your images are missing from your server, this is what happened to me anyway.
I am a VM dwarf, but I stand on the shoulders of giants.