K2 mini portfolio images not showing

For reason unknown, Mini K2 in portfolio layout does not show images of most items. However, if you open an item, the image is there.



When I inspect image links, the ones that appear have:
src="/images/minik2/95a055ab9c360c0c5f017822b916c6ac.jpg"


And those items that don`t have images have the following:
src="//media/k2/items/cache/471bd07fdaa7b040f7ab8b2a13f8f35b_S.jpg

Mind you, images are present in the folder "/media/k2/items/cache/" but the syntax prevents them from showing, to be more precise the one "/" too many

Any ideas why this is happening? Shouldn`t all of them link to the same folder??


The page is here:
zdravamaca.rs/index.php/za-macke


(Note: Naong template was bought legally and it included K2 mini)

Thank you for your time!
10 years 8 months ago #1 by crnamrlja

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5318) Offline
Hi, sorry for delay in responding.
Can you try to open this file with your php editor :
[root]/modules/mod_minik2/tmpl/portfolio/default.php
arround line 28 you'll see this code
<img src="<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />

try to change it to
<img src="<?php echo resizeImageHelper::getResizedImage(''.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />

let me know the result
10 years 7 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

It works!!! Great man! Thank you very very much! :)
10 years 7 months ago #3 by crnamrlja

Please Log in or Create an account to join the conversation.

I just want to thank you admin for posting this minor but very helpful fix!
Many thanks
10 years 2 months ago #4 by Dotty

Please Log in or Create an account to join the conversation.

i have the same probleem, changing default.php dosnt solved it !!!!!!!
10 years 1 month ago #5 by peter

Please Log in or Create an account to join the conversation.

Hello admin,

I just got the same problem. I also made the changes to modules/mod_minik2/tmpl/portfolio/default.php as posted above but still not working. Any idea about this? This is the URL:
calamay.com/index.php/order-calamay

Many thanks
10 years 3 weeks ago #6 by sheryl

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum