KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Dashboard failed with cryptic error message on php 8.1, works fine in both 7.4 and 8.0 #2739

Open Jim Lam opened this topic on on Jun 24, 2022 - 1 comments

Jim Lam commented on Jun 24, 2022

As the subject stated, I tried the Dashboard quick start, and found that it failed miserably with the following error message:

The application encountered an unexpected condition that prevented it from fulfilling your request

Any workaround for php 8.1 or I had to switch to php 7.4/8.0?

Regards Jim

Sebastian Morales commented on Jun 27, 2022

In PHP 8.1 there are some warnings about function argument types which causes Dashboard to error. We are updating Dashboard to fix those function argument types and will release a new version soon. In the meantime you could turn set PHP error messaging to exclude warning level messages. For example, in Dashboard's App.php

<?
error_reporting(E_ERROR);
ini_set('error_reporting', E_ERROR);
error_reporting(E_ALL ^ E_WARNING);

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None