hi, i have installed a dolibarr on my webserver.
i have configured all and already functions ok.
but i have a problem with a modify template…
i do this:
- create a “preventivi.odt”
- upload to “dolibarr/documents/doctemplates/proposals”
- turn on into the module
- create a proposal and i click “Generate” with “preventivi.odt”
return this error
Dolibarr ha rilevato un errore tecnico.
Si tratta di informazioni utili alla diagnostica:
Data: 20130308210125
Dolibarr: 3.3.0
Livello di funzionalità: 0
PHP: 5.3.16
Server: Apache/2.4
URL richiesto: /dolibarr/htdocs/comm/propal.php?socid=1
Referer: www.miosito.it/dolibarr/htdocs/comm/addp…=1&action=create
Menu manager:
Gestore del tipo di database: mysql
Richiesta dell’ultimo accesso al database in errore: Nessuna richiesta in errore
Codice di ritorno per ultimo accesso al database in errore: Nessuna richiesta in errore
Informazioni sull’ultimo accesso errato al database: Nessuna richiesta in errore
Message: propal_pdf_create Error: ‘lines’ segment not found in the document
Warning: Cannot modify header information - headers already sent by (output started at /users/ab-tech/www/abtech/dolibarr/htdocs/core/lib/functions.lib.php:2171) in /users/ab-tech/www/abtech/dolibarr/htdocs/comm/propal.php on line 379
The last error message says more that :
Are you sure that your user that run the webserver is allow to read the content of directory abtech/dbp/documents/doctemplates/proposals/template_proposal.odt
The first error “Message: propal_pdf_create Error: ‘lines’ segment not found in the document” is link with :
I’ve just work on ODT subject, and I see there can be problem about rigth files, and “style” into ODT tags. Be sure all tags are clear from style (select all text [!-- BEGIN lines --]{lines_…}…[!-- END lines --] and CTRL+M on Libre Office)
And ODT document is just a zip file and inside the is a content.xml. The content.xml file is the decription of the contant of your file. Try to have a llok in this file and if [!-- * lines --] are not in one block it will not work. For example if you see that [!-- * lines <p:text style=A51>–</p:text>] it’s bad. Remove all style on this ODT dolibarr Tag.
Also take care with LibreOffice, the last --] is transform auto in (long)"-"].
ok, thank you.
i resolve it…
but i use this method:
- new spreadsheet in libreoffice
- create a template with correct tag
- save it with .odt extension
- upload on webserver
is possibile create a “writer” document with this method?
I have a problem with letter “Š” in ODT template, but not always. If I write a product destription manualy to the Proposal/order/invoice it is OK. But If I add a product which already has a “Š” in description, then the letter “Š” becomes “š” when I want to print that .ODT invoice. In .PDF template is OK.