Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Hacking Movable Type

by enoch (Chaplain)
on Mar 31, 2003 at 00:37 UTC ( #246827=note: print w/ replies, xml ) Need Help??


in reply to Hacking Movable Type

What is the bug that you are encountering?

enoch


Comment on Re: Hacking Movable Type
Re: Re: Hacking Movable Type
by nysus (Deacon) on Mar 31, 2003 at 00:57 UTC
    When I try to make a thumbnail, I get a 500 internal server error. Image::magick is installed. Others have encountered the same problem. No one on MT forum has an answer. Someone reported a
    perl: resize.c:1054: ResizeImage: Assertion `image->signature == 0xabacadabUL' failed. 
    
    error. I'm trying to confirm this but I can't get error to print.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop";
    $nysus = $PM . $MCF;
    Click here if you love Perl Monks

      Reading the logs is an obvious suggestion. CGI::Carp misses some 500 stuff. Try adding this which is pretty robust:

      #!/usr/bin/perl BEGIN { $|++; print "Content-type: text/html\n\n"; # this may also help as it will capture STDERR in the browser open STDERR, ">&STDOUT"; use CGI::Carp 'fatalsToBrowser'; } print STDERR "<p>Foo</p>"; print STDOUT "<p>Bar</p>"; # catches almost all errors one way or another # if ( $syntax_error ) { END { print STDERR "Exiting!" }

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

        Error logs don't have a detailed message. No line number. Just some generic script warning. Yes warning switch is on. Tried your code above and something similar already but just get a blank screen when there is an error. Nothing in the error log. Thanks, anyway.

        $PM = "Perl Monk's";
        $MCF = "Most Clueless Friar Abbot Bishop";
        $nysus = $PM . $MCF;
        Click here if you love Perl Monks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://246827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-07-02 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls