You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got error 'PHP message: PHP Fatal error: Uncaught TypeError: realpath(): Argument #1 ($path) must be of type string, array given in [.../htdocs/includes/restler/framework/Luracast/Restler/AutoLoader.php]
Must change
if (false == $realPath = @realpath($path)) return null;
To
if (is_array($path) ){
if (false == $realPath = @realpath($path[0])) return null;
} else
{
if (false == $realPath = @realpath($path)) return null;
}
Each update of dolibarr I have to do this.
Thanks
Dolibarr Version
20.0.1
Environment PHP
8.2.26
Environment Database
MySQL or MariaDB 10.6.18-MariaDB-0ubuntu0.22.04.1
Steps to reproduce the behavior and expected behavior
Try to access .../api/index.php/explorer/
Attached files
No response
The text was updated successfully, but these errors were encountered:
I dont have this issue. The file you are pointing to is not a dolibarr file but comes from the framework? You have some other configuration or change that could cause this.
Bug
Got error 'PHP message: PHP Fatal error: Uncaught TypeError: realpath(): Argument #1 ($path) must be of type string, array given in [.../htdocs/includes/restler/framework/Luracast/Restler/AutoLoader.php]
Must change
if (false == $realPath = @realpath($path)) return null;
To
if (is_array($path) ){
if (false == $realPath = @realpath($path[0])) return null;
} else
{
if (false == $realPath = @realpath($path)) return null;
}
Each update of dolibarr I have to do this.
Thanks
Dolibarr Version
20.0.1
Environment PHP
8.2.26
Environment Database
MySQL or MariaDB 10.6.18-MariaDB-0ubuntu0.22.04.1
Steps to reproduce the behavior and expected behavior
Try to access .../api/index.php/explorer/
Attached files
No response
The text was updated successfully, but these errors were encountered: