PEAK XOOPS - Batch Register Error: Warning: Unknown(): A session is active. in englishin japanese

Batch Register Error: Warning: Unknown(): A session is active.

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/9/17 12:52
ecsmith62  ÆóÅùʼ   Posts: 1
Every time I try to run the Batch Register it dies with the error

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

after registering some (10-25) photos, it then dies.

Also, since I tried to run it more than once, the same photos appear to be registered multiple times now.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/9/23 19:20
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi ecsmith62.

It sounds curious.
Can you check the value "session.auto_start" of php's setting?

And you can try the hack like this:

line 36 of xoops_version.php
$mydirname = basename( dirname( __FILE__ ) ) ;
if( preg_match( '/^myalbum(\d*)$/' , $mydirname , $regs ) ) {
	$myalbum_number = $regs[1] ;
} else {
	echo "invalid dirname of myalbum: " . htmlspecialchars( $mydirname ) ;
}
$_SESSION['myalbum_mydirname'] = $mydirname ;

$modversion['name'] = _ALBM_MYALBUM_NAME . $myalbum_number ;
$modversion['version'] = 2.83 ;
$modversion['description'] = _ALBM_MYALBUM_DESC;

Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!