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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Dolibarr
  3. missing main.inc.php in /app/data/ and how to solve the error

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

Scheduled Pinned Locked Moved Dolibarr
3 Posts 2 Posters 756 Views 2 Watching
  • 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.
  • luckowL Online
    luckowL Online
    luckow
    translator
    wrote on last edited by
    #1

    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

    girishG 1 Reply Last reply
    1
    • luckowL luckow

      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!?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        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
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search