Hey there after i updated my gentoo (linux) and perl was updated to version 5.12.4 recompiled the pdflib and so on

all perl depended stuff is completely updated

i got the following Error with a Web-application
] *** PDFlib context pointer (nil) is invalid ***, referer: http://loc +alhost/cgi-bin/atelier/my_fin_ab_2012/kwo_fin.cgi [Fri Aug 29 13:48:26 2014] [error] [client 127.0.0.1] pdflib_pl::PDF_o +pen_file could not open file '/var/www/localhost/htdocs/projectfin/pd +f_out/2014-08-28_r_21_.pdf'., referer: http://localhost/cgi-bin/ateli +er/my_fin_ab_2012/kwo_fin.cgi [Fri Aug 29 13:48:26 2014] [error] [client 127.0.0.1] [Fri Aug 29 13:4 +8:26 2014] kwo_fin.cgi: system perl /var/www/localhost/cgi-bin/atelie +r/my_fin_ab_2012/api-test7.pl 21 r failed: 65280 at /var/www/localhos +t/cgi-bin/atelier/my_fin_ab_2012/kwo_fin.cgi line 667., referer: http +://localhost/cgi-bin/atelier/my_fin_ab_2012/kwo_fin.cgi

so the kwo_fin.cgi line 667

sub kunde_rechnung_print7 { $mode='kunde_rechnung_auswahl'; $rsubnr = $query->param('RSubNr') || 0; $rnr = $query->param('RNr') || 0; $knr = $query->param('knr') || 0; admin_show(); admin_show(); my @args = ("perl","/var/www/localhost/cgi-bin/atelier/my_fin_ab_2 +012/api-test7.pl", $rnr, "r"); #line667 system(@args) == 0 or die "system @args failed: $?" }
calls a second perlscript in which i call
use PDF::Template; my $pdf = PDF::Template->new( filename => '/var/www/localhost/cgi-bin/atelier/my_fin_ab_2012/lib +/print_rech_tmpl.xml', ); my %my_params = .... ... $pdf->param(%my_params); #print "Content/type: application/pdf\n\n", $pdf->get_buffer; my $filename='/var/www/localhost/htdocs/projectfin/pdf_out/'.$Datum.'_ +'.$rema.'_'.$RNr.'_'.$firma.'_'.$name.'.pdf'; $pdf->write_file($filename); Cleanup();

so pdflib_pl::PDF_open_file could not open file

has anybody a idea where i could start to solve the problem

one more - Linux only - dance Achim

In reply to PDFlib context pointer (nil) is invalid by Achim

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.