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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

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

Scheduled Pinned Locked Moved Dolibarr
3 Posts 2 Posters 222 Views
    • 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 Offline
    luckowL Offline
    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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to luckow 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

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.