Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Mysterious error when under mod_perl
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Lackhoff  
View profile  
 More options Oct 24 2012, 12:29 pm
From: Michael Lackhoff <mich...@lackhoff.de>
Date: Wed, 24 Oct 2012 18:29:56 +0200
Local: Wed, Oct 24 2012 12:29 pm
Subject: Mysterious error when under mod_perl
I am in the process to move my applicaton to a new server with Ubuntu
12.04 and get errors when loading a form module. Further investigation
showed that I do not even need my own module. It is enough to add this
to the Apache configuration file:
<Perl>
    use Rose::HTML::Text;
</Perl>
to get the following error message:

Can't locate object method "valid_html_attrs" via package
"Rose::HTML::Text" at /usr/local/share/perl/5.14.2/Rose/HTML/Text.pm
line 11.\nCompilation failed in require at
/etc/apache2/sites-includes/pvonline.conf line 13.\nBEGIN
failed--compilation aborted

the same "use Rose::HTML::Text;" in a command line script gives no
error. Any idea what is going wrong here?

-Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Lackhoff  
View profile  
 More options Oct 24 2012, 2:46 pm
From: Michael Lackhoff <mich...@lackhoff.de>
Date: Wed, 24 Oct 2012 20:46:47 +0200
Local: Wed, Oct 24 2012 2:46 pm
Subject: Re: Mysterious error when under mod_perl
On 24.10.2012 18:29 Michael Lackhoff wrote:

Well, some more investigation showed that it had nothing to do with
mod_perl itself but that I had a "use Rose::HTML::Objects" in startup.pl
and the above error occurs if Rose::HTML::Text is loaded after
Rose::HTML::Objects. So this little script is enough to trigger the crash:

#!/usr/bin/perl
use Rose::HTML::Objects;
use Rose::HTML::Text; # and Bumm!

Is it possible to make it more immune to the loading sequence?

By the way, I tried to find the place where valid_html_attrs() is
defined or created but couldn't find it. I would be interested to know
from where it comes.

-Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Siracusa  
View profile  
 More options Oct 24 2012, 3:00 pm
From: John Siracusa <sirac...@gmail.com>
Date: Wed, 24 Oct 2012 15:00:14 -0400
Local: Wed, Oct 24 2012 3:00 pm
Subject: Re: Mysterious error when under mod_perl

On Wed, Oct 24, 2012 at 2:46 PM, Michael Lackhoff <mich...@lackhoff.de> wrote:
> Well, some more investigation showed that it had nothing to do with
> mod_perl itself but that I had a "use Rose::HTML::Objects" in startup.pl
> and the above error occurs if Rose::HTML::Text is loaded after
> Rose::HTML::Objects. So this little script is enough to trigger the crash:

> #!/usr/bin/perl
> use Rose::HTML::Objects;
> use Rose::HTML::Text; # and Bumm!

That script works for me.  What version of Rose::HTML::Objects do you
have?  You might need a newer version to resolve this.

-John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Lackhoff  
View profile  
 More options Oct 24 2012, 5:12 pm
From: Michael Lackhoff <mich...@lackhoff.de>
Date: Wed, 24 Oct 2012 23:12:55 +0200
Local: Wed, Oct 24 2012 5:12 pm
Subject: Re: Mysterious error when under mod_perl
On 24.10.2012 21:00 John Siracusa wrote:

>> #!/usr/bin/perl
>> use Rose::HTML::Objects;
>> use Rose::HTML::Text; # and Bumm!

> That script works for me.  What version of Rose::HTML::Objects do you
> have?  You might need a newer version to resolve this.

I tried it with both 0.616 and 0.610. That should be the most recent
version and the one I had on my previous server.
As I said, the problem only occurs if the modules are loaded in this
sequence. Everything is fine if I load them the other way round.

Since there are some more reports of the same problem in the archives,
perhaps it is dependent on the version of some other module? After all
both modules are from the same CPAN-distribution with little room for
incompatibilities and you cannot reproduce the problem. So it must be
something external but related, at least that is my guess.
I would like to track this down if you are interested, perhaps off list
like with another problem we could resolve some time ago.

One idea would be to compare the versions of the complete dependency
tree. But with your better knowledge of the code you might have other ideas.

-Michael

p.s.: I just tested the little script on the old server with perl 5.10.1
and RHTMLO 0.610: same problem.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Siracusa  
View profile  
 More options Oct 25 2012, 4:04 pm
From: John Siracusa <sirac...@gmail.com>
Date: Thu, 25 Oct 2012 16:03:49 -0400
Local: Thurs, Oct 25 2012 4:03 pm
Subject: Re: Mysterious error when under mod_perl

On Wed, Oct 24, 2012 at 2:46 PM, Michael Lackhoff <mich...@lackhoff.de> wrote:
> Well, some more investigation showed that it had nothing to do with
> mod_perl itself but that I had a "use Rose::HTML::Objects" in startup.pl
> and the above error occurs if Rose::HTML::Text is loaded after
> Rose::HTML::Objects. So this little script is enough to trigger the crash:

> #!/usr/bin/perl
> use Rose::HTML::Objects;
> use Rose::HTML::Text; # and Bumm!

Just to update the list, upgrading base.pm to 2.18 fixed the problem.

-John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »