Jump to content

Moving prestashop from root/prestashop to root causes java error


Barolo

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...