TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 651
  • Total: 652
  • tino

load.php error

Started by mistress, September 11, 2009, 03:18:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mistress

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

G6Cad

Cant help at all until we have the info we ask for in our posting guide.

Please read the Posting Guidelines.html

IchBin

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.

mistress

#3
okay i'll try... see if this are eghnouth details :s if not please do tell

This website is proudly hosted on Crocweb Cloud Website Hosting.