Project Module fail to create .odt documents after update to v. 19.0.0

After upgrade to v. 19 the Project Module cannot generate .odt documents. The error is HTTP 500 blank page.

The Invoice/Proposal/Orders are working without problems.

Is there anything I can do (I am not a programmer) or I must report a bug?

Hello,

Error 500 means PHP, what does your hosting logs said ?

Not sure how to check logs :roll_eyes:

Dolibarr is installed via cPanel / Softaculous

30s on google :

Thank you! Maybe it is easier for native English speaker or programmer.
Lamers like me asks in forum :slight_smile:

The error log is empty.

I have some progress in the issue: template_project.odt do not produce http 500 error, maybe some of its content is required to be implemented in custom .odt-s to work?!

Blank custom .odt with single {myuser_firstname} also produces the same error, so maybe there is an element in template_project.odt which will resolve the problem if included?

Found a solution:

[!-- BEGIN tasks --][!-- END tasks --]

must be added to .odt template.

Versions <19 required only:
[!-- BEGIN projectcontacts --][!-- END projectcontacts --]
[!-- BEGIN projectfiles --][!-- END projectfiles --]
[!-- BEGIN projectrefs --][!-- END projectrefs --]

Dolibarr 19 requires in addition:
[!-- BEGIN tasks --][!-- END tasks --]

1 Like

Hi,
i have the same problem with the thirdparty module since i move from 18.0.5 to 19.0.1
I can make ODT document in invoice, project, proposal
But when i am on the Thirdparty, i cannot generate an ODT document : i have a white screen or in Chrome an HTTP ERROR 500.
I try to add the [!-- BEGIN xxx --] field but i don’t know what to put instead of xxx.
Can you help me?
Regards,
Jean-Michel

Hi, I receive an answer in the French Forum from the user KSAR
I add in my document the line :
[!-- BEGIN companycontacts --] [!-- END companycontacts --]

And the document is well generated.

For 19.0.1 the following MUST be used always in STANDALONE TABLE:

#row1
[!-- BEGIN row.projectcontacts --][!-- END row.projectcontacts --]
#row2
[!-- BEGIN row.projectfiles --][!-- END row.projectfiles --]
#row3
[!-- BEGIN row.tasks --][!-- BEGIN tasksressources --][!-- END tasksressources --][!-- BEGIN taskstimes --][!-- END taskstimes --][!-- BEGIN tasksfiles --][!-- END tasksfiles --][!-- END row.tasks --]