# Error 400, but only sometimes and disappears via refresh

**URL:** <https://forum.getkirby.com/t/error-400-but-only-sometimes-and-disappears-via-refresh/497>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 17, 2015, 3:37pm UTC](https://forum.getkirby.com/t/error-400-but-only-sometimes-and-disappears-via-refresh/497 "2015-03-17T15:37:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0000](https://avatars.discourse-cdn.com/v4/letter/0/cab0a1/32.png) [@0000](https://forum.getkirby.com/u/0000)\
**Post date:** [March 17, 2015, 3:37pm UTC](https://forum.getkirby.com/t/error-400-but-only-sometimes-and-disappears-via-refresh/497/1 "2015-03-17T15:37:41Z")

</div>

I recently started getting an Error message that reads:

> “This site is currently not available. Please try again in a couple minutes or contact the administrator”.

The weird thing about that is, that the site has been running fine up until about a week ago and no changes have been made to the code on my part (Kirby is v2.0.0.)

Even stranger is, that the error always disappears after an immediate refresh and everything is back to normal.  
It does not reappear for several minutes even when the site is being visited from different devices/locations.

Yet it always comes back in the end.

Has this happened to anyone else or does someone here have an idea what might be causing this?  
Thanks!

---

<div class="post-metadata">

**Author:** ![0000](https://avatars.discourse-cdn.com/v4/letter/0/cab0a1/32.png) [@0000](https://forum.getkirby.com/u/0000)\
**Post date:** [March 17, 2015, 3:47pm UTC](https://forum.getkirby.com/t/error-400-but-only-sometimes-and-disappears-via-refresh/497/2 "2015-03-17T15:47:51Z")

</div>

I just ran the paneltest and there seems to be an error in line 184 of kirby.php.

The Message is

> ```
> Call to a member function isErrorPage() on boolean
> 
> ```

```
180 // visit the currently active page
181 $page = $site->visit($path);
182 
183 // react on errors for invalid URLs
184 if($page->isErrorPage() and $page->uri() != $path) {
185 
186 // get the filename
187 $filename = basename($path);
188 $pagepath = dirname($path);
189

```

---

<div class="post-metadata">

**Author:** ![0000](https://avatars.discourse-cdn.com/v4/letter/0/cab0a1/32.png) [@0000](https://forum.getkirby.com/u/0000)\
**Post date:** [March 17, 2015, 10:12pm UTC](https://forum.getkirby.com/t/error-400-but-only-sometimes-and-disappears-via-refresh/497/3 "2015-03-17T22:12:25Z")

</div>

After Updating to the newest version of Kirby, the same Error simply moved a few lines down.

As of now, I seem to have resolved the issue by adding the formerly removed Error-Folder back into the Content directory.  
Just in case someone comes across the same issue.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:17pm UTC](https://forum.getkirby.com/t/error-400-but-only-sometimes-and-disappears-via-refresh/497/4 "2025-02-06T17:17:39Z")

</div>

Archived on February 6, 2025, 5:17pm UTC


