Panel Error on saving -> Exception: undefined Implicit conversion from float

Dear Kirby fellows, already googled and searched here with no results :frowning:

Im on MacOs Monterey running Mamp Pro 6.6.2 - Apache with PHP 8.1.1 - Kirby 3.7.3.

I have a virtualhost test domain working like a charm but since a few weeks i have this problem (ONLY LOCAL and in all browsers) - See screenshot.

The console says its a error 500…
Any help on how can i dig deeper to resolve it?

Thx in advance
Df

Could you check the php error logs so we can see where this is coming from? Are you using the latest Kirby version? What plugins are installed?

Okay Okay :slight_smile: Were getting closer!

PHP Error from log is:

[21-Aug-2022 15:49:57 UTC] PHP Warning: require(/Users/dfcnt/dev/myproject/kirby/bootstrap.php): Failed to open stream: No such file or directory in /Users/dfcnt/dev/myproject/index.php on line 3

[21-Aug-2022 15:49:57 UTC] PHP Fatal error: Uncaught Error: Failed opening required ‘kirby/bootstrap.php’ (include_path=‘.:/Applications/MAMP/bin/php/php8.1.0/lib/php’) in /Users/dfcnt/dev/myproject/index.php:3
Stack trace:
#0 {main}
thrown in /Users/dfcnt/dev/myproject/index.php on line 3

[21-Aug-2022 15:49:57 UTC] PHP Warning: require(/Users/dfcnt/dev/myproject/kirby/bootstrap.php): Failed to open stream: No such file or directory in /Users/dfcnt/dev/myproject/index.php on line 3

[21-Aug-2022 15:49:57 UTC] PHP Fatal error: Uncaught Error: Failed opening required ‘kirby/bootstrap.php’ (include_path=‘.:/Applications/MAMP/bin/php/php8.1.0/lib/php’) in /Users/dfcnt/dev/myproject/index.php:3
Stack trace:
#0 {main}
thrown in /Users/dfcnt/dev/myproject/index.php on line 3

Plugins im using:

|bnomei/autoid|2.7.5|
|bnomei/field-ecco|1.1.2|
|medienbaecker/autoresize||
|medienbaecker/logger||
|my/css||
|my/icons|

Hm, but if that file is not present, you shouldn’t be able to access the Panel at all.

1 Like

You’re right - I was searching for mistakes or something else so i tried to reset all to defaults as possible i’ve copied the index.php from the plainkit - So this is getting the error from the top posting.
Then → Copied the index.php from starterkit (Which includes the __DIR__ ) no php error now thrown.

But my main problem still exists :-/

Found the solution. The plugin AutoId (v 2.7.5) was the problem - Updated the plugin to latest 2.8.1 and it works like a charme :slight_smile: