MCIAdmin Posted December 13, 2014 Share Posted December 13, 2014 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 More sharing options...
MCIAdmin Posted December 13, 2014 Author Share Posted December 13, 2014 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 More sharing options...
bacardi-rum Posted December 15, 2014 Share Posted December 15, 2014 I am having the same problem. Why doesn't prestashop provide prompt support for their product? Link to comment Share on other sites More sharing options...
x3n0m0rph Posted January 6, 2015 Share Posted January 6, 2015 Because is free... I have the same problem.. is there any solution? Link to comment Share on other sites More sharing options...
vekia Posted January 6, 2015 Share Posted January 6, 2015 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/ 2 Link to comment Share on other sites More sharing options...
osnexus Posted January 7, 2015 Share Posted January 7, 2015 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 ? Link to comment Share on other sites More sharing options...
NemoPS Posted January 7, 2015 Share Posted January 7, 2015 I bet it's broken like the other functionality. Check all the homeslider tables in the bo: homeslider homeslider_slides_hss homeslider_slides_lang Check shops ids and positions, I bet they are broken there Link to comment Share on other sites More sharing options...
vekia Posted January 7, 2015 Share Posted January 7, 2015 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 More sharing options...
MCIAdmin Posted January 7, 2015 Author Share Posted January 7, 2015 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 More sharing options...
NemoPS Posted January 9, 2015 Share Posted January 9, 2015 http://www ? Is that the full url? Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2015 Share Posted January 9, 2015 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' 1 Link to comment Share on other sites More sharing options...
trudny Posted October 19, 2015 Share Posted October 19, 2015 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 More sharing options...
luno Posted March 15, 2016 Share Posted March 15, 2016 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 More sharing options...
fdny895 Posted June 3, 2016 Share Posted June 3, 2016 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 More sharing options...
safin Posted June 14, 2016 Share Posted June 14, 2016 Hi guys, Set permission usually directories have: 755 files: 644. Now its working in mine. Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2016 Share Posted June 14, 2016 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: https://domain.com/when someone will log in to back office with different address, for example: https://www.domain.com/ (www before domain name) 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 More sharing options...
Recommended Posts