You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a trigger that create an instance of CMailFile. The trigger is for TICKET_CREATE. This appears to happen when the trigger occurs during an API call to create a ticket.
I was able to get past the bug by adding the following lines in the 'CMailFile::findHtmlImagesIsSrcData' function BEFORE it attempts to call 'dol_is_dir'.
if (! function_exists('dol_is_dir')) {
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
}
Dolibarr Version
18.0
Environment PHP
PHP 7.x
Environment Database
10.11.3-MariaDB-1 - Debian 12
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered:
It seems odd that the "htdocs/core/lib/functions.lib.php" uses function from "files.lib.php" but does not appear to include/require the library at the top of the file.
Bug
I have a trigger that create an instance of CMailFile. The trigger is for TICKET_CREATE. This appears to happen when the trigger occurs during an API call to create a ticket.
I was able to get past the bug by adding the following lines in the 'CMailFile::findHtmlImagesIsSrcData' function BEFORE it attempts to call 'dol_is_dir'.
Dolibarr Version
18.0
Environment PHP
PHP 7.x
Environment Database
10.11.3-MariaDB-1 - Debian 12
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: