morrisa Posted January 20, 2014 Share Posted January 20, 2014 Along with other people I am having a problem with JQuery not being loaded. I was running at 1.5.6.0 when I spotted this and so I upgraded to 1.5.6.1 using the 1 Step Upgrade process, which reported that the upgrade had completed successfully. The errors "ReferenceError: $ is not defined" continued to appear after this. From other postings I uploaded the admin and js directories from a new download of 1.5.6.1. I have checked the version of JQuery in defines.inc.php and that this matches with the js/jquery/jquery-1.7.2.min.js. I've also checked for PHP errors on the server and this looks clean. The problem seems to be that the code to load JQuery is missing from the HTML being generated for the Admin pages. Can anyone suggest what will fix this? Link to comment Share on other sites More sharing options...
vekia Posted January 20, 2014 Share Posted January 20, 2014 but where it isn't loaded? in front office? on product pages? on homepage? in back office? please shed some more informations about your problem. Link to comment Share on other sites More sharing options...
morrisa Posted January 21, 2014 Author Share Posted January 21, 2014 Vekia, Thanks for coming back on this, which I've now figured out. I'm running PrestaShop in a subdirectory, using the instructions at http://dobetterit.com/prestashop-in-sub-folder/ What happened was instead of accessing the BO as http://mydomain/admin12345 I ended up accessing as http://mydomain/subdir/admin12345. When the subdirectory was included, all the BO pages looked fine, but I noticed that I couldn't see the category tree and after digging deeper found that JQuery and several other .js files were not being loaded. I saw the errors "ReferenceError: $ is not defined" and so went to look at why this might be. Anyway, after taking the subdirectory out of the path, I found that everything was actually working correctly. I hope this helps anyone using this sort of config, should they run into the problem I had. Thanks again for coming back to me on this. Alan Link to comment Share on other sites More sharing options...
Recommended Posts