Panel error Trying to access array offset on value of type int

Hello everyone,

I’m getting this message when I try to log in to my site’s production panel: ‘Trying to access array offset on value of type int’. However, I can still access my panel by simply changing the URL to http://mysite/panel instead of http://mysite/panel/login, where I encountered the error message. This allows me to directly access the panel interface. It’s a temporary workaround for my client, but does anyone else have experience with a similar message?

Thanks

No, never see this. A few questions:

  1. What’s your Kirby version?
  2. Does this only happen on the server or also locally?
  3. Is there more information available for this error in the PHP error logs on your server? You can find where the error logs are stored with phpinfo()

Hello, sorry for the delayed response, and thank you for your help! Here are the requested details:

  • Kirby version: 4.2.0
  • Issue: This only happens on the server; everything works fine locally.
  • PHP logs information:
    Here is what I found in phpinfo() regarding the logs:
error_log            no value    no value
error_log_mode       0644        0644
error_prepend_string no value    no value
log_errors           Off         Off
display_errors       Off         Off

Thanks for your time

I tried:

  • deleting all the content from the media folder
  • clearing all session data from the /site/sessions folder
  • deleting all accounts and starting from scratch on the live server

The error message still comes back.

How did you deploy your installation?

I noticed that the Kirby folder deployed was heavier than my local version. I think I made a mistake, so I redeployed my entire installation, and now everything is fine. Therefore, I’m not sure where the error was exactly.

Thank you all for your help and support!