lemonstand / lemonsync

A command line tool to work on LemonStand themes locally.
Other
1 stars 0 forks source link

Maintenance mode broken w/ Lemonsync #33

Open tomcornall opened 7 years ago

tomcornall commented 7 years ago

https://sentry.io/lemonstand/lemonstand/issues/227959948/

LemonStand\Exception\SystemErrorException: () Fatal error: Call to a member function pages() on a non-object
  File "srv/www/lemonstand2/releases/20170321200632/modules/cms/Cms.php", line 505, in LemonStand\{closure}
    ->pages()
  File "[Anonymous function]", line 0
    LemonStand\Application->LemonStand\{closure}
tomcornall commented 7 years ago

Saving maintenance mode sets the system_settings "maintenance theme" to whichever theme is currently editing at the time.

If you delete a theme and don't re-save maintenance mode, the maintenance theme is still referencing the deleted theme.