Générer documents (facture note de frais...)
Re:Générer documents (facture note de frais...)
et bien c\'est pas gagné... [file name=phpinfo__.zip size=17521]http://www.phpcompta.be/images/fbfiles/ ... info__.zip[/file]
Re:Générer documents (facture note de frais...)
presque
Il fallait faire \"sauver sous\" et choisir le format HTML : je n\'ai pas safari et je ne peux pas lire les .webarchive
Il fallait faire \"sauver sous\" et choisir le format HTML : je n\'ai pas safari et je ne peux pas lire les .webarchive
Re:Générer documents (facture note de frais...)
et bien quelle patience...
bravo et merci [file name=phpinfo-e5372c611b4034cf24b370ae2197383a.zip size=10828]http://www.phpcompta.be/images/fbfiles/ ... 97383a.zip[/file]
bravo et merci [file name=phpinfo-e5372c611b4034cf24b370ae2197383a.zip size=10828]http://www.phpcompta.be/images/fbfiles/ ... 97383a.zip[/file]
Re:Générer documents (facture note de frais...)
Voilà on y arrive
Plusieurs choses à faire :
1. As-tu le programme zip dans le path ? (donc dans /usr/bin )
2. Ajouter dans les fichiers phpcompta/html/.htaccess et phpcompta/include/.htaccess ceci
3. Recommencer l\'opération et vérifier dans /Applications/MAMP/logs/php_error.log s\'il y a des erreurs
Je remarque aussi qu\'il manque la variable d\'environnement, pourrais-tu regarder dans phpcompta/include/config.inc.php quelle est sa valeur ? Ce répertoire existe et est bien en écriture pour tout le monde ?
Plusieurs choses à faire :
1. As-tu le programme zip dans le path ? (donc dans /usr/bin )
2. Ajouter dans les fichiers phpcompta/html/.htaccess et phpcompta/include/.htaccess ceci
Code : Tout sélectionner
php_flag display_errors on
php_flag log_errors on
Je remarque aussi qu\'il manque la variable d\'environnement, pourrais-tu regarder dans phpcompta/include/config.inc.php quelle est sa valeur ? Ce répertoire existe et est bien en écriture pour tout le monde ?
Code : Tout sélectionner
$_ENV[\'TMP\']
Re:Générer documents (facture note de frais...)
Bonjour,
Pour le programme zip je ne l\'ai pas dans usr/bin
j\'ai effectué les modifications et j\'obtiens maintenant suite à ma fenètre de validation :
Warning: mkdir() [function.mkdir]: No such file or directory in /Applications/MAMP/htdocs/phpcompta/include/class_document.php on line 151
Warning: rename(/private/tmp/doc_wCkg9v/facture1.rtf,/Applications/MAMP/htdocs/private/tmp/doc_wCkg9v/facture1.rtf) [function.rename]: No such file or directory in /Applications/MAMP/htdocs/phpcompta/include/class_document.php on line 154
Fatal error: Uncaught exception \'Exception\' with message \' SQL ERROR update jrn set jr_pj=,jr_pj_name=\'facture1.rtf\',jr_pj_type=\'application/rtf\' where jr_internal=\'14VEN-01-98\' \' in /Applications/MAMP/htdocs/phpcompta/include/postgres.php:143 Stack trace: #0 /Applications/MAMP/htdocs/phpcompta/include/class_document.php(919): ExecSql() #1 /Applications/MAMP/htdocs/phpcompta/include/compta_ven.inc.php(155): Document->MoveDocumentPj(Resource id #24, \'update jrn set ...\') #2 /Applications/MAMP/htdocs/phpcompta/html/commercial.php(141): require_once(\'/Applications/M...\') #3 {main} thrown in /Applications/MAMP/htdocs/phpcompta/include/postgres.php on line 143
Pour le programme zip je ne l\'ai pas dans usr/bin
j\'ai effectué les modifications et j\'obtiens maintenant suite à ma fenètre de validation :
Warning: mkdir() [function.mkdir]: No such file or directory in /Applications/MAMP/htdocs/phpcompta/include/class_document.php on line 151
Warning: rename(/private/tmp/doc_wCkg9v/facture1.rtf,/Applications/MAMP/htdocs/private/tmp/doc_wCkg9v/facture1.rtf) [function.rename]: No such file or directory in /Applications/MAMP/htdocs/phpcompta/include/class_document.php on line 154
Fatal error: Uncaught exception \'Exception\' with message \' SQL ERROR update jrn set jr_pj=,jr_pj_name=\'facture1.rtf\',jr_pj_type=\'application/rtf\' where jr_internal=\'14VEN-01-98\' \' in /Applications/MAMP/htdocs/phpcompta/include/postgres.php:143 Stack trace: #0 /Applications/MAMP/htdocs/phpcompta/include/class_document.php(919): ExecSql() #1 /Applications/MAMP/htdocs/phpcompta/include/compta_ven.inc.php(155): Document->MoveDocumentPj(Resource id #24, \'update jrn set ...\') #2 /Applications/MAMP/htdocs/phpcompta/html/commercial.php(141): require_once(\'/Applications/M...\') #3 {main} thrown in /Applications/MAMP/htdocs/phpcompta/include/postgres.php on line 143
Re:Générer documents (facture note de frais...)
Et bien voilà, maintenant nous avons une erreur Le programme doit créer un répertoire temporaire pour traiter le fichier et il n\'y arrive pas. Ce répertoire /Applications/MAMP/htdocs/private/tmp existe ??? Sinon, créez le avec les bonnes permissions (tout le monde peut y écrire)
Re:Générer documents (facture note de frais...)
Oui Oui ça avance
alors maintenant nous avons un doc attaché mais lorsque je clique dessus j\'obtiens :
Warning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 67
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 68
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 70
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 73
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 74
Est-ce lié au fait que ne semble pas avoir zip?
...
alors maintenant nous avons un doc attaché mais lorsque je clique dessus j\'obtiens :
Warning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 67
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 68
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 70
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 73
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/phpcompta/include/constant.php:1) in /Applications/MAMP/htdocs/phpcompta/html/show_pj.php on line 74
Est-ce lié au fait que ne semble pas avoir zip?
...
Re:Générer documents (facture note de frais...)
Non, il y a un message d\'erreur envoyé (ou un warning) mais on ne le voit pas. Pourrais-tu faire le test sur le demo (modifie un peu la facture) pour voir si on a le même problème.
Si tu arrives malgré tout à recevoir le document, l\'erreur est écrite dedans
Si tu arrives malgré tout à recevoir le document, l\'erreur est écrite dedans
Re:Générer documents (facture note de frais...)
le test sur le demo?
le document ne parait pas exister réellement...
le document ne parait pas exister réellement...
Re:Générer documents (facture note de frais...)
oui sur www.phpcompta.be/demo ; tu upload ta facture (modifiée) ou celle que tu as dans phpcompta/contrib, tu testes et me dis si tu as encore le problème