fatal error with functions

Support for the IM Portal Project

Moderator: Integra Moderator

fatal error with functions

PostAuthor: Jeevan25 » Mon Jul 17, 2006 10:12 pm

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
Last edited by Jeevan25 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Jeevan25
Newbie
Newbie
 
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 17, 2006 10:09 pm
Cash on hand: 0.00

Re: fatal error with functions

PostAuthor: found it » Thu Jul 20, 2006 7:53 am

Hi

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

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

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:29 am
Cash on hand: 0.00

Re: fatal error with functions

PostAuthor: Teelk » Thu Jul 20, 2006 11:00 am

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...
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: fatal error with functions

PostAuthor: found it » Thu Jul 20, 2006 11:53 am

What he said above...... :mrgreen: <img>
Last edited by found it on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:29 am
Cash on hand: 0.00


Return to IM Portal Support Forum

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]