nigelhorne / ged2site

Create a family tree website from a Gedcom file
https://genealogy.nigelhorne.com
GNU General Public License v2.0
36 stars 4 forks source link

Undefined subroutine &HTTP::Cache::Transparent::init #110

Closed jhannah closed 1 month ago

jhannah commented 1 month ago

Huh. Trying to run from a git clone (branch master):

✗ git show -a | head -1
commit add8ee249c833b3c8e0342d766eadf4d165058b8
✗ cpanm HTTP::Cache::Transparent
HTTP::Cache::Transparent is up to date. (1.4)
✗ ./ged2site -cFdh 'Jay Weston Hannah' ~/Desktop/jay_new.ged
Undefined subroutine &HTTP::Cache::Transparent::init called at ./ged2site line 891, <GEN0> line 36678.
jhannah commented 1 month ago

At a glance, possible patch is on line 872 of ged2site.

-if($opts{'d'} || $opts{'m'}) {
+if($opts{'d'} && $opts{'m'}) {

Forcing both of those to be true, because lines 247-253 only use HTTP::Cache::Transparent if both of those options are true. I can submit a PR for that change if you want.

nigelhorne commented 1 month ago

I can reproduce this:

./ged2site -cFdh 'Nigel Horne' ~/gedcoms/Horne\ Family\ Tree\ -\ 2024\ 05\ 24\ 13-52.ged
Undefined subroutine &HTTP::Cache::Transparent::init called at ./ged2site line 891, <GEN0> line 202001.
jhannah commented 1 month ago

fixed! thanks! :)