Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

Dolibarr

28 Topics 215 Posts
  • Dolibarr - Package Updates

    Pinned
    52
    0 Votes
    52 Posts
    8k Views
    Package UpdatesP
    [1.11.1] Code tidying up Sync ldap users every hour
  • custom folder for modules not working properly

    2
    3
    0 Votes
    2 Posts
    53 Views
    jamesJ
    Hello @Crush33 With apps that allow plugins or extensions, it is almost impossible to test and verify everything that is out there. It is the developer's responsibility to provide extensions that work. For the future, please don't use screenshots for code. I can't copy-paste some of the PHP code for testing since it is a picture. I was able to get the code via OCR and put it into /app/data/custom/this.php <?php //phpinfo(); //var_dump($_SERVER["CONTEXT_DOCUMENT_ROOT"]); // Load Dolibarr environment $res = 0; // Try main.inc.php into web root known defined into CONTEXT_DOCUMENT_ROOT (not always defined) if (!$res && !empty($_SERVER["CONTEXT_DOCUMENT_ROOT"])) { $res = @include $_SERVER["CONTEXT_DOCUMENT_ROOT"]."/main.inc.php"; } // Try main.inc.php into web root detected using web root calculated from SCRIPT_FILENAME $tmp = empty($_SERVER['SCRIPT_FILENAME']) ? : $_SERVER['SCRIPT_FILENAME']; $tmp2 = realpath(__FILE__); $i = strlen($tmp) - 1; $j= strlen($tmp2) - 1; while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) { $i --; $j --; } if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i+1)) ."/main.inc.php")) { $res = @include substr($tmp, 0, ($i +1)) ."/main.inc.php"; } if (!$res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i+1))) ."/main.inc.php")) { $res = @include dirname(substr($tmp, 0, ($i+1)))."/main.inc.php"; } // Try main.inc.php using relative path if (!$res && file_exists(" .. /main.inc.php")) { $res = @include " .. /main.inc.php"; } if (!$res && file_exists(" .. / .. /main.inc.php")) { $res = @include " .. / .. /main.inc.php"; } if (!$res && file_exists(" .. / .. / .. /main.inc.php")) { $res = @include " .. / .. / .. /main.inc.php"; } if (!$res) { die("Include of main fails"); } When I access this file with the browser path $DOMAIN/custom/this.php I get: [image: 1750748868980-cf420bdc-1153-417c-a6a4-0099ac6086f4-image-resized.png] Simply testing: <?php //phpinfo(); var_dump($_SERVER["CONTEXT_DOCUMENT_ROOT"]); This shows: string(16) "/app/code/htdocs" And with this as path to main.inc.php is working.
  • Broken Link

    Solved
    2
    2 Votes
    2 Posts
    132 Views
    girishG
    Fixed, thanks for reporting
  • Dolibarr OIDC

    Solved
    11
    3 Votes
    11 Posts
    589 Views
    C
    I see the latest Cloudron Dolibarr update supports OIDC! Thanks! This is awesome. It was my last app to not support OIDC login.
  • Adding a custom theme

    7
    1 Votes
    7 Posts
    596 Views
    nebulonN
    Do you have any update on this @ruihildt ? We have pending MR which may or may not fix the issue, but we require your input here.
  • Dolibarr Permission

    2
    2
    0 Votes
    2 Posts
    321 Views
    nebulonN
    Hi, this seems to be more of a question how to use Dolibarr, not so much about the Cloudron package for Dolibarr. Maybe someone here can help out, but I think it is better to ask the upstream project itself https://www.dolibarr.org/
  • Persistent security warnings

    Solved
    8
    1
    1 Votes
    8 Posts
    2k Views
    girishG
    This should be fixed in the latest package.
  • 1 Votes
    2 Posts
    438 Views
    nebulonN
    That seems to be question very specific on how to use the app itself. Maybe the dolibarr community forums are the better place to ask this: https://www.dolibarr.org/forum.php
  • Adding new local users

    Solved
    5
    0 Votes
    5 Posts
    994 Views
    brianbB
    @ccfu How do you disable the LDAP module?
  • Seeking Help with Dolibarr Core Template Implementation

    2
    0 Votes
    2 Posts
    482 Views
    zaphiriosZ
    Ok, I used LAMP stack and it works. Once I had my LAMP stack set up, I proceeded with the migration process. Here's a detailed breakdown of the steps I followed to ensure a smooth transition: Database Backup: The first step involved creating a backup of the SQL database from the old server. This is crucial to ensure that all data is securely transferred without any loss. Copying Data: Next, I archived the dolibarrdata directory into a .tar.gz file. I did the same for the /modules directory located in the core. This step is essential to retain all the configurations and customizations. Preparing the LAMP Container: In the root directory of the LAMP container (specifically in /data), I created an /import directory. This was done to facilitate the import of the previously backed-up data. Importing the Database: Before installing Dolibarr, I imported the database into the LAMP stack. It's important to do this step prior to the installation to ensure the new setup recognizes all your existing data. Cloning Dolibarr: I used Git to clone the 18.0 branch of Dolibarr. While doing this, I made sure to use the option for a single branch and a depth of 1 to avoid downloading unnecessary data. Dolibarr Installation: With the database in place and the Dolibarr code ready, I proceeded with the installation. It's critical to use the LAMP credentials provided during this step. Note that the database is in MySQL and not in localhost. Also, ensure that Dolibarr points to the imported dolibarrdata. Final Adjustments: The last step involved adjusting the path since Dolibarr was now at the root instead of in the htdocs directory. This is an important modification to ensure that Dolibarr functions correctly in its new environment. By following these steps, I successfully migrated Dolibarr to a more flexible setup using a LAMP stack. This approach might seem a bit complex, but it offers greater control and customization options, which were lacking in the standard Cloudron setup. Hope this detailed walkthrough helps anyone facing similar challenges. Feel free to ask if you have any questions or need further clarifications.
  • Dolibarr default username and password not working

    Solved
    7
    1 Votes
    7 Posts
    4k Views
    O
    @girish By following your procedure it works! I didn't know it was possible to change the memory allocation to the mysql database in the services. Sorry I didn't think of it. By doing so, the installation was much faster and worked first time. At least now I understand Cloudron's added value even better Thanks for your time
  • wrong path for custom modules

    Solved
    5
    1 Votes
    5 Posts
    1k Views
    O
    Hello @luckow. I have an issue with two modules I want to use with dolibarr. The problem is that I can add the modules to the "custom" folder in Cloudron, but I cannot make any modifications. I can not install them either by the tab "add external modules" since Dolibarr shows an error that it can't write in the folder "/app/code/htdocs/custom", which is normal, since the folder does not exist. By looking through the forum I found your post. Since I'm not a programmer I do not know what your solution means and if can I do a modification that would let me use the modules correctly or does that have to be done by the developers of the modules. If you could help me out here that would be great. Best regards, Bob
  • Somes modules/plugins require an URL'ish/to edit the reverse proxy

    16
    0 Votes
    16 Posts
    3k Views
    nebulonN
    @JOduMonT thanks that you bring this up again. The multiDomain can easily be added, I am just wondering how I can test that it works. I don't have much clue about how to use dolibarr to be honest.
  • Dolibarr : app is currently not responding

    Solved
    14
    0 Votes
    14 Posts
    3k Views
    nebulonN
    This should be resolved with the latest version.
  • Manually change PHP templates in Docker container

    6
    0 Votes
    6 Posts
    1k Views
    O
    @girish Basically these are php files that make use of db variables and properties defined in the GUI. However, to make (in my opinion essential) customizations, I need to edit these templates. These changes however are mostly to optimize the user experience. For me they dont need to be editable during runtime. If i could make the changes persist in recovery mode and the restart the app with the adapted files in readonly, that would be perfect. Best
  • Dolibarr is unable to encrypt the database password as recommended

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    nebulonN
    @JOduMonT thanks for the info and research. The encrypted password handling in dolibarr as described does not make too much sense for us, since the password might change during package update, depending on the database addon thus it always have to be fetched freshly. Further it will always be present in the app's environment as injected into the container. For phpinfo() I am not sure how this is an attack angle, since if one is able to inject php code to run phpinfo() the attacker might as well just simply dump the env variables manually.
  • Dolibarr automatic mail not working

    Moved
    2
    0 Votes
    2 Posts
    692 Views
    girishG
    @opensourced See this comment https://github.com/Dolibarr/dolibarr/issues/10513#issuecomment-461084740 There is a field in Configuration > Modules/Applications > Members > Email .
  • Dolibarr the PHP beast - Problems with module installation

    6
    0 Votes
    6 Posts
    1k Views
    girishG
    Started a new thread here - https://forum.cloudron.io/topic/6424/deploying-apps-that-treat-code-as-data
  • 0 Votes
    9 Posts
    2k Views
    nebulonN
    @privsec I enabled all modules you were showing in the screenshots but I cannot reproduce the log file issue. Is there anything else you configured? Also can you check via the webterminal what the permissions of the log file in question are?
  • missing main.inc.php in /app/data/ and how to solve the error

    3
    1 Votes
    3 Posts
    787 Views
    girishG
    Per https://www.dolistore.com/en/modules/1133-CustomizeForms.html, we have to email paulorcdo@gmail.com . @luckow can you check with them ?