Projekt

Allgemein

Profil

GX-Bug #66644

Von Moritz Bunjes vor fast 4 Jahren aktualisiert

Die "Shop offline"-Seite und die main.css werden beim Cache Leeren nicht neu gebaut. Das führt dazu, dass nach dem Update die Standard-"Shop offline"-Seite angezeigt wird. 
 Dies ist insbesondere in der Cloud problematisch. Hier kommt erschwerend hinzu, dass die main.css nicht da ist und auch beim Aufruf der "Shop offline"-Seite nicht neu gebaut wird. Beim erneuten Speichern der "Shop offline"-Seite, ohne zuvor den Shop aufzurufen, wird diese dann ohne Styles generiert. 

 ___ 

 The "Shop offline" page and main.css are not rebuilt when the cache is cleared. This will result in the default "Shop offline" page being displayed after the update. 
 This is especially problematic in the cloud. The problem is that the main.css is not there and is not rebuilt when the "Shop offline" page is called. If the "Shop offline" page is saved again without calling the shop first, it will be generated without styles. 


 (reproduced with MU from 3.14.3.0 to 4.0.0.1) 

 1. have a for example 3.14.3.0 ready 
 2. go to Layout / Design > Template Settings > Edit template  
 3. create, edit and activate a template in SE3; go to Global > Backgroud >>> Background Image, upload an image as background, save changes 
 4. go to Layout / Design > Shop online / offline, alter the content and style of the 'Shop offline' message, save changes 
 5. switch your shop to Offline, take a screenshot of the Offline-Site (as non-admin) 
 6. update your shop to a higher version than 3.15 
 7. immidiately after uploading the shop files check you shop offline site 

 expected result: 

 * the styled 'shop offline' site is displayed 

 actual result: 

 * the default 'shop offline' site is displayed 

 ___ 


 The solution: 
 Weil die die main.css nicht immer existiert und auch nicht on-the-fly erzeugt werden sollte, um den Seitenaufbau nicht zu verlangsamen, werden die Styles der Shop offline Seite jetzt immer dann erneuert, sobald die main.css erneuert wurde. Dabei muss es nach Erzeugen der main.css immer mindestens einen weiteren Seitenaufruf im Shop-Frontend gegeben haben, da dort erst die Aktualisierung getriggert wird. Neu ist jetzt auch, dass die Shop offline Seite nach Aktualisierung über den Gambio Admin > Darstellung > Shop online/offline kein leeres Inline-CSS nutzt, sobald die main.css nicht existiert, sondern stattdessen die dynamic_theme_style.css.php einbindet, die in den allermeisten Fällen ein CSS generieren sollte. In den Fällen, wo es fehlschlagen sollte macht es keinen Unterschied zum ansonsten leeren inline-CSS.

Zurück