Page 1 of 1

PMFSendMessage throwing error

Posted: Sat Jan 09, 2021 1:03 pm
by mohash
Hi All,
I got error when try to send email using PMFSendMessage in a script task.
The error are as below;

Uncaught TypeError: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /opt/processmaker/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 62 and defined in /opt/processmaker/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:120
Stack trace:
#0 /opt/processmaker/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php(62): Illuminate\Routing\UrlGenerator->__construct(Object(Illuminate\Routing\RouteCollection), NULL, NULL)

#1 /opt/processmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): Illuminate\Routing\RoutingServiceProvider->Illuminate\Routing\{closure}(Object(App\Foundation\Application), Array)

#2 /opt/processmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php(658): Illuminate\Container\Container->build(Object(Closure))

#3 /opt/processmaker/vendor/laravel/framework/src/...cd vendorcd called in /opt/processmaker/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 62 and defined in /opt/processmaker/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:120

I am using version 3.5.7 and have no idea about the error.
Could you please help.
Thank you

Re: PMFSendMessage throwing error

Posted: Sun Jan 10, 2021 9:40 pm
by kirkwg
Hi,

It may be easier for troubleshooting if you could include your script or PMFSendMessage parameters to check with, as it's hard to just look at any error message?

Re: PMFSendMessage throwing error

Posted: Sun Jan 10, 2021 10:08 pm
by mohash
Hi,
The code is rather simple;

PMFSendMessage(@@APPLICATION,
'agent@example.com',
'insurance@example.com',
'',
'',
'Insurance claim',
'insurance_claim.html');

By the way I am running on Centos 7

Re: PMFSendMessage throwing error

Posted: Sun Jan 10, 2021 11:14 pm
by kirkwg
Thanks and agreed that the script seems all right.... I have no idea what is the cause too, sorry!

Re: PMFSendMessage throwing error

Posted: Thu May 13, 2021 5:45 pm
by Kamil123
Hello,
Did you solve this issue?
what was wrong?
Thanks