Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#9229 closed defect (Fixed)

wunderground-maps.pl fails if logdir does not exist. Needs use File::Path;

Reported by: anonymous Owned by: beirdo
Priority: minor Milestone: 0.24.1
Component: Plugin - MythWeather Version: 0.24-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

fails if logdir does not exist with
Undefined subroutine &main::mkpath called at ./wunderground-maps.pl line 35.

if (!-d $logdir) {

mkpath( $logdir, {mode => 0755} );

}

mkpath is not included. To fix need to add
use File::Path;

e.g.
use File::Path;
use File::Basename;
use Cwd 'abs_path';

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by kenni

  • Status changed from new to assigned

comment:2 Changed 3 years ago by beirdo

  • Resolution set to Fixed
  • Status changed from assigned to closed

(In [27234]) Added File::Path to the modules loaded

Fixes #9229

comment:3 Changed 3 years ago by beirdo

(In [27235]) Added File::Path to the modules loaded (backport from [27234] on trunk)

Fixes #9229

comment:4 Changed 3 years ago by beirdo

  • Milestone changed from unknown to 0.24.1

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.