Unexpected error on panel login. How to debug?

Hi,

for unknown reasons I can no longer login into the panel (2.1.1) of a deployed instance. A modal window appears with the following content:

The view could not be loaded because of an unexpected PHP error.
Please get in contact: support@getkirby.com and copy the following info.

Error:
undefined

User Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

Kirby Version:
2.1.1

Panel Version:
2.1.1

Is there any way for me to debug that? The frontend is working fine and so is my local working copy.

Thanks in advance.

Cheers
Björn

Got it. The browser rejected a crossdomain request because I added a redirect in htaccess from domain.com to www.domain.com. Setting the url in my config file fixed it.

Hello Bjorn,

I’ve got exactly the same thing going on :slightly_smiling:

Can you post what you added to the config file?

Thanks,
Arno

Got it. c::set(‘url’, ‘http://youurl.com’);

I think it’s weird that the front-end of the site keeps working and panel doesn’t.

Arno

1 Like