Jump to content

Image Slider Order Not Changing


Recommended Posts

Hi,

 

We are encountering an issue and need assistance. Our image slider works on the front end, but we are unable to change the order of the slides. Even when we change the order in the CMS, the slides are still appearing old to new.

 

Would appreciate help on this.

 

 

Link to comment
Share on other sites

Based on some research in these forums, someone said to post the Ctrl+Shift+J log from Chrome. So here are the errors below:

 

 
 
index.php:1 XMLHttpRequest cannot load  http://...../modules/homeslider/ajax_homeslider.php?secure_key=(same as above). No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://173.254.28.12' is therefore not allowed access. The response had HTTP status code 404.
Link to comment
Share on other sites

  • 3 weeks later...

Hi, thanks for the answer about domain name but it still doesn't work even with the subdomain www... strange that we are so few to encounter this problem ? Prestashop provides to update this major module ?

 

please open slider configuration page,

turn on browser console (ctrl+shift+j in chrome)

then try to change position of slide

 

you will see there some ajax request, are they red? do you see there some other errors that appear while you're trying to move slides?

Link to comment
Share on other sites

please open slider configuration page,

turn on browser console (ctrl+shift+j in chrome)

then try to change position of slide

 

you will see there some ajax request, are they red? do you see there some other errors that appear while you're trying to move slides?

Yes, I can see something in red in the console even before changing anything. It is as follows:

 

modules/homeslider/logo.gif Failed to load resource: the server responded with a status of 404 (Not Found)

 

 

If I try to change position of slides I get following errors:

 

XMLHttpRequest cannot load http://www No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin  is therefore not allowed access. The response had HTTP status code 404.

 

Link to comment
Share on other sites

message that you see is probably related to my post about domains / protocols

www.shop.com is not the same domain as shop.com

and if your shop will use shop.com, and if you will connect to back office with www.shop.com you will see errors related to XMLHttpRequest and No 'Access-Control-Allow-Origin'

  • Like 1
Link to comment
Share on other sites

  • 9 months later...

make sure that you're connected to back office with correct domain.

note, that if your shop uses domain, for example: http://mydomain.com

you have to connect to back office with this domain http://mydomain.com/adminxxxx/

 

www.mydomain.com/adminxxxx/ is not equal to mydomain.com/adminxxxx/

 

or https://mydomain.com/ is not equal to http://mydomain.com/

It worked, thx

Link to comment
Share on other sites

  • 4 months later...

Using sdhomeslider there is problem with saving order of sliders. In browser console (Chrom CTRL+j) you can see that error 500 occurs on every change.

 

jquery-1.11.0.min.js:4 POST http://xxxxxxxx.xx/modules/sdhomeslider/ajax_sdhomeslider.php?secure_key=facexxxxxxxxxxxxxxxxx 500 (Internal Server Error)

 

In error logs i founded there is problem in one of module php file:

 

PHP Parse error:  syntax error, unexpected ';' in /var/xxxxxxxx/www/modules/sdhomeslider/ajax_sdhomeslider.php on line 29 

 

I can be easy to fix by following:

1. find ...www/modules/sdhomeslider/ajax_sdhomeslider.php file and open it

2. go to line with text of db query "            WHERE `id_sdhomeslider_slides` = '.(int)$id_slide;"

3. remove sign ; at the end of line, should be like this: "            WHERE `id_sdhomeslider_slides` = '.(int)$id_slide"

4. save and be happy with keep order of sliders :)

 

Regards

Lukasz

Link to comment
Share on other sites

  • 2 months later...

changing the domain name in your google URL works thank you 

 

message that you see is probably related to my post about domains / protocols

www.shop.com is not the same domain as shop.com

and if your shop will use shop.com, and if you will connect to back office with www.shop.com you will see errors related to XMLHttpRequest and No 'Access-Control-Allow-Origin'

Link to comment
Share on other sites

  • 2 weeks later...

permissions are not a case here.

the problem is related to fact that fdny895 is connected to back office with different domain than shop domain

 

for exmaple, front office shop address (in url bar) is:

  1. https://domain.com/

when someone will log in to back office with different address, for example:

  1. https://www.domain.com/ (www before domain name)
  2. http://domain.com/ (http instead https)

 

ajax queries in back office will not work. so in effect - order of slides to.

 

conclusion:

always log in to back office with the same domain and protocol as your front office has.

Link to comment
Share on other sites

×
×
  • Create New...