Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to complete installation on develop #31816

Closed
Delthair opened this issue Nov 14, 2024 · 2 comments
Closed

Impossible to complete installation on develop #31816

Delthair opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
Bug This is a bug (something does not work as expected) Event: Devcamp 2024 Nancy

Comments

@Delthair
Copy link
Contributor

Bug

The step 5 of the installation is blocked :

Fatal error: Uncaught TypeError: Cronjob::create(): Argument #1 ($user) must be of type User, int given, called in /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/core/modules/DolibarrModules.class.php on line 1701 and defined in /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/cron/class/cronjob.class.php:235 Stack trace: #0 /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/core/modules/DolibarrModules.class.php(1701): Cronjob->create(1) #1 /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/core/modules/DolibarrModules.class.php(570): DolibarrModules->insert_cronjobs() #2 /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/core/modules/modAgenda.class.php(615): DolibarrModules->_init(Array, '') #3 /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/core/lib/admin.lib.php(1228): modAgenda->init() #4 /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/install/step5.php(360): activateModule('modAgenda', 1) #5 {main} thrown in /Users/pragma-tech/Documents/000000 DEV/DEVELOP/dolibarr/htdocs/cron/class/cronjob.class.php on line 235

Impossible to finalise installation

Dolibarr Version

develop

Environment PHP

8.2

Environment Database

Mysql version 5.7.39

Steps to reproduce the behavior and expected behavior

Install a develop dolibarr

Attached files

No response

@Delthair Delthair added the Bug This is a bug (something does not work as expected) label Nov 14, 2024
@Delthair Delthair self-assigned this Nov 14, 2024
Delthair added a commit to Delthair/dolibarr that referenced this issue Nov 14, 2024
Bug correction to finalise step 5 of installation
Delthair added a commit to Delthair/dolibarr that referenced this issue Nov 14, 2024
Issue Dolibarr#31816 to enable finalisation of installation on step 5
eldy pushed a commit that referenced this issue Nov 14, 2024
Bug correction to finalise step 5 of installation
@tiaris
Copy link
Contributor

tiaris commented Nov 15, 2024

you must also add
include_once DOL_DOCUMENT_ROOT . '/user/class/user.class.php';

Delthair added a commit to Delthair/dolibarr that referenced this issue Nov 15, 2024
Complement to ISSUE Dolibarr#31816
@FHenry
Copy link
Member

FHenry commented Nov 17, 2024

fix by #31820

@FHenry FHenry closed this as completed Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Event: Devcamp 2024 Nancy
Projects
None yet
Development

No branches or pull requests

4 participants