fatfree-core icon indicating copy to clipboard operation
fatfree-core copied to clipboard

non existing alias, PHP 8.4 Internal Server Error

Open olaulau opened this issue 9 months ago • 2 comments

Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead
/vendor/bcosca/fatfree-core/base.php:1571

when calling $f3->alias() with a non existing alias

olaulau avatar Mar 18 '25 11:03 olaulau

Just ran into this. Thanks for telling me the reason so I don't have to hack core to find out what 8.4 is cranky about.

PatchyFog avatar Mar 30 '25 21:03 PatchyFog

We can only replace this with throwing an exception instead. I'll have a look if this might have other implications. In the meantime you can disable deprecation warnings to get rid of the error.

ikkez avatar Apr 01 '25 07:04 ikkez

fixed.

ikkez avatar Jul 08 '25 21:07 ikkez

https://github.com/f3-factory/fatfree-core/issues/393 https://github.com/f3-factory/fatfree-core/commit/442d446e8660f0732ad23effcceb2ac2dfbc54e4 when will it be released ?

olaulau avatar Jul 30 '25 17:07 olaulau

it's out now

ikkez avatar Aug 09 '25 12:08 ikkez