Modify ↓
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)
Note: See
TracTickets for help on using
tickets.

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