500 Error When Rejecting or Approving Documents
PHP Fatal error: Uncaught Error: Call to a member function getWorkflow() on null in /var/www/html/dms/inc/inc.ClassNotificationService.php:1296\nStack trace:\n#0 /var/www/html/dms/op/op.TriggerWorkflow.php(94): SeedDMS_NotificationService->sendTriggerWorkflowTransitionMail(Object(SeedDMS_Core_DocumentContent), Object(SeedDMS_Core_User), NULL)\n#1 {main}\n thrown in /var/www/html/dms/inc/inc.ClassNotificationService.php on line 1296, referer: https://[platformname]/dms/out/out.TriggerWorkflow.php?documentid=52&version=3&transition=37
Created a simple workflow
Updated -> Under Review -> Approve Or Rejected.
Once a document is approved or rejected, i will get a 500 error page with the error above.
From what i looked at in the code, line 84 of op/op.TriggerWorkflow.php below will send FALSE if $wkflog[0] doesnt exist which doenst once a workflow has been updated. Once a document is reviewed and going to the next step where a document will be rejected or aprroved, i will get the 500 error above.
$notifier->sendTriggerWorkflowTransitionMail($version, $user, $wkflog ? $wkflog[0] : false);
We are having the same issue as we deployed the 6.0.17 version on Cent OS 7
when we execute a simple workflow it shows same 500 error on exit and still completes the workflow, relising the document but coment s page is skipped.
Please do share solution.
==> /var/log/httpd/ssl_error_log <==
[Fri Jan 28 16:36:25.793379 2022] [php7:notice] [pid 61912] [client 172.2.0.1:32862] PHP Notice: Undefined variable: ret in /var/www/html/seeddms/pear/SeedDMS/Core/inc.ClassDocument.php on line 3500, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
[Fri Jan 28 16:36:25.793470 2022] [php7:notice] [pid 61912] [client 172.2.0.1:32862] PHP Notice: Undefined variable: ret in /var/www/html/seeddms/pear/SeedDMS/Core/inc.ClassDocument.php on line 3500, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
[Fri Jan 28 16:36:25.795618 2022] [php7:notice] [pid 61912] [client 172.2.0.1:32862] PHP Notice: Undefined property: SeedDMS_Core_DocumentContent::$_workflow in /var/www/html/seeddms/pear/SeedDMS/Core/inc.ClassDocument.php on line 6901, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
[Fri Jan 28 16:36:25.796294 2022] [php7:notice] [pid 61912] [client 172.2.0.1:32862] PHP Notice: Undefined property: SeedDMS_Core_DocumentContent::$_workflow in /var/www/html/seeddms/pear/SeedDMS/Core/inc.ClassDocument.php on line 6909, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
[Fri Jan 28 16:36:25.801888 2022] [php7:notice] [pid 61912] [client 172.2.0.1:32862] PHP Notice: Undefined property: SeedDMS_Core_DocumentContent::$_workflow in /var/www/html/seeddms/pear/SeedDMS/Core/inc.ClassDocument.php on line 6921, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
[Fri Jan 28 16:36:25.801967 2022] [php7:notice] [pid 61912] [client 172.2.0.1:32862] PHP Notice: Undefined offset: 0 in /var/www/html/seeddms/seeddms-6.0.17.1/op/op.TriggerWorkflow.php on line 84, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
[Fri Jan 28 16:36:25.802082 2022] [php7:error] [pid 61912] [client 172.2.0.1:32862] PHP Fatal error: Uncaught Error: Call to a member function getWorkflow() on null in /var/www/html/seeddms/seeddms-6.0.17.1/inc/inc.ClassNotificationService.php:1295\nStack trace:\n#0 /var/www/html/seeddms/seeddms-6.0.17.1/op/op.TriggerWorkflow.php(84): SeedDMS_NotificationService->sendTriggerWorkflowTransitionMail()\n#1 {main}\n thrown in /var/www/html/seeddms/seeddms-6.0.17.1/inc/inc.ClassNotificationService.php on line 1295, referer: https://172.2.0.103/seeddms/seeddms-6.0.17.1/out/out.TriggerWorkflow.php?documentid=1&version=1&transition=14
==> /var/log/httpd/ssl_access_log <==
172.2.0.1 - - [28/Jan/2022:16:36:25 +0500] "POST /seeddms/seeddms-6.0.17.1/op/op.TriggerWorkflow.php HTTP/1.1" 500 -
==> /var/log/httpd/ssl_request_log <==
[28/Jan/2022:16:36:25 +0500] 172.2.0.1 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /seeddms/seeddms-6.0.17.1/op/op.TriggerWorkflow.php HTTP/1.1" -
We have installed Seeddms on Centos 7 with PHP 7.4.27 and there are no missing workflows but as we complete the workflow it gives followin error on last action
Please share a response .....
I'll look into it, but I'm currently too busy with other stuff
Here is a fix. Replace
with
in op/op.TriggerWorkflow.php
Applied the fix but same result
Does this happen for any page?
when a workflow ends a white page appears and if we inspect the page the error is shown
For me, this happens when a workflow ends (approve or reject document). If i go back to the document, i can see that the document is approved/rejected.
Dear Yusree the is our case. we applied the fix but did not resolve.
Dear Yusree the is our case. we applied the fix but did not resolve.