[ic] Autoload - can't get it to work

Jonathan Clark interchange-users@icdevgroup.org
Fri Jan 10 11:49:01 2003


> I'm trying to use Autoload.  I cannot get it to work, even using the basic
> code below.  I've restarted Interchange and checked the logs, Interchange
> restarts fine.
>
> Here's my code:
>  In /interchange/catalog.cfg:
>
>   Autoload <<EOS
>   [perl]
>   $Scratch->{mook} = "Test";
>   return;
>   [/perl]
>   EOS
>
> Then, on the index page I try to display the value using [scratch mook],
> nothing appears. I've restarted Interchange and checked the logs,
> Interchange restarts fine.  I have noticed that when I move the Autoload
> code up towards the beginning of catalog.cfg then I get an error when
> restarting Interchange.
>
> What am I missing?

One (possibly daft) suggestion..

check the 'EOS' to make sure there is no white space after it.

When you move the code up the catalog.cfg, and it fails, what is in the
error log?

Jonathan
www.webmaint.net