Jump to content

"Image slider for your homepage" module not working


Recommended Posts

  • 2 weeks later...

I just updated the homeslider module and suddenly all the images stopped being displayed.

Only 1 big question mark occurs.

I have disabled and enabled the module. Deleted and uploaded the pictures - but with no result.

 

Please advise a solution.

 

You can check the site live at:

 

http://prestashop.herbalbg.com/bg/

 

In the english version the slider stays empty - not displaying the image,

but the big question mark is not displayed as well

 

http://prestashop.herbalbg.com/en/

 

The file is visible in BO only on the english version

 

Thanks a lot

  • Like 1
Link to comment
Share on other sites

I had exactly the same problem and to make it easy to understand for people like me who are not specialists, the solution is:

1. go to yoursite/themes/default-bootstrap/modules/homeslider and download the file homeslider.tpl

2. open the file in an editor like Komodo Edit

3. on line 35 you have this:

<img src="{$link->getMediaLink("`$smarty.const._MODULE_DIR_`homeslider/images/`$slide.image|escape:'htmlall':'UTF-8'`")}"{if isset($slide.size) && $slide.size} {$slide.size}{else} width="100%" height="100%"{/if} alt="{$slide.legend|escape:'htmlall':'UTF-8'}" />

 

4. Change homeslider/images by homeslider/img and save

5. Upload the new homeslider.tpl file at the same place as where it was

6. it's done

  • Like 3
Link to comment
Share on other sites

Here a Protugese guy gas found a solution i think

 

I tried it and worked. just change the images to img in the homeslider.tpl file

 

Olá pessoal,

 

Atualizei o módulo slider no meu prestashop e as imagens não apareceram mais.

 

Há um erro bem simples nos arquivos tpl do módulo.

 

Para resolver façam o seguinte:

 

- No arquivo /public_html/modules/homeslider/homeslider.tpl mude o caminho da pasta de imagens de images para img:

 

Quote

<img src="{$link->getMediaLink("`$module_dir`img/`$slide.image|escape:'htmlall':'UTF-8'`")}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />

 

 

Mude também no arquivo do módulo dentro da pasta do tema em /public_html/themes/default-bootstrap/modules/homeslider/homeslider.tpl:

 

Quote

<img src="{$link->getMediaLink("`$smarty.const._MODULE_DIR_`homeslider/img/`$slide.image|escape:'htmlall':'UTF-8'`")}"{if isset($slide.size) && $slide.size} {$slide.size}{else} width="100%" height="100%"{/if} alt="{$slide.legend|escape:'htmlall':'UTF-8'}" />

 

 

Lembrando que o caminho do arquivo na pasta do tema deve seguir o seu tema, neste caso o caminho é do tema default do Prestashop 1.6.0.5.

 

Até mais !!!

Link to comment
Share on other sites

Hello, for the arrows that you don't see, the problem is almost certainly that the images you uploaded are not high enough, or that they have a white background. Try to upload an image the same size as the default ones and not having a white background.

 

@Modesco, you need to have an access to your server via a ftp software like filezilla (or the administration panel offered by the hoster) to find the file

Link to comment
Share on other sites

you said that you've got problem with new pictures. YOu don't see them in front office? or both in front and back end?

this error appears in front office or in back office?

Thanks for your reply

 

I am not able to see the images in the main home page once the images are uploaded . I reinstalled the shop . I also find the same problem is encountered in the page

 

http://papyrusartgallery.com/content/1-delivery

 

where i want to add images of the Mailing tube shiping box . I only see a image which has a question mark in it . I dont know why . Some image issues were resolved by using a different browser (Morzilla instead of Internet explorer .)

Link to comment
Share on other sites

you said that you've got problem with new pictures. YOu don't see them in front office? or both in front and back end?

this error appears in front office or in back office?

 

you said that you've got problem with new pictures. YOu don't see them in front office? or both in front and back end?

this error appears in front office or in back office?

Though the img was changed to images I am getting the error attached . Please check the attchment

 

 

Edited by vasan82 (see edit history)
Link to comment
Share on other sites

I am not able to attach files , How do i do it . I am not able to see the images i attached .

 

Updated on 4/11/2014 

I am not able to recreate the issue . I am attaching a similar issue that i am facing .... Some times question marks are displayed .  Thanks for your support ..

post-348814-0-73648400-1397239906_thumb.png

Edited by vasan82 (see edit history)
Link to comment
Share on other sites

I tried all of this advise, and edited the homeslider.tpl file but I am still seeing a large "?" where the photos are supposed to be displayed. This is clearly a bug so why doesn't anyone at PS fix this problem in an UPDATE to the homeslider file

Link to comment
Share on other sites

All I wanted to do was to configure homeslider and I saw the dreaded update (dreaded I know how these things often fail from sloppy coding in prestashop and in so doing break the shop).

 

