Barolo Posted December 23, 2018 Share Posted December 23, 2018 Hi, I moved my prestashop from <root>/prestashop to <root> by: - copying files to root folder in an ftp client - updating the shop url in the admin panel (and double-checked shop_url in my DB via PhpMyAdmin) - clear cache, regenerate htaccess file and robots.txt When I load my new domain, all the data (logo's, images, text, ...) is there but theme is messed up, as if some css/javascript/jquery was not applied. When I look in the console, I see the following error: jquery-ui.min.js:5 Uncaught SyntaxError: Invalid or unexpected token ps_searchbar.js:7 Uncaught TypeError: Cannot read property 'autocomplete' of undefined at HTMLDocument.<anonymous> (ps_searchbar.js:7) at fire (core.js:690) at Object.fireWith [as resolveWith] (core.js:711) at Function.ready (core.js:745) at HTMLDocument.completed (core.js:748) The link to my shop is: https://amusebouchon.be Any suggestion is very welcome! Link to comment Share on other sites More sharing options...
El Patron Posted December 24, 2018 Share Posted December 24, 2018 preferences-->seo&urls-->scroll down-->base uri should be / Link to comment Share on other sites More sharing options...
Barolo Posted December 24, 2018 Author Share Posted December 24, 2018 Hi El Patron, Thanks for your response, I have double-checked what you suggested and unfortunately the base URL was already configured as /. Link to comment Share on other sites More sharing options...
razaro Posted December 24, 2018 Share Posted December 24, 2018 Try to delete in <root>/var/cache/ folder both prod and dev folders. But I think error comes from when you moved files and jquery-ui.min.js got corrupted maybe because your file have some strange characters http://nimb.ws/M5hA9S You should check that file and compare it with this one (same path as in URL) https://github.com/PrestaShop/PrestaShop/blob/1.7.4.x/js/jquery/ui/jquery-ui.min.js 1 Link to comment Share on other sites More sharing options...
Barolo Posted December 26, 2018 Author Share Posted December 26, 2018 Hi razaro, Thanks for investigating what could possibly be wrong with my shop. I followed your advise and replaced that file with the one from github. Unfortunately, no result. Just to be safe, I then changed the entire js-folder with the one from github and that still didn't solve the issue. I opted for a clean reinstall and deleted everything in my root folder (after taking a back-up off course) and reinstalled the (latest) version of prestashop. One evening of clever copying later and my shop is up and running on my root domain. It felt like the quickest route to success. Thanks again for your time 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now