Exception: undefined is_a(): Passing null to parameter #2 ($class) of type string is deprecated

Hi,

i am using Kirby 3.7.0.1 with PHP 8.1 on Local and Production, since today i get the following error when changing text or a image or something else in the backend in the local environment:

Exception: undefined
 is_a(): Passing null to parameter #2 ($class) of type string is deprecated 

Can someone help me to get rid of this?

Thanks in advance.

Is there a stack trace for the error in your php error log or in dev tools console?

I don’t know how to do that sorry.

Do you get the same error with a fresh Starterkit?
Are you using any plugins that you haven’t also updated when switching to 3.7.0.1?

On a Mac, you open Chrome/Firefox developer tools with CMD+Option+I, Windows Ctrl+Shift+I

You can find the location of php error logs with the phpinfo() command.

As regards finding the php error logs, see Basic error hunting & prevention | Kirby CMS

thank you and sorry. it was a plugin.