TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: mistress on September 11, 2009, 03:18:24 PM

Title: load.php error
Post by: mistress on September 11, 2009, 03:18:24 PM
hm can someone help me? this error shows up and from what i know its some prob in this code i cant figure what:s

Fatal error: Cannot redeclare template_main() (previously declared in /home/XXXXXXXX/public_html/Sources/Load.php(1742) : eval()'d code:8) in /home/XXXXXXXX/public_html/Sources/Load.php(1742) : eval()'d code on line 733


function loadPermissions()
{
global $user_info, $db_prefix, $board, $board_info, $modSettings;

$user_info['permissions'] = array();

if ($user_info['is_admin'])
return;

if (!empty($modSettings['cache_enable']))
{
$cache_groups = $user_info['groups'];
asort($cache_groups);
$cache_groups = implode(',', $cache_groups);

if ($modSettings['cache_enable'] >= 2 && !empty($board) && ($temp = cache_get_data('permissions:' . $cache_groups . ':' . $board, 240)) != null)
{
list ($user_info['permissions']) = $temp;
banPermissions();

return;
}
elseif (($temp = cache_get_data('permissions:' . $cache_groups, 240)) != null)
list ($user_info['permissions'], $removals) = $temp;
}

if (empty($user_info['permissions']))
{


Extra info:

it shows this...
When i do that...in the article modifying, adding comments:s
The version is use is smf  1.1.10 tinyportal v1.0 beta4
and i dont think i installed any mods yet
the theme im using http://www.tinyportal.net/index.php?topic=29512.0  and modifying it
The error also shows up when i try to add blocks
Title: Re: load.php error
Post by: G6Cad on September 11, 2009, 03:23:07 PM
Cant help at all until we have the info we ask for in our posting guide.

Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
Title: Re: load.php error
Post by: IchBin on September 11, 2009, 04:11:14 PM
Don't think it has anything to do with the code you posted. Please do as G6 says, as well as give us some background on your problem. Did this just happen after an install? Did it happen after a mod install? Does it happen when you only look at a certain page/article/block? Please give us some details.

Attach your Load.php after giving details please.
Title: Re: load.php error
Post by: mistress on September 11, 2009, 04:52:05 PM
okay i'll try... see if this are eghnouth details :s if not please do tell