<div dir="ltr">non è quello l'errore comunque... li ho fatto io un'errore scrivendo in python una cosa di php... ma l'errore resta... ed è questo che vedo dal log:<br><br>[Tue Oct 07 00:57:14 2008] [error] [client <a href="http://79.28.248.123">79.28.248.123</a>] Traceback (most recent call last):, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40">http://dominio.net/ordini/index.php?ord_id=40</a><br>
[Tue Oct 07 00:57:14 2008] [error] [client <a href="http://79.28.248.123">79.28.248.123</a>] File "stampa_ordine.py", line 9, in ?, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40">http://dominio.net/ordini/index.php?ord_id=40</a><br>
[Tue Oct 07 00:57:14 2008] [error] [client <a href="http://79.28.248.123">79.28.248.123</a>] from reportlab.platypus import *, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40">http://dominio.net/ordini/index.php?ord_id=40</a><br>
[Tue Oct 07 00:57:14 2008] [error] [client <a href="http://79.28.248.123">79.28.248.123</a>] ImportError: No module named reportlab.platypus, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40">http://dominio.net/ordini/index.php?ord_id=40</a><br>
[Tue Oct 07 00:57:14 2008] [error] [client <a href="http://79.28.248.123">79.28.248.123</a>] Premature end of script headers: stampa_ordine.py, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40">http://dominio.net/ordini/index.php?ord_id=40</a><br>
[Tue Oct 07 00:57:14 2008] [error] [client <a href="http://79.28.248.123">79.28.248.123</a>] File does not exist: /home/user/<a href="http://dominio.net/internal_error.html">dominio.net/internal_error.html</a>, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40">http://dominio.net/ordini/index.php?ord_id=40</a><br>
<br><br><div class="gmail_quote">2008/10/7 Lawrence Oluyede <span dir="ltr"><<a href="mailto:l.oluyede@gmail.com">l.oluyede@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Oct 7, 2008 at 9:55 AM, Zanon Samuele <<a href="mailto:webs86@gmail.com">webs86@gmail.com</a>> wrote:<br>
> eccolo:<br>
><br>
> [Tue Oct 07 00:53:46 2008] [error] [client <a href="http://79.28.248.123" target="_blank">79.28.248.123</a>] File<br>
> "stampa_ordine.py", line 174, referer:<br>
> <a href="http://dominio.net/ordini/index.php?ord_id=40" target="_blank">http://dominio.net/ordini/index.php?ord_id=40</a><br>
> [Tue Oct 07 00:53:46 2008] [error] [client <a href="http://79.28.248.123" target="_blank">79.28.248.123</a>] print '<a<br>
> href="'. output_filename '">PDF ORDINE</a>', referer:<br>
> <a href="http://dominio.net/ordini/index.php?ord_id=40" target="_blank">http://dominio.net/ordini/index.php?ord_id=40</a><br>
> [Tue Oct 07 00:53:46 2008] [error] [client<br>
> <a href="http://79.28.248.123" target="_blank">79.28.248.123</a>] ^,<br>
> referer: <a href="http://dominio.net/ordini/index.php?ord_id=40" target="_blank">http://dominio.net/ordini/index.php?ord_id=40</a><br>
> [Tue Oct 07 00:53:46 2008] [error] [client <a href="http://79.28.248.123" target="_blank">79.28.248.123</a>] SyntaxError:<br>
> invalid syntax, referer: <a href="http://dominio.net/ordini/index.php?ord_id=40" target="_blank">http://dominio.net/ordini/index.php?ord_id=40</a><br>
> [Tue Oct 07 00:53:46 2008] [error] [client <a href="http://79.28.248.123" target="_blank">79.28.248.123</a>] Premature end of<br>
> script headers: stampa_ordine.py, referer:<br>
> <a href="http://dominio.net/ordini/index.php?ord_id=40" target="_blank">http://dominio.net/ordini/index.php?ord_id=40</a><br>
<br>
</div>Abbastanza chiaro.<br>
<div class="Ih2E3d"><br>
print '<a href="'. output_filename '">PDF ORDINE</a>'<br>
<br>
</div>Gli apici dopo =" sono illegali. Devi farne l'escape:<br>
<div class="Ih2E3d"><br>
print '<a href="\'. output_filename\'">PDF ORDINE</a>'<br>
<br>
</div>--<br>
<div class="Ih2E3d">Lawrence, <a href="http://stacktrace.it" target="_blank">stacktrace.it</a> - <a href="http://oluyede.org" target="_blank">oluyede.org</a> - <a href="http://neropercaso.it" target="_blank">neropercaso.it</a><br>
"It is difficult to get a man to understand<br>
something when his salary depends on not<br>
understanding it" - Upton Sinclair<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">Python mailing list<br>
<a href="mailto:Python@lists.python.it">Python@lists.python.it</a><br>
<a href="http://lists.python.it/mailman/listinfo/python" target="_blank">http://lists.python.it/mailman/listinfo/python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zanon Samuele<br>mailto:<a href="mailto:webs86@gmail.com">webs86@gmail.com</a><br>
</div>