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
Quote Reply
Re: [RedRum] reset_env In reply to
Yep, that was me. Alex suggested commenting out the statement and it worked then. Funny but this error is somewhat intermittent as a second install on my test server didn't show this problem.

~ ERASER


Free JavaScripts @ Insight Eye

Last edited by:

Eraser: Feb 27, 2002, 12:18 PM
Quote Reply
Re: [Eraser] reset_env In reply to
Same here.

I have it uncommented on my demo copy and commented on the wiredon copy above. The demo doesn't give an error but wiredon does which is why I had to comment it out :(