The whole update method is just ridiculous. Apparently (at lease in an obvious way) it is not possible to configure a mod which requires an update. Why are updates forced in this way.

 

At any rate I made the change to the tpl as explained above which brought back the slider as it was. However, the configure portion is still broken.

  • Like 1
Link to comment
Share on other sites

I changed folder img to images but than I got the problem with all images at my site...no images for Featured products,no images for New products...and no images for my Image slider :)

 

Is there any other solution?

 

Hmmm

 

Now I changed "homeslider/img/" to "homeslider/images" in   themes/default-bootstrap/modules/homeslider/homeslider.tpl  and it seems everything is ok now.

Edited by filediol (see edit history)
Link to comment
Share on other sites

It was correct for that version but then developers changed image folder again.

 

This is for everyone having problems:

Update homeslider to latest version and if your image folder name is img after update, rename it to images

 

I changed folder img to images but than I got the problem with all images at my site...no images for Featured products,no images for New products...and no images for my Image slider :)

 

Is there any other solution?

 

Hmmm

 

Now I changed "homeslider/img/" to "homeslider/images" in   themes/default-bootstrap/modules/homeslider/homeslider.tpl  and it seems everything is ok now.

make the change inside the module  which should be prestaroot/modules/homesslider/img

Link to comment
Share on other sites

SNAFU - I have the latest version as I have updated it because doing so was compulsory. Why doesn't prestashop make or create some type of smart-update based on how your directory is already set-up... instead of driving people nuts with this ridiculous coding error. I deleted the entire installation and reinstalled PS.. My image directory within homeslider is already named "images" but now I am having the following error everytime I try to upload an image. "An error occurred during the image upload process."

 

This bug has been around, in one form or another, for more than a year and still no one has coded in a proper undate that is a "catch all" fix.

 

I am somewhat a conspiracy theorist by nature. My personal opinion is that PS doesnt want this module to work because now there are "for purchase" modules now that are essentially identical to homeslider module. What's better than making people so fed up with the buggy "FREE" module that it makes the end user buy a similar module that is bug-free while offering technical support to the buyer.

 

This is not a clever marketing tool "methodolgy"... If they offer it, - or have ever offered it free - as part of of the basic intall of PS, they should get off their 4 points of contact too fix this mess

  • Like 1
Link to comment
Share on other sites

The previous advice about editing the homeslider.tpl was wrong. Also. If you aleady upgraded then "Images" is most likely already your image directory name (you should check anyways too make sure). /modules/homeslider/images is correct - /modules/homeslider/img is wrong

 

I had a PHP [spam-filter] (buddy of mine) suggest that I make the following coding correction on homeslider.tpl

 

<li class="homeslider-container">

<a href="{http://www.yourdomain.com|escape:'html':'UTF-8'}

 

and walla - IT WORKS!!!!!

  • Like 1
Link to comment
Share on other sites

The previous advice about editing the homeslider.tpl was wrong. Also. If you aleady upgraded then "Images" is most likely already your image directory name (you should check anyways too make sure). /modules/homeslider/images is correct - /modules/homeslider/img is wrong

 

I had a PHP [spam-filter] (buddy of mine) suggest that I make the following coding correction on homeslider.tpl

 

<li class="homeslider-container">

<a href="{http://www.yourdomain.com|escape:'html':'UTF-8'}

 

and walla - IT WORKS!!!!!

 Didn't work for us sadly... blank page

Link to comment
Share on other sites

I have homeslider version 1.3.7.... Let me tell you that my fix - the one I described WORKS! The homeslider.tpl was edited as follows (Note: the spacer below" | highlighted in red must not be deleted or have space before or after it :

 

foreach from=$homeslider_slides item=slide}
                    {if $slide.active}
                        <li class="homeslider-container">
                            <a href="{http://www.yourdomain.com|escape:'html':'UTF-8'}" title="{$slide.legend|escape:'html':'UTF-8'}">
                                <img src="{$link->getMediaLink("`$smarty.const._MODULE_DIR_`homeslider/images/`$slide.image|escape:'htmlall':'UTF-8'`")}"
                                     alt="{$slide.legend|escape:'htmlall':'UTF-8'}"/>!

Link to comment
Share on other sites

There is a new update now, but I am scared to click on it... This module is the most bug riddled piece of coding that I have ever come across... and updates are forced on you insead of being an option... which doesnt make sense it you already debugged it and it is working

Link to comment
Share on other sites

  • 1 month later...

Hello Everyone,

i just installed prestashop 1.6.0.6, and i am having some challenges with the home page image slider module v1.3.9. the navigation arrows aren't there anymore and the slides are not moving. Please, is there reason for this. I am quite new to prestashop and i will appreciate if someone can put me through. Thanks

Link to comment
Share on other sites

×
×
  • Create New...