something394124 Posted April 14, 2016 Share Posted April 14, 2016 Hello! After I upgraded prestashop to 1.6.1.5 on my test domain, the css in the theme bugged out. I solved this by turning off "Smart Cache for css" in the BO, then clearing the cache of both PS and my browser. Now everything works perfectly.. Or atleast almost! The only problem I encounter now, is when I try to access the "Modules" page in the BO, the page tries to load for 300 seconds, then times out, giving me a "Error 504 - Gateway timeout" (as seen in attached image) Nothing else is wrong in either front office nor back office, and no error logs are to be found in the root or /log/ folder. Any help would be greatly appreciated! Kind regards Link to comment Share on other sites More sharing options...
something394124 Posted April 14, 2016 Author Share Posted April 14, 2016 (edited) Ok, this is weird... When I turned "Smart cache for css" and "Smart cache for javascript" back on, the front office css dissappeared, but I could now access the modules page. I then turned those to options back off and the front office got repaired, and now I am unable to access the "Modules" page again.. Something happened in 1.6.1.5, but what? Edited April 14, 2016 by d3m0t3x (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted April 14, 2016 Share Posted April 14, 2016 This is a common problem when a new version of Prestashop is released. They release the version, but usually fail to update their server side cache for things like the 1-click upgrade module. And when it comes to changes with CSS and Javascript, you almost always have to clear your cache. Link to comment Share on other sites More sharing options...
tuk66 Posted April 14, 2016 Share Posted April 14, 2016 I vote for an incompatible module. Link to comment Share on other sites More sharing options...
something394124 Posted April 14, 2016 Author Share Posted April 14, 2016 Thanks for the quick reply, guys! I'll try to get back into the "Modules" page, and disable all of the non-prestashop modules to see if that has any effect. Meanwhile I have cache disabled, and keep clearing my browser cache along the way. I'll post an update as I go. Thanks Link to comment Share on other sites More sharing options...
something394124 Posted April 15, 2016 Author Share Posted April 15, 2016 After much searching and testing I found the root of the problem. (atleast I think so) After upgrading prestashop to 1.6.1.5, the one-click-upgrade module deleted most of the files in "/tools/swift" folder and also the "/modules/mailjet" folder. After re-uploading the files from a 1.6.1.4 backup, the problem was solved! - Joakim Link to comment Share on other sites More sharing options...
bellini13 Posted April 15, 2016 Share Posted April 15, 2016 that is because swift was upgraded to a new version, so it should have removed the old swift library and installed the new one. Using swift from 1.6.1.4 is not the correct choice Link to comment Share on other sites More sharing options...
sbco Posted October 25, 2016 Share Posted October 25, 2016 Same problem here. After upgrade to 1.6.1.7 I've got error Fatal error: Cannot redeclare class Swift in /home/www/ajaxjihlava.cz/subdomeny/www/tools/swift/Swift.php on line 32 It happens on "request new password" form and also on order confirmation (I think it happens everytime an email is send on confirmation) I was trying to override tools/swift/ files with older version, but it cause several more errors with mailjet module so it's not solution Link to comment Share on other sites More sharing options...
tuk66 Posted October 25, 2016 Share Posted October 25, 2016 Perhaps some module uses the Swift library and it is not compatible with the latest version. Link to comment Share on other sites More sharing options...
sbco Posted October 25, 2016 Share Posted October 25, 2016 I'm using only core modules, I tried to rollback and now I have the same error on previous version 1.6.1.6 :/ Link to comment Share on other sites More sharing options...
tuk66 Posted October 25, 2016 Share Posted October 25, 2016 "Cannot redeclare class Swift" means that this class is already declared. Something outside of core PrestaShop code has to do it. Other Swift class is somewhere. Link to comment Share on other sites More sharing options...
bellini13 Posted October 25, 2016 Share Posted October 25, 2016 perhaps an override file, but most likely a module 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