Gossamer Forum
Quote Reply
reset_env
I saw someone mention this error with one of my plugins the other day and I've just got it myself.

Putting:

Links::reset_env( { load_user => 1 } ) if ($Links::PERSIST);

....in a cgi script keeps giving undefined subroutine reset_env

Im using mod_perl if that makes a difference.

Here is the full chunk of code:

use strict;
use lib '/my/path';
use Links qw/$CFG/;
use Plugins::MyModule;

Links::init('/path');
Links::init_user();

local $SIG{__DIE__} = \&Links::fatal;

Links::reset_env( { load_user => 1 } ) if ($Links::PERSIST);

if (Links->check_request()) {
GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'user_cart', \&Plugins::MyModule::handle);
}


...what did I do wrong? Cool

Last edited by:

RedRum: Feb 27, 2002, 11:30 AM
Subject Author Views Date
Thread reset_env Paul 2408 Feb 27, 2002, 11:28 AM
Thread Re: [RedRum] reset_env
Eraser 2287 Feb 27, 2002, 12:17 PM
Post Re: [Eraser] reset_env
Paul 2284 Feb 27, 2002, 12:35 PM