Undefined constant "C_CARTELLA_DOC"

Post here if you think you have found a bug in hoteldruid or error in its documentation.

Moderator: marco

Post Reply
BadBone2k
Posts: 4
Joined: Sun Sep 11, 2016 7:08 pm

Undefined constant "C_CARTELLA_DOC"

Post by BadBone2k »

Hello everyone. In Hoteldruid 3.0.3 and 3.0.4 (on Ubuntu 22.04) there is an error on viewing and creating documents. /var/log/apache2/error.log says:

Code: Select all

PHP Fatal error:  Uncaught Error: Undefined constant "C_CARTELLA_DOC" in /usr/share/hoteldruid/modifica_contratto.php:133\nStack trace:\n#0 {main}\n  thrown in /usr/share/hoteldruid/modifica_contratto.php on line 133
I added the following line to /usr/share/hoteldruid/costanti.php to fix the problem:

Code: Select all

define('C_CARTELLA_DOC',"");
Maybe this can be fixed in the future.

Post Reply