Author Topic: ki_invoice template issue after upgrade to 0.9.3.1384 (from 0.9.3 beta)  (Read 753 times)

raketa

  • Kimai Member
  • *
  • Posts: 17
    • View Profile
Trying to generate an invoice with my .odt template now yields to:
Code: [Select]
PHP Fatal error:  Uncaught exception 'tinyDocException' with message 'the PHP global variable named 'projectComment' does not exist or is not set yet.' in /var/www/kimai.[mydomain]/libraries/TinyButStrong/tinyDoc.class.php:1006\nStack trace:\n#0 /var/www/kimai.[mydomain]/libraries/TinyButStrong/tinyButStrong.class.php(1870): tinyDoc->meth_Misc_Alert(Object(clsTbsLocator), 'the PHP global ...', true)\n#1 /var/www/kimai.[mydomain]/libraries/TinyButStrong/tinyButStrong.class.php(669): clsTinyButStrong->meth_Merge_AutoVar('<?xml version="...', true)\n#2 /var/www/kimai.[mydomain]/libraries/TinyButStrong/tinyDoc.class.php(269): clsTinyButStrong->Show(0)\n#3 /var/www/kimai.[mydomain]/libraries/Kimai/Invoice/OdtRenderer.php(88): tinyDoc->saveXml()\n#4 /var/www/kimai.[mydomain]/extensions/ki_invoice/print.php(186): Kimai_Invoice_OdtRenderer->render()\n#5 {main}\n  thrown in /var/www/kimai.[mydomain]/libraries/TinyButStrong/tinyDoc.class.php on line 1006, referer: https://kimai.[mydomain]/core/kimai.php

Its probably something wrong with my .odt template, but I don't know what to check for...

Thanks for any hints!
Cheers,
Raketa

raketa

  • Kimai Member
  • *
  • Posts: 17
    • View Profile
thanks to the countless helpful replies I found out that this is caused by a recent change for multi-project invoice generation and a duplicate (including the solution) of
https://github.com/kimai/kimai/issues/488