Hi Louis, On Sun, Feb 11, 2018 at 6:26 AM, Louis <lbmlist@hethcote.com> wrote:
So I'm trying to get 1.5.16 running after converting from 1.4.x. When I go to print invoices, I get a popup reading:
------------------------------------------------------- 'file error - letterhead.tex: not found'
dbversion: 1.5.16, company: Hethcote Antiquarian
Status: 500 Internal server error (PSGI.pm) -------------------------------------------------------
You're likely running into the template changes described in https://ledgersmb.org/content/150-released (Section: Template changes). In summary, your code has a statement "INCLUDE letterhead.tex". In 1.5, this should be replaced with "INCLUDE letterhead". 1.5 searches the database for the templates -- it doesn't look on disc. When searching the database, it searches for the filename named after the INCLUDE statement (in your case: "letterhead.tex" -- which it can't find); it appends the extension based on the extension of the file it's currently processing (which in your case is ".tex" as you're processing "invoice.tex").
I'm running under starman, and I'm discovering I don't know where to look for logs, so I could use help with
(1) where is ledgersmb looking for letterhead.tex?
I have letterhead.tex files in /usr/local/ledgersmb/templates/Hethcote/letterhead.tex /usr/local/ledgersmb/templates/Hethcote/letterhead.tex-orig /usr/local/ledgersmb/templates/demo/letterhead.tex /usr/local/ledgersmb/templates/demo_with_images/letterhead.tex /usr/local/ledgersmb/templates/xedemo/letterhead.tex
Yup. It's looking in the database (file templates tables); not looking at any of the above.
(2) where is ledgersmb/starman logging, and/or how do I configure same?
Depends on what type of system you're running your starman: under systemd, you best look at journald/journalctl. If you provided an "--error-log" argument, then that's where you can expect the logs to go. On Docker, you best look at "docker logs". On other systems I'm not sure where the logs go: they're sent to STDERR by default, but our log output has become a lot more quiet since 1.5 (loads of warnings fixes now make Starman a bit too silent IMO...)
Any assistance would be appreciated.
Hope that helps! -- Bye, Erik. http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.