I am using CGI::App, HTML::Template, XML::Simple etc.
I am working on my webpage and doing alot of changes before testing. When I am done coding I receive the following error message:
Software error:
Error executing class callback in init stage: Can't locate object meth
+od "new" via package "XML::SAX::PurePerl" at /home/domains/zave/perl/
+lib/site_perl/5.8.7/XML/SAX/ParserFactory.pm line 43.
I narrowed it down so that my webpage will display, by removing a call I make in my baseclass when I load my config file (XML::Simple)
# get config file
$self->param('config' => XMLin($self->param('config_url')));
I don't believe thats the real error. I never had any problems with that line of code before I did my changes, unfortunatly, I can't undo my changes.
I am using:
use CGI::Carp qw/fatalsToBrowser/;
to catch most coding syntax errors, but I don't understand this new error. Does anyone now what could be wrong or does anyone now of some module which could give me even more specific error codes?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.