--- sites/all/modules/securepages/securepages.module	2010-06-21 14:47:07.000000000 +0200
+++ sites/all/modules/securepages/securepages_new.module	2010-06-21 14:46:33.000000000 +0200
@@ -21,6 +21,15 @@ function securepages_init() {
     return;
   }
 
+  /**
+   * For logged-out users page can be cached and then path.inc isn't loaded yet and drupal_init_path() hasn't run yet.
+   * Don't run drupal_init_path() here. Just get the normal path.
+   */
+  if (!function_exists('drupal_get_normal_path')) {
+    require_once './includes/path.inc';
+    $path = drupal_get_normal_path($path);
+  }
+
   $page_match = securepages_match($path);
 
   if ($_POST) {
