Issue Details (XML | Word | Printable)

Key: MBS-5270
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Ian McEwen
Reporter: Ian McEwen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

scripts complain about LWP not being loaded

Created: 05/Sep/12 01:40 AM   Updated: 17/Sep/12 10:29 AM   Resolved: 17/Sep/12 10:29 AM
Component/s: Scripts
Affects Version/s: None
Fix Version/s: 2012-09-17

Issue Links:
Duplicate
 


 Description  « Hide

Can't locate object method "new" via package "LWP::UserAgent" (perhaps you forgot to load "LWP::UserAgent"?) at /home/ianmcorvidae/Source/musicbrainz-server/po/../lib/MusicBrainz/Server/Context.pm line 42.

Adding a 'use LWP::UserAgent' to MB::S::Context seems to work



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 05/Sep/12 08:41 AM

This seems correct, but what script causes that?


Ian McEwen added a comment - 05/Sep/12 08:53 AM

That particular one was from po/extract_pot_db – it affects everything that uses create_script_context though. In this particular case it didn't cause a problem, since extract_pot_db doesn't do anything that requires LWP – just the warning. There was a guy in IRC earlier who had to add the use to get something working though (replication, possibly).


Ian McEwen added a comment - 06/Sep/12 07:04 PM