missing main.inc.php in /app/data/ and how to solve the error
-
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!?
-
Per https://www.dolistore.com/en/modules/1133-CustomizeForms.html, we have to email paulorcdo@gmail.com . @luckow can you check with them ?