Jump to content

Javascript error when auto updating to 1.5.4.1


Recommended Posts

  • 3 weeks later...
  • 2 weeks later...

On some systems it seems to be a permission problem in downloading the upgrade into the install folder.

 

You can bypass this step by first downloading the upgrade to your local computer, unzipping the upgrade and unloading the upgrade to your install folder.

 

a) Download on prestashop.com the version to which you would like to upgrade

 

Extract from the zip on to your computer

 

c) Upload it to your FTP to: /youradmin/autoupgrade/latest/prestashop

d) Then, go back to the "1-click upgrade" module and select "More options (expert mode)"

e) Change the channel, instead of "Major release" select "Local directory"

f) Type "the new version number of your upgrade" for "The directory /admin/autoupgrade/latest/prestashop/ will be used for upgrading to version"

g) Click "Save", you should see a confirmation message "Configuration successfully updated"

h) Click "Check if a new version is available", and the "Upgrade PrestaShop now" button should appear

i) Then, you can click on this button and the upgrade process will start, bypassing the download and unzip steps

Link to comment
Share on other sites

Lots of reports of this bug so it is a known problem.

 

But it only happens to a small amount of severs. Seems related to permissions.

 

People have claimed to get the install to complete by setting file permissions to 777 for the install and resetting them back after the install completes. One person even claimed he was able to complete the installation by using a different browser. Please see,

 

http://www.prestashop.com/forums/topic/197413-javascript-error-when-upgrading-from-15x-with-1-click-upgrade/page__p__1054922__hl__javascript%20error%20parsejson__fromsearch__1#entry1054922

 

I recommend trying the upgrade on a copy of your web site on your own local computer.

Link to comment
Share on other sites

After an upgrade you should make sure you turn of Forced compilation and cache, Advanced Parameters > Performance

 

You can turn off friendly urls and delete all cache files,

 

prestashop\cache\smarty\compile

prestashop\themes\yourtheme\cache

 

After you see your front end is normal you may turn those items back on.

Link to comment
Share on other sites

I upgraded it somehow, but now my frontend is damaged :o

 

www.avtodeli-herkules.si

 

Please delete on your Browser your cookie-sessions and domain sessions. Like Bill I can see your site without any problems.

  • Like 1
Link to comment
Share on other sites

The site looks great to me,

 

www.avtodeli-herkules.si

 

Try looking at it in another browser.

 

I've tried IE and Opera, it is the same. It is not big damage. Missing black background for the names of modules (containers) and font is smaller.

 

 

I noticed my page is still 1.5.3.1 even backend displays 1.5.4.1 :wacko:

I installed fresh test page and after importing DB my frontend become damaged again.

Edited by hitri (see edit history)
Link to comment
Share on other sites

New result:

- I installed fresh 1.5.3.1

- only installed module '1-Click Upgrade'

- tried to upgrade, the same result: Javascript error (parseJSON) detected for action "upgradeDb".Starting restoration...

It looks like a bug. I'm using nginx not Apache. Could it be the reason?

 

I'll try to install fresh 1.5.4.1. Can I use 1.4.3.1 DB back up? I don't want to lose all my work.

Edited by hitri (see edit history)
Link to comment
Share on other sites

No, you cannot use a backup from PS 1.4.3.1

 

Did you have the data already in the PS 1.5.3.1 you had working above?

 

You could install XAMPP on your local computer and do the upgrade worst case export the database and use that.

 

Have you tried upgrading to PS 1.4.10 and then upgrading to 1.5 ?

Link to comment
Share on other sites

  • 4 weeks later...

Hi all,

 

I'm faced to the same problem when trieing to perform an update from 1.4.9 to 1.5.4.1. Also performed different settings and different ways but always the same error message as described above. Any ideas?

 

My Webhosting is: SSD-Webhosting

Used WEB: Mozilla Firefox V22.0

 

The error seems to appear when the update of the database is running. (see screenshot in german). The update of the files was succesful.

post-412284-0-19018400-1373103344_thumb.jpg

Edited by alm-store.de (see edit history)
Link to comment
Share on other sites

some updates:

 

a manual update could be performed successful, but I have detected that a login into the backend with Mozilla does not work after the update to 1.5.4.1. After type in the login/password and confirmation, the fields are cleared and login was not performed. A login with IE works without any problems. The Mozilla cache was of course cleared before logging in.

 

Does anybody know therefore a solution?

Edited by alm-store.de (see edit history)
Link to comment
Share on other sites

Hi tried a manual update as suggested here: http://www.prestasho...-only-database/

 

and it doesnt work either, but here is what it says (see also image)

 

( ! ) Warning: include(C:\wamp\www\prestanew\config/../modules/mobile_theme/Mobile_Detect.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\wamp\www\prestanew\config\settings.inc.php on line 9
Call Stack
# Time Memory Function Location
1 0.0015 907920 {main}( ) ..\upgrade.php:0
2 0.0022 943536 include_once( 'C:\wamp\www\prestanew\config\settings.inc.php' ) ..\upgrade.php:63
( ! ) Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'C:\wamp\www\prestanew\config/../modules/mobile_theme/Mobile_Detect.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\prestanew\config\settings.inc.php on line 9
Call Stack
# Time Memory Function Location
1 0.0015 907920 {main}( ) ..\upgrade.php:0
2 0.0022 943536 include_once( 'C:\wamp\www\prestanew\config\settings.inc.php' ) ..\upgrade.php:63
( ! ) Fatal error: Class 'Mobile_Detect' not found in C:\wamp\www\prestanew\config\settings.inc.php on line 9
Call Stack
# Time Memory Function Location
1 0.0015 907920 {main}( ) ..\upgrade.php:0
2 0.0022 943536 include_once( 'C:\wamp\www\prestanew\config\settings.inc.php' ) ..\upgrade.php:63

post-86383-0-48259500-1373656120_thumb.jpg

Edited by ubergirl (see edit history)
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...