Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 9597
Status: rejected
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: havoc [...] harrisdev.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.08
Fixed in: (no value)



Subject: field() failure
Download (untitled) / with headers
text/plain 656b
method "field" seems to be broken in 1.08, and Perl 5.8.5 on SUSE Linux 2.6.8-24.10-default. $mech‐>field( $name, $value ); Error: Can't call method "value" on an undefined value at /usr/lib/perl5/site_perl/5.8.5/WWW/Mechanize.pm line 1033. In other parts of my code, I call method "fields," but here I needed the option of leaving off unused field with an if statement. This is the actual line that breaks the module: $mech->field("album_name", "$album_name"); $album_name is correctly defined. Let me know if there is anything else I can send to clear things up.... or tell me what stupid thing I did wrong that I'm not seeing. Thanks, havoc
Download (untitled) / with headers
text/plain 187b
[guest - Mon Jan 10 18:13:14 2005]: Curious... The code for both field() and value() are unchanged between 1.04 (my previous working version) and 1.08 are completely untouched.... grr.
From: havoc [...] harrisdev.com
I just verified that rolling back to 1.04 does make this problem go away... havoc
Date: Mon, 10 Jan 2005 18:12:40 -0600
From: Andy Lester <andy [...] petdance.com>
To: Guest via RT <bug-WWW-Mechanize [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #9597] field() failure
RT-Send-Cc:
Download (untitled) / with headers
text/plain 459b
On Mon, Jan 10, 2005 at 06:13:14PM -0500, Guest via RT (bug-WWW-Mechanize@rt.cpan.org) wrote: Show quoted text
> Can't call method "value" on an undefined value at /usr/lib/perl5/site_perl/5.8.5/WWW/Mechanize.pm line 1033.
I will bet a shiny new dime that 1) You're not checking the return code of your get(), and 2) the get() is failing. Post your code in its entirety, please. And check the FAQ. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
Subject: okay, looks like uri() is the culprit
From: havoc [...] harrisdev.com
Download (untitled) / with headers
text/plain 570b
[PETDANCE - Mon Jan 10 19:15:12 2005]: Show quoted text
> 1) You're not checking the return code of your get(), and
You are correct, Sir! I got sloppy there. Show quoted text
> 2) the get() is failing.
I'm note sure why get() is failing. It's attempting to get() the wrong URL, but still a valid URL. Looks like uri() is either returning an incorrect URI, OR we're not correctly following a redirect, as stated in another bug report. I'm guessing it's a redirection failure. Show quoted text
> Post your code in its entirety, please. And check the FAQ.
I am SO ashamed of my code! Do I have to post it? havoc
Download (untitled) / with headers
text/plain 106b
This ticket should be resolved. The poster won't provide anything we can reproduce the issue with. Mark


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.