Since our upgrade to 1.18.1 when we paste a screenshot it only shows a blank space without the image When pasting the image there is a loading screen and something gets pastes but its just empty.
STW_Faser
You will need to check all logs (general server logs, webserver error logs, PHP error logs, MySQL/MariaDB error logs, osTicket System Logs, Browser Console logs, etc.) for any related errors.
Cheers.
I searched the logs but cant seem to find any relating errors (not a expert in this field though) I tested around some more and its not like the picture isnt there. The file gets corrupted. Can someone point me to where look next like what i responsible for the file upload?
Unfortunately there are so many different things that could be happening here. We will basically get nowhere until you locate an actual error or something.
I finally got something in the php logs:
[06-Jun-2024 08:21:01 Europe/Belgrade] PHP Notice: PHP Request Startup: file created in the system's temporary directory in Unknown on line 0 [06-Jun-2024 08:21:01 Europe/Belgrade] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 [06-Jun-2024 06:21:03 UTC] PHP Fatal error: Uncaught ValueError: Path cannot be empty in C:\sites\it-support\include\ajax.draft.php:71 Stack trace: #0 C:\sites\it-support\include\ajax.draft.php(71): fopen() #1 C:\sites\it-support\include\ajax.draft.php(305): DraftAjaxAPI::uploadInlineImage() #2 C:\sites\it-support\include\class.dispatcher.php(153): DraftAjaxAPI->uploadInlineImage() #3 C:\sites\it-support\include\class.dispatcher.php(40): UrlMatcher->dispatch() #4 C:\sites\it-support\include\class.dispatcher.php(119): Dispatcher->resolve() #5 C:\sites\it-support\include\class.dispatcher.php(40): UrlMatcher->dispatch() #6 C:\sites\it-support\scp\ajax.php(327): Dispatcher->resolve() #7 {main} thrown in C:\sites\it-support\include\ajax.draft.php on line 71 [06-Jun-2024 08:22:23 Europe/Belgrade] PHP Notice: PHP Request Startup: file created in the system's temporary directory in Unknown on line 0 [06-Jun-2024 08:22:23 Europe/Belgrade] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 [06-Jun-2024 06:22:24 UTC] PHP Fatal error: Uncaught ValueError: Path cannot be empty in C:\sites\it-support\include\ajax.draft.php:71 Stack trace: #0 C:\sites\it-support\include\ajax.draft.php(71): fopen() #1 C:\sites\it-support\include\ajax.draft.php(305): DraftAjaxAPI::uploadInlineImage() #2 C:\sites\it-support\include\ajax.draft.php(320): DraftAjaxAPI->uploadInlineImage() #3 C:\sites\it-support\include\class.dispatcher.php(153): DraftAjaxAPI->uploadInlineImageEarly() #4 C:\sites\it-support\include\class.dispatcher.php(40): UrlMatcher->dispatch() #5 C:\sites\it-support\include\class.dispatcher.php(119): Dispatcher->resolve() #6 C:\sites\it-support\include\class.dispatcher.php(40): UrlMatcher->dispatch() #7 C:\sites\it-support\scp\ajax.php(327): Dispatcher->resolve() #8 {main} thrown in C:\sites\it-support\include\ajax.draft.php on line 71
Got it working again. Had to change the "upload_tmp_dir" (was on default) and give rights to IIS_IUSRS.