Well I do not know if this is bug in Bosco (v1.2) or in
my config, but after installation
(/bosco/install/install.php) I've run the
editparams.php script and got 10 times
Warning: Cannot use a scalar value as an array in
/bosco/functions.inc.php on line 525
and then some Smarty warnings and errors about unable
to find header.tpl files and DB Errors
I have made some modifications, but those are not solutions
in editparams.php line 26 changed from
if ($_SESSION["perms"]["editparams"] == '1')
to
if(1)
(looks like the session parameters are lost)
and in main.inc.php
$dbpass = "bosco123"; if \(file\_exists\("local.inc.php"\)\) include\_once \("local.inc.php"\);
changed to
$dbpass = "bosco123"; if \(file\_exists\("local.inc.php"\)\) include \("local.inc.php"\);
because sometimes main.inc.php was included more than
once and the settings from local.inc.php were not
readed and overwritten by defaults.
If you will need any info from me, let m know
Maurycy
Logged In: YES
user_id=665638
It looks like this a bug with some PHP configs (I can't
duplicate it on my box). Try this:
Replace:
while ($line = $res->fetchRow(DB_FETCHMODE_ASSOC))
{
$_SESSION["perms"][$line["name"]] = 1;
With
$_SESSION["perms"] = array();
while ($line = $res->fetchRow(DB_FETCHMODE_ASSOC))
{
$_SESSION["perms"][$line["name"]] = 1;