Page 1 of 1

fatal error with functions

PostPosted: Mon Jul 17, 2006 11:12 pm
Author: Jeevan25
I am trying to install this portal on subsilver on a forum that is only modded with Category Hierarchy MOD. I get the following error. I have done everything else correctly.

Fatal error: Call to undefined function: assign_var() in /hsphere/local/home2/tamilfor/tamilwiki.net/forums/includes/page_header.php on line 663

Re: fatal error with functions

PostPosted: Thu Jul 20, 2006 8:53 am
Author: found it
Hi

Which version of cat hier at you using.....?

What is the code at line....663 in includes/page_header.php

:mrgreen:

Re: fatal error with functions

PostPosted: Thu Jul 20, 2006 12:00 pm
Author: Teelk
assign_var() is not supported with cat hierarchy 2.1.x. Therefore, there are some changes that need to be made to the install instructions.

Open includes/page_header.php
FIND
Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url]  // debug forum wide Portal/*if($layout_forum_wide_flag)    $temp_debug = 1;else    $temp_debug = 0;die('debug: ' . strval(empty($gen_simple_header)) . ' | ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_header']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal  if(empty($gen_simple_header)){    if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))    {       $template->set_filenames(array(          'portal_header'         => 'portal_page_header.tpl')       );       portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');       $template->assign_var('HEADER_WIDTH', $portal_config['header_width']);       $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));    }}

REPLACE WITH
Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url]  // debug forum wide Portal/*if($layout_forum_wide_flag)    $temp_debug = 1;else    $temp_debug = 0;die('debug: ' . strval(empty($gen_simple_header)) . ' | ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_header']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal  if(empty($gen_simple_header)){    if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))    {       $template->set_filenames(array(          'portal_header'         => 'portal_page_header.tpl')       );       portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');       $template->assign_vars(array('HEADER_WIDTH' => $portal_config['header_width']));       $template->assign_vars(array('PORTAL_HEADER' => portal_assign_var_from_handle($template, 'portal_header')));    }}

Open includes/page_tail.php
FIND
Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url]  // debug forum wide Portal/*if($layout_forum_wide_flag)    $temp_debug = 1;else    $temp_debug = 0;die('debug: ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_tail']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal  if(!$layout_forum_wide_flag&&$portal_config['portal_tail']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))){    $template->set_filenames(array(       'portal_tail'         => 'portal_page_tail.tpl')    );    portal_parse_blocks($portal_config['default_portal'], TRUE, 'tail');    $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);    $template->assign_var('PORTAL_TAIL', portal_assign_var_from_handle($template, 'portal_tail'));}

REPLACE WITH
Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url]  // debug forum wide Portal/*if($layout_forum_wide_flag)    $temp_debug = 1;else    $temp_debug = 0;die('debug: ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_tail']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal  if(!$layout_forum_wide_flag&&$portal_config['portal_tail']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))){    $template->set_filenames(array(       'portal_tail'         => 'portal_page_tail.tpl')    );    portal_parse_blocks($portal_config['default_portal'], TRUE, 'tail');    $template->assign_vars(array('FOOTER_WIDTH' => $portal_config['footer_width']));    $template->assign_vars(array('PORTAL_TAIL' => portal_assign_var_from_handle($template, 'portal_tail')));}


Think I might need to make a sticky topic with this info in it...

Re: fatal error with functions

PostPosted: Thu Jul 20, 2006 12:53 pm
Author: found it
What he said above...... :mrgreen: <img>