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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    missing main.inc.php in /app/data/ and how to solve the error

    Dolibarr
    2
    3
    190
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckow
      luckow translator last edited by

      A few modules for dolibarr need the main.inc.php in ../../../ from their installation directory (like customizeforms installed in /app/data/custom/customizeforms/admin).

      The error in the log is something like:
      [php7:error] [pid 149] [client 172.18.0.1:42180] PHP Fatal error: Uncaught Error: Call to undefined function restrictedArea() in /app/data/custom/customizeforms/list.php:32\nStack trace:\n#0 {main}\n thrown in /app/data/custom/customizeforms/list.php on line 32

      The solution is to set a symbolic link:
      /app/data# ln -s /app/code/htdocs/main.inc.php main.inc.php

      Maybe it's a good idea to add the symbolic link to the app package!?

      Pronouns: he/him | Primary language: German

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @luckow last edited by

        @luckow thanks for reporting the problem and the fix.

        I wonder if this a module bug though? Is the author of customizeforms reachable in some way?

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB