Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gendoc + workflow email
#11
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 $?');
Joe
TSolucio
Reply
#12
(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
Reply
#13
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?
Joe
TSolucio
Reply
#14
(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 &
Reply
#15
what happens if you execute this command

which unoconv > /dev/null; echo $?

?
Joe
TSolucio
Reply
#16
(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
Reply
#17
no, it can't return that, please run this command


Code:
which unoconv > /dev/null; echo $?
Joe
TSolucio
Reply
#18
(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
Reply
#19
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
Joe
TSolucio
Reply
#20
(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
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)