# Broken Admin Panel

**URL:** <https://forum.getkirby.com/t/broken-admin-panel/16895>\
**Category:** Questions\
**Tags:** v3\
**Created:** [January 16, 2020, 6:20pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895 "2020-01-16T18:20:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 16, 2020, 6:20pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/1 "2020-01-16T18:20:00Z")

</div>

All of the sudden our Kirby /admin panel isn’t working. Not really sure how to track down the error here, any help would be great. Tried removing all composer dependencies (and cache) and re-installing.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/c/cd9a64e2b12bffd34d6016ebc6b1a475262cfeb7.jpeg)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 16, 2020, 6:49pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/2 "2020-01-16T18:49:01Z")

</div>

And the default.php template does exist and is readable?

---

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 16, 2020, 7:03pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/3 "2020-01-16T19:03:01Z")

</div>

Yes, and now I’m seeing this locally?

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/9/9907270a6254adfd2e79d2579b3c7b95a29241f7.jpeg)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 16, 2020, 7:06pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/4 "2020-01-16T19:06:23Z")

</div>

Yes, that error shows up if debugging is set to true to remind you to change these methods. Looks like you just updated from an older version. This warning was introduced in 3.3.0

---

<div class="post-metadata">

**Author:** ![Turqueso](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/turqueso/32/8058_2.png) [@Turqueso](https://forum.getkirby.com/u/Turqueso)\
**Post date:** [January 16, 2020, 7:47pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/5 "2020-01-16T19:47:14Z")

</div>

It seems you are upgrading from Kirby 2 to Kirby 3, here if the [guide to migrate from k2 to k3](https://getkirby.com/docs/cookbook/setup/migrate-site)

---

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 16, 2020, 7:59pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/6 "2020-01-16T19:59:14Z")

</div>

@texnixe Okay, if I resolve all of those errors or turn off debug, will this issue go away?

@Turqueso I am not upgrading, already on Kirby 3!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 16, 2020, 8:00pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/7 "2020-01-16T20:00:01Z")

</div>

@pandp Yes, of course. Although I suggest that your update the code instead of turning debugging off. As the message says, these methods are now deprecated and will stop working when 3.5 is released. So to make your code future-proof… And you still want to get debug messages while developing, so turning debug off is not advisable while developing.

---

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 16, 2020, 8:11pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/8 "2020-01-16T20:11:19Z")

</div>

Makes sense, but at the moment my client is having trouble logging into the panel, and i’m not sure what the root cause is… these deprecations or something else?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 16, 2020, 8:24pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/9 "2020-01-16T20:24:27Z")

</div>

I can’t tell you that because the error messages so far had other causes. Also, correct me if I’m wrong but it looks like you have updated Kirby, so these changes are not really suddenly out of the blue? Or what changes did happen before the user could no longer log in?

---

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 16, 2020, 8:40pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/10 "2020-01-16T20:40:01Z")

</div>

On the production server we haven’t upgraded yet, and it seemed like all of the sudden they weren’t able to access the panel this morning? I’ve been trying to debug locally but was wondering if there’s a quick fix to this in the meantime before diving back in and fixing these deprecations.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 16, 2020, 8:45pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/11 "2020-01-16T20:45:19Z")

</div>

Ok, is there a `.logins` file in one or more of the accounts folders? If so, delete them. Then check if the users can log in again.

---

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 17, 2020, 7:31am UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/12 "2020-01-17T07:31:35Z")

</div>

There doesn’t seem to be a .logins file in the accounts folders, just an `.htpasswd` file. I did disable debug and this is what page I am brought to when I try to view the admin panel. (we also never had an actual `default.php` template but I created one and this is where it directs to.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/858d569154aeb2ad01b2bfaf7a007d1708d2cf66.jpeg)

I can’t seem to figure out what’s going on!  
Is the `visible()` deprecation messing up the ability to view the admin panel? Is there some routing that is messing with it?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 17, 2020, 7:54am UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/13 "2020-01-17T07:54:17Z")

</div>

No, the deprecated methods do only throw an error in debug mode, that should not interfere with the Panel.

Have you moved the Panel to the `admin` location? Default is `/panel`, not `admin`. What you see above is the error page, because the `admin` page doesn’t exist.

> [@pandp](#):
>
> we also never had an actual `default.php` template but I created one

The `default.php` template comes with the Starterkit or Plainkit, it has always been a required file, also in older versions.

---

<div class="post-metadata">

**Author:** ![pandp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pandp/32/8059_2.png) [@pandp](https://forum.getkirby.com/u/pandp)\
**Post date:** [January 17, 2020, 8:16pm UTC](https://forum.getkirby.com/t/broken-admin-panel/16895/14 "2020-01-17T20:16:34Z")

</div>

Whoops, yes, it looks like this had something to do with the production server running out of memory and `/panel` should be working.

I wonder why the default.php file wasn’t included, but will follow up when the deprecations are fixed and we get to the bottom of it!
