Firefly III undefined method createPersonalAccessClient
May 24, 2025
I wanted to have a play with the Firefly iii finance manager, so setup docker on a raspberry pi.
The instructions to do so can be found here: https://docs.firefly-iii.org/how-to/data-importer/installation/docker/
All worked well, but then I had the following error when trying to access the profile section of the main application so that I could setup the importer.
firefly_iii_core | [2025-05-24 16:20:09] production.ERROR: Exception is: {"class":"Error","errorMessage":"Call to undefined method
Laravel\\Passport\\ClientRepository::createPersonalAccessClient()","time":"Sat, 24 May 2025 16:20:09 +0100","file":"\/var\/www\/html\/app\/Http\/Controllers\/ProfileController.php","line":157,"
code":0,"version":"6.2.13","url":"http:\/\/drumcoder:4000\/profile","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko)
Chrome\/136.0.0.0 Safari\/537.36","json":true,"method":"GET","post":""}
firefly_iii_core | [2025-05-24 16:20:09] production.ERROR: Call to undefined method Laravel\Passport\ClientRepository::createPersonalAccessClient() {"userId":1,"exception":
"[object] (Error(code: 0): Call to undefined method Laravel\\Passport\\ClientRepository::createPersonalAccessClient() at /var/www/html/app/Http/Controllers/ProfileController.php:157)
firefly_iii_core | [stacktrace]
firefly_iii_core | #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): FireflyIII\\Http\\Controllers\\ProfileController->index()
firefly_iii_core | #1 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
firefly_iii_core | #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(265): Illuminate\\Routing\\ControllerDispatcher->dispatch().
firefly_iii_core | #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(211): Illuminate\\Routing\\Route->runController()
I am using a very new (10 hours old!) version of firefly iii, v6.2.13, so perhaps it's a bug in the new version.
I managed to fix the issue by getting a command prompt on the firefly_iii_core
docker container and running the following command from /var/www/html
folder:
php artisan passport:install
Call to undefined method Laravel\Passport\ClientRepository::createPersonalAccessClient() {"userId":1,"exception":"[object] (Error(code: 0): Call to undefined method Laravel\Passport\ClientRepository::createPersonalAccessClient() at /var/www/html/app/Http/Controllers/ProfileController.php:157) firefly_iii_core | [stacktrace]