Skip to content

[Bug] Installation Step 4 error when creating default user. #7647

@mattdilts

Description

@mattdilts

Describe the bug

Attempting to install FreshRSS with my web hosting provider.

Installation proceeds without issue until Step 4. I enter my desired default credentials and hit Submit and then receive a 500 error.

Image
Image

Here's a copy/paste of the error_log file in the .p/i/ directory:

[03-Jun-2025 17:13:26 UTC] PHP Fatal error:  Uncaught TypeError: FreshRSS_Category::__construct(): Argument #2 ($id) must be of type int, string given, called in /home/username/example.com/it_feed/app/Models/CategoryDAO.php on line 469 and defined in /home/username/example.com/it_feed/app/Models/Category.php:32
Stack trace:
#0 /home/username/example.com/it_feed/app/Models/CategoryDAO.php(469): FreshRSS_Category->__construct()
#1 /home/username/example.com/it_feed/app/Models/CategoryDAO.php(248): FreshRSS_CategoryDAO::daoToCategories()
#2 /home/username/example.com/it_feed/app/Models/CategoryDAO.php(352): FreshRSS_CategoryDAO->searchById()
#3 /home/username/example.com/it_feed/app/Services/ImportService.php(51): FreshRSS_CategoryDAO->checkDefault()
#4 /home/username/example.com/it_feed/app/Controllers/importExportController.php(113): FreshRSS_Import_Service->importOpml()
#5 /home/username/example.com/it_feed/app/Controllers/userController.php(268): FreshRSS_importExport_Controller->importFile()
#6 /home/username/example.com/it_feed/app/install.php(242): FreshRSS_user_Controller::createUser()
#7 /home/username/example.com/it_feed/app/install.php(731): saveStep3()
#8 /home/username/example.com/it_feed/p/i/index.php(32): require('/home/username/...')
#9 {main}
  thrown in /home/username/example.com/it_feed/app/Models/Category.php on line 32

To Reproduce

I'm installing in a subdirectory named "it_feed", not the top level of the domain. Hoping this isn't what is causing the issue.

  1. Start installation example.com/it_feed
    Image
  2. Continue to the checks step:
    Image
  3. Continue to step 3: Database Configuration:
    Image
  4. Enter desired default user credentials:
    Image
  5. Error occurs:
    Image

Expected behavior

I expect the user to be created and installation to finish.

FreshRSS version

1.26.3

System information

  • Database version: MySQL 10.6.21-MariaDB-cll-lve-log
  • PHP version: Using PHP 8.1.32
  • Installation type: Manual install
  • Web server type: Apache 2.4.63
  • Device: PC
  • OS: Windows 10
  • Browser: Chrome 136.0.7103.114

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug (unconfirmed)issues that could not be reproduced yet

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions