List Info

Thread: $lang->maketext() error




$lang->maketext() error
user name
2006-10-15 16:10:00
 
Some background:
 
1) I configured Apache to use Reload.pm for development so
that my schedule.pm perl lib will be reloaded when I change
it.
 
2) Last night, I cleared out the /bricolage/data and
/bricolage/tmp directories because I thought something was
being cached because I wasn't seeing a code change reflected
in the behavior of Bric -- I later discovered why the change
wasn't visible, but that's neither here or there -- the
important thing (or not) is that I cleared out those dirs.
 
So, the problem: after doing these two things and
re-starting Bricolage, I got an error at line 187 of
select_time.mc:
 
my mon = map { $lang->maketext($_) }
    qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
 
[Sun Oct 15 04:35:29 2006] [error] Can't call method
"maketext" on an undefined value at
/usr/local/bricolage/comp/widgets/select_time/select_time.mc
line 187.nCompilation failed in require at
/usr/lib/perl5/site_perl/5.8.8/Apache/Reload.pm line 132.n
 
I changed line 187 to 
 
my mon =  qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
Dec);
 
temporarily so I could continue with development, but any
ideas as to the cause of this error?
 
Thanks,
 
Dave
 
$lang->maketext() error
user name
2006-10-15 17:15:11
On Sun, 15 Oct 2006, Beaudet, David P. wrote:
> 1) I configured Apache to use Reload.pm for development
so that my schedule.pm 
> perl lib will be reloaded when I change it.
>
> 2) Last night, I cleared out the /bricolage/data and
/bricolage/tmp 
> directories because I thought something was being
cached because I wasn't 
> seeing a code change reflected in the behavior of Bric
-- I later discovered 
> why the change wasn't visible, but that's neither here
or there -- the 
> important thing (or not) is that I cleared out those
dirs.
>
> So, the problem: after doing these two things and
re-starting Bricolage, I got 
> an error at line 187 of select_time.mc:
>
> my mon = map { $lang->maketext($_) }
>    qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
>
> [Sun Oct 15 04:35:29 2006] [error] Can't call method
"maketext" on an 
> undefined value at 
>
/usr/local/bricolage/comp/widgets/select_time/select_time.mc
line 
> 187.nCompilation failed in require at 
> /usr/lib/perl5/site_perl/5.8.8/Apache/Reload.pm line
132.n

What if you don't configure it to use Reload?
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )