diff --git a/templates/layouts/base.php b/templates/layouts/base.php
index d7fc1f10d2bd7644c86e496e8462de0979bf0dc6..1f2ac32e7116d80fc2ad5ce6b962344fb2f48ab2 100644
--- a/templates/layouts/base.php
+++ b/templates/layouts/base.php
@@ -55,7 +55,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
                 'OPENGRAPH_ENABLE'     => Config::get()->OPENGRAPH_ENABLE,
                 'COURSEWARE_CERTIFICATES_ENABLE' => Config::get()->COURSEWARE_CERTIFICATES_ENABLE,
                 'PERSONAL_NOTIFICATIONS_AUDIO_DEACTIVATED' =>
-                    (bool) User::findCurrent()->getConfiguration()->PERSONAL_NOTIFICATIONS_AUDIO_DEACTIVATED,
+                    (bool) User::findCurrent()?->getConfiguration()->PERSONAL_NOTIFICATIONS_AUDIO_DEACTIVATED,
             ]) ?>,
         }
     </script>
@@ -97,7 +97,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
         <system-notification-manager
             id="system-notifications"
             :notifications='<?= htmlReady(json_encode(PageLayout::getMessages())) ?>'
-            placement="<?= User::findCurrent()->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT ?>"></system-notification-manager>
+            placement="<?= User::findCurrent()?->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT ?? 'topcenter' ?>"></system-notification-manager>
     </main>
     <!-- End main content -->