Regards.
I have porblems with the print tasks option, when clicked the button the pdf file is not generate and show only the primary data. In browser show error 500 and not register logs; but i have seen this error in oldest version. Really was solutioned this fail?

    campusvirtual

    You have an error being logged somewhere. Check your 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.

      KevinTheJedi In server logs, db logs and osticket logs any error was registered, in browser show error 500. But this is presented in all versions tested in .8, .11, .14, .17 ... i don't know if this error is associated with languages no english.

        campusvirtual

        Then your logging isn't configured/working correctly. 500 is a generic error that is indicative of a deeper issue that should be logged in one of your logs.

        Cheers.

          campusvirtual

          You’ll need to look at PHP documentation or guides online on how to configure error logging. This is outside the scope of the software itself.

          Cheers.

            10 days later

            KevinTheJedi Regards
            I have found how to set the php logs and this is the error:
            [12-Dec-2022 13:43:07 UTC] PHP Fatal error: Uncaught Error: Non-static method DynamicFormEntry::forTask() cannot be called statically in /var/www/html/include/staff/templates/task-print.tmpl.php:177
            Stack trace:
            #0 /var/www/html/include/class.pdf.php(129): include()
            #1 /var/www/html/include/class.pdf.php(119): Task2PDF->_print()
            #2 /var/www/html/include/class.task.php(1077): Task2PDF->__construct(Object(Task), Array)
            #3 /var/www/html/scp/tasks.php(230): Task->pdfExport(Array)
            #4 {main}
            thrown in /var/www/html/include/staff/templates/task-print.tmpl.php on line 177

              campusvirtual Hello, you can try to change line 177 in task-print.tmpl to
              foreach (DynamicFormEntry::forObject($task->getId(), ObjectModel::OBJECT_TYPE_TASK) as $form) {
              The same change must be done in /include/class.export.php, line 939. I'm not a php developer, but this change helped me.

                Write a Reply...