[Dolibarr] ERP & CRM

Hello guys,
Thanks for this app. Any chance to upgrade Dolibarr to v17? v16 is almost deprecated in terms of updates.

Thanks,

1 Like

I agree, dolibarr 17 would be greatly appreciated !

1 Like

Hello everyone.

Sorry for my absence to keep the project up to date.
At the moment I don’t have the time to do it and won’t for a few more months.


As an idea for the person who will take over until I return, to overcome the problem of migration and PHP8, we must manage to load PHP7 for updates of version < 17.

2 Likes

I was trying to manually update from 16 to 17 with the dolibarr update script and procedure, so this is why it did not work



Thanks anyway for your kind reply, i hope that you find the necessary time or that someone takes on and manages to maintain this project !

Tks very much to anybody has packaged Dolibarr v18.0.1. To tell the truth I have not yet installed it as I am somewhat afraid of the 2 versions (from v16) jump and it’s usually safer to wait for 0.2 version for production use.
Do people have upgraded with success, or any difficulties ?

Hi, there.

I’m trying to find help to import a DB in Dolibarr on a Yunohost server.

Where can I go?

thanks

1 Like

Hello, we have one it yesterday. It seems working, I am waiting for feedbacks of the principal user.

The upgrade have ended with some warnings like this:

Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_LOGIN_SAMBA in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 70
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 71
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD_CRYPTED in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 72
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_TITLE in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 81
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_DESCRIPTION in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 82
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 83
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_ADMIN_DN in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 115
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_ADMIN_PASS in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 116
Warning: PHP Warning:  Undefined array key "telephonenumber" in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1100
Warning: PHP Warning:  Trying to access array offset on value of type null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1100
Warning: PHP Warning:  Undefined array key "facsimiletelephonenumber" in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1100
Warning: PHP Warning:  Trying to access array offset on value of type null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1100
Warning: PHP Warning:  Undefined array key "mobile" in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1100
Warning: PHP Warning:  Trying to access array offset on value of type null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1100
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 194
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD_CRYPTED in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_TITLE in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_DESCRIPTION in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 194
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD_CRYPTED in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_TITLE in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_DESCRIPTION in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 2
24
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 194
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_PASSWORD_CRYPTED in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on l
ine 205
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_TITLE in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Warning: PHP Warning:  Undefined array key "" in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Warning: PHP Warning:  Undefined property: stdClass::$LDAP_FIELD_DESCRIPTION in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Info: LDAP user update ended with error

But we can login, so I am not sure if it is very relevant


Hi ! I’m planning on migrating our work’s dolibarr to a yunohost instance pretty soon, problem is our prod is 18.0.4 and yunohost package is 18.0.3 so migration breaks it all
 Is there any way i can circumvent this, or any plan to package dolibarr to a more recent version soon ? Thanks

V19, default/normal install from yunohost, can login with ldap, but if one uses other users created in dolibarr those users can®t login through dolibarr login page when password is defined as “HTTPBasicPassword” defined as $dolibarr_main_authentication='http'; on htdocs/conf/conf.php.
defining $dolibarr_main_authentication='ldap,dolibarr'; , doesn’t work, it premoves ldap user login ability from yunohost portal and all logins from dollibar page too.
so i tried v20, “yunohost testing branch”, and ldap works too out of the box but created users on dolibarr couldn’t login neither by login page or android app. the solution for both ways to work tested on v20 and working is to place $dolibarr_main_authentication='http,dolibarr'; on htdocs/conf/conf.php this way the superadmin can login by yunohost host portal, and users created in dolibarr can login via dolibarr login page or via dolidroid the app for android.
v20 also works very well didn’t find any problems, maybe the team can bump it up because v21 is the current stable by dolibarr.

1 Like

+1 your suggestion.

Application only users shouldn’t totally depend on LDAP. It should be done independently without creating new users in yunohost.

Thank you for your solution @spiritwalker.

With your tweak are you able to log out properly ?
I opened an issue about that here if you need more details


I’m sorry for my late response my bees take me a lot of time when spring comes.
Yes i confirm your error, usually i don’t care as i’m the only one administrator, and the other users are just for POS. on dolidroid, the android app, log out is done right, but from the pc and yunohost portal i do receive your error, i’m going to try some tests as soon as i possibly can either to verify the situation our maybe find a solution.
i’m not pro programmer but i manage around, i’ll see to it.
p.s. but i remember having that issue before changing anything.

1 Like

No worries, beekeeping is the priority !
And it is not a critical bug as logout is (unpractical but still) manageable : deleting cookies and loggging out from YNH usually does the trick.

Hello,

there is a project to add a config panel to the app dollibar very usefull for associations.

Does some of you may be interested to do some tests and give us feedbacks ??

:warning: WARNING

Be aware about security-wise with this code. Running yunohost user group add with arbitrary group means that dolibarr would be able to add any yunohost user as admin and therefore become root in like 2 commands. For now it need adding a significant security weakness.

  • This PR introduces the necessary logic/hooks to bridge Dolibarr’s membership events with YunoHost’s user system.
  • When a new member is added in Dolibarr with a valid subscription (adhĂ©sion Ă  jour), a corresponding YunoHost user is created using:

sudo yunohost user create USERNAME -F FULLNAME -p PASSWORD -d DOMAIN
sudo yunohost user update USERNAME --add-mailforward MAIL sudo yunohost user group add ADHERENTS USERNAME

If the membership ends, the user is removed from the group ADHERENTS.

If the user is deleted in Dolibarr, it runs:
sudo yunohost user delete USERNAME

Support for additional group management (e.g. COMMUNICATION) is also included:

Add user to communication group:

sudo yunohost user group add COMMUNICATION USERNAME

Remove user from communication group:
sudo yunohost user group remove COMMUNICATION USERNAME

Can be tested using :

yunohost app install https://github.com/Shervin-QZ/dolibarr_ynh/tree/testing_yunosync

yunohost app upgrade dolibarr -u https://github.com/Shervin-QZ/dolibarr_ynh/tree/testing_yunosync --debug