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: 22842
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: rbalbat [...] yahoo.com
Cc:
AdminCc:

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



Subject: save_content
Date: Mon, 6 Nov 2006 05:43:49 -0800 (PST)
To: bug-WWW-Mechanize [...] rt.cpan.org
From: "Richard J. Balbat" <rbalbat [...] yahoo.com>
Hello, I have been using the WWW-Mechanize module for over a year now. I recently had problems with my machine, so I re-imaged it and downloaded WWW-Mechanize again from CPAN.ORG. There appears to be a problem, in particular with the save_content method, with the latest version of Mechanize. I use the following line of code in my Perl script to save markup to the local file system. $mech->save_content( $filename ); # Save the top-level source document to the local F/S I get the following error. Is this a known issue? BR, Richard Can't locate object method "save_content" via package "WWW::Mechanize" at C:\spider\capture_content.pl line 143, <STDIN> line 5 (#1) (F) You called a method correctly, and it correctly indicated a package functioning as a class, but that package doesn't define that particular method, nor does any of its base classes. See perlobj. Uncaught exception from user code: Can't locate object method "save_content" via package "WWW::Mechanize" a t C:\spider\capture_content.pl line 143, <STDIN> line 5. at C:\spider\capture_content.pl line 143 --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited.
Show quoted text
> Can't locate object method "save_content" via package > "WWW::Mechanize" at > C:\spider\capture_content.pl line 143, <STDIN> line 5 (#1)
I suspect that you installed Mech incorrectly. save_content() is working fine for me, and I've just added a test for it in the newest version of Mech I'm going to be releasing today.
Subject: Re: [rt.cpan.org #22842] save_content
Date: Fri, 11 May 2007 13:35:46 -0700 (PDT)
To: bug-WWW-Mechanize [...] rt.cpan.org
From: "Richard J. Balbat" <rbalbat [...] yahoo.com>
Thanks for the reply. I believe I posted this problem last summer? Yes, if memory serves me correctly, I didn't configure/install the Mechanize module properly. Everything ended up working. Show quoted text
----- Original Message ---- From: Andy Lester via RT <bug-WWW-Mechanize@rt.cpan.org> To: rbalbat@yahoo.com Sent: Friday, May 11, 2007 4:05:59 PM Subject: [rt.cpan.org #22842] save_content <URL: http://rt.cpan.org/Ticket/Display.html?id=22842 >
> Can't locate object method "save_content" via package > "WWW::Mechanize" at > C:\spider\capture_content.pl line 143, <STDIN> line 5 (#1)
I suspect that you installed Mech incorrectly. save_content() is working fine for me, and I've just added a test for it in the newest version of Mech I'm going to be releasing today. ____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. http://new.toolbar.yahoo.com/toolbar/features/norton/index.php