
Hi Eddie,
This error was apparently found to be the result of updating PERL.
BUT, as my otrs runs on a shared webserver, my provider refuses to downgrade perl and tels me to fix my own problems ... :-(
Restoring question.pm and base.pm to a pre-upgrade version resolved the issue for the other poster.
So thats the Perl standard modules Net::DNS::Question and Net::DNS::Resolver::Base. They are located somewhere in your perl path. That is your provider's perl path, where you can't change anything. So you could try to * create the directories Kernel/cpan-lib/Net/DNS/Resolver/ * get old, working versions of these two files (from cpan.org), * copy them to Kernel/cpan-lib/: * Kernel/cpan-lib/Net/DNS/Question.pm * Kernel/cpan-lib/Net/DNS/Resolver/Base.pm I think that should work. You could try to find out which versions you are using with these lines in index.pl: use Net::DNS::Question; warn "Net::DNS::Question: version $Net::DNS::Question::VERSION\n"; warn "Net::DNS::Resolver::Base: version $Net::DNS::Resolver::Base::VERSION\n"; I'm using version 610 of both modules. Cpan says current versions are 630 and 659. Hope that helps. Gerhard -------------------------------------------- Thus spake the master programmer: "Though a program be but three lines long, someday it will have to be maintained." Gerhard Weber

On 28-jun-2007, at 17:55, Gerhard Weber wrote:
Hi Eddie,
This error was apparently found to be the result of updating PERL.
BUT, as my otrs runs on a shared webserver, my provider refuses to downgrade perl and tels me to fix my own problems ... :-(
Restoring question.pm and base.pm to a pre-upgrade version resolved the issue for the other poster.
So thats the Perl standard modules Net::DNS::Question and Net::DNS::Resolver::Base. They are located somewhere in your perl path. That is your provider's perl path, where you can't change anything.
So you could try to * create the directories Kernel/cpan-lib/Net/DNS/Resolver/ * get old, working versions of these two files (from cpan.org), * copy them to Kernel/cpan-lib/: * Kernel/cpan-lib/Net/DNS/Question.pm * Kernel/cpan-lib/Net/DNS/Resolver/Base.pm
Thanks for the suggestion, I did as you suggested and got the 610 versions from CPAN ... No luck, still the same error, I guess the webserver still gets the global modules ... As I am not a perl "guru", do you have any suggestions to put these "old" modules to work ? Eddie
I think that should work. You could try to find out which versions you are using with these lines in index.pl:
use Net::DNS::Question; warn "Net::DNS::Question: version $Net::DNS::Question::VERSION\n"; warn "Net::DNS::Resolver::Base: version $Net::DNS::Resolver::Base::VERSION\n";
I'm using version 610 of both modules. Cpan says current versions are 630 and 659.
Hope that helps.
Gerhard

On 28-jun-2007, at 21:41, Eddie Bindt wrote:
On 28-jun-2007, at 17:55, Gerhard Weber wrote:
Hi Eddie,
This error was apparently found to be the result of updating PERL.
BUT, as my otrs runs on a shared webserver, my provider refuses to downgrade perl and tels me to fix my own problems ... :-(
Restoring question.pm and base.pm to a pre-upgrade version resolved the issue for the other poster.
So thats the Perl standard modules Net::DNS::Question and Net::DNS::Resolver::Base. They are located somewhere in your perl path. That is your provider's perl path, where you can't change anything.
So you could try to * create the directories Kernel/cpan-lib/Net/DNS/Resolver/ * get old, working versions of these two files (from cpan.org), * copy them to Kernel/cpan-lib/: * Kernel/cpan-lib/Net/DNS/Question.pm * Kernel/cpan-lib/Net/DNS/Resolver/Base.pm
Thanks for the suggestion, I did as you suggested and got the 610 versions from CPAN ... No luck, still the same error, I guess the webserver still gets the global modules ... As I am not a perl "guru", do you have any suggestions to put these "old" modules to work ?
Some digging around in perl module land told me that this is not going to work ... Perl is always preferring system modules above local modules. In the index.pl both extra local dirs are "pushed" onto @INC ... and as push means "apend", local modules with the same name as global modules wil never be used ... SO, back to zero ...
I think that should work. You could try to find out which versions you are using with these lines in index.pl:
use Net::DNS::Question; warn "Net::DNS::Question: version $Net::DNS::Question::VERSION\n"; warn "Net::DNS::Resolver::Base: version $Net::DNS::Resolver::Base::VERSION\n";
This doesn't give any output at all on my system ...
I'm using version 610 of both modules. Cpan says current versions are 630 and 659.
Hope that helps.
Gerhard
Any suggestion is welcome, Eddie

So you could try to * create the directories Kernel/cpan-lib/Net/DNS/Resolver/ * get old, working versions of these two files (from cpan.org), * copy them to Kernel/cpan-lib/: * Kernel/cpan-lib/Net/DNS/Question.pm * Kernel/cpan-lib/Net/DNS/Resolver/Base.pm
Thanks for the suggestion, I did as you suggested and got the 610 versions from CPAN ... No luck, still the same error, I guess the webserver still gets the global modules ... As I am not a perl "guru", do you have any suggestions to put these "old" modules to work ?
Some digging around in perl module land told me that this is not going to work ... Perl is always preferring system modules above local modules. In the index.pl both extra local dirs are "pushed" onto @INC ... and as push means "apend", local modules with the same name as global modules wil never be used ...
SO, back to zero ...
You can try extending @INC. add the line: unshift @INC, "/{insertFullPathHere}/Kernel/cpan-lib/Net/DNS/"; to index.pl, this way you will search that directory first while using index.pl. Would that do what you need? Hope this helps. Greg Horne geh gehorne

On 29-jun-2007, at 13:38, Greg Horne wrote:
You can try extending @INC. add the line:
unshift @INC, "/{insertFullPathHere}/Kernel/cpan-lib/Net/DNS/";
to index.pl, this way you will search that directory first while using index.pl. Would that do what you need? Hope this helps.
Too bad, the original error "Modification of a read-only value attempted at /usr/lib/perl5/ site_perl/5.8.8/i686-linux/Net/DNS/Question.pm line 47." still points to the use of the system-wide module .... tnx anyway, Eddie
participants (3)
-
Eddie Bindt
-
Gerhard Weber
-
Greg Horne