CoreBOSBB
gendoc + workflow email - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: gendoc + workflow email (/showthread.php?tid=2123)

Pages: 1 2 3


RE: gendoc + workflow email - joebordes - 03-12-2021

I just tried the change on a server with unoconv installed and it detected the install correctly. login to your server and execute this command

which unoconv > /dev/null; echo $?

tell me what it returns

you could try changing this line: https://github.com/tsolucio/corebos/blob/master/modules/evvtgendoc/OpenDocument.php#L2822

to

$rdo = shell_exec('/usr/bin/which unoconv > /dev/null; echo $?');


RE: gendoc + workflow email - jmery24 - 03-16-2021

(03-12-2021, 10:45 PM)joebordes Wrote: I just tried the change on a server with unoconv installed and it detected the install correctly. login to your server and execute this command

which unoconv > /dev/null; echo $?

tell me what it returns

you could try changing this line:  https://github.com/tsolucio/corebos/blob/master/modules/evvtgendoc/OpenDocument.php#L2822

to

$rdo = shell_exec('/usr/bin/which unoconv > /dev/null; echo $?');

Hi Joe, thanks
Return 0


RE: gendoc + workflow email - joebordes - 03-16-2021

then unoconv is not installed

what happens if you execute unoconv on the command line?

or maybe "which" is not working, what happens if you execute "which" alone?

how did you install unoconv?


RE: gendoc + workflow email - jmery24 - 03-16-2021

(03-16-2021, 09:44 AM)joebordes Wrote: then unoconv is not installed

what happens if you execute unoconv on the command line?

or maybe "which" is not working, what happens if you execute "which" alone?

how did you install unoconv?

Hi Joe, I have the UNOCONV installed. Now restart the server.

And when I execute the command you gave me, it returns: 255

install it as the gendoc corebos doc says

apt update
apt-get install libreoffice-core unoconv
unoconv --listener &


RE: gendoc + workflow email - joebordes - 03-16-2021

what happens if you execute this command

which unoconv > /dev/null; echo $?

?


RE: gendoc + workflow email - jmery24 - 03-16-2021

(03-16-2021, 09:44 AM)joebordes Wrote: then unoconv is not installed

what happens if you execute unoconv on the command line?

or maybe "which" is not working, what happens if you execute "which" alone?

how did you install unoconv?

return exactly this

unoconv: you have to provide a filename or url as argument

Try `unoconv -h' for more information.
255


RE: gendoc + workflow email - joebordes - 03-16-2021

no, it can't return that, please run this command


Code:
which unoconv > /dev/null; echo $?



RE: gendoc + workflow email - jmery24 - 03-18-2021

(03-16-2021, 03:58 PM)joebordes Wrote: what happens if you execute this command

which unoconv > /dev/null; echo $?

?

Joe

root@barotema:~# which unoconv > /dev/null; echo $?

0

Confused


RE: gendoc + workflow email - joebordes - 03-18-2021

that is correct, it should be detecting that you have unoconv installed. Please try debugging it.


- activate debug log (include/logging/config.php) enable background log, level=FATAL
- add this line before line 41 in the workflow email task:

https://github.com/tsolucio/corebos/blob/master/modules/com_vtiger_workflow/tasks/VTEmailTask.inc#L41


PHP Code:
global $logbg$logbg->fatal([($GenDocActive 'T':'F'), (OpenDocument::PDFConversionActive() ? 'T':'F')]); 


- execute the workflow and share the logs/background-date.log file here


RE: gendoc + workflow email - jmery24 - 03-18-2021

(03-18-2021, 07:42 PM)joebordes Wrote: that is correct, it should be detecting that you have unoconv installed. Please try debugging it.


- activate debug log (include/logging/config.php) enable background log, level=FATAL
- add this line before line 41 in the workflow email task:

https://github.com/tsolucio/corebos/blob/master/modules/com_vtiger_workflow/tasks/VTEmailTask.inc#L41



PHP Code:
global $logbg$logbg->fatal([($GenDocActive 'T':'F'), (OpenDocument::PDFConversionActive() ? 'T':'F')]); 


- execute the workflow and share the logs/background-date.log file here

as I told you in the other post, everything solved.

I only noticed one detail.
When the invoice is sent manually, it is perfect.
When sent by the task flow, the grid / table, of products / services, it looks bad. You see the variables and not the conversion