Fatal error: Call to undefined function: opentable() in...

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Fatal error: Call to undefined function: opentable() in...
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
When I try to go to the more smilies when i make a new topic or reply in my forums I get this error:
Fatal error: Call to undefined function: opentable() in /home2/lightgi/public_html/mainfile.php on line 702

function title($text) {
    OpenTable();
        echo "<center><font class=\"title\"><b>$text</b></font></center>";
        CloseTable();
        echo "<br>";

}


The line that says "OpenTable" = line 702. Can some1 please tell me how 2 fix this?


Back to top Reply with quote
#2   Re: Fatal error: Call to undefined function: opentable() in.
madman
CZ Moderator
madman has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 06, 2004
0.00 posts per day
Posts: 21
Points: 1,234
 Yahoo Messenger  


Originally posted by Recoil @ Mon Dec 13, 2004 6:55 am:

When I try to go to the more smilies when i make a new topic or reply in my forums I get this error:
Fatal error: Call to undefined function: opentable() in /home2/lightgi/public_html/mainfile.php on line 702

Common problem when we open forum popup page while nuke theme not currently loaded. To solve the problem (consider this is not a fix), replace the above function (in mainfile.php file) with this one:
function title($text) {
  if (!function_exists('opentable')) return;
  OpenTable();
  echo "<center><font class=\"title\"><b>$text</b></font></center>";
  CloseTable();
  echo "<br>";
}




_________________
Cheers,
madman
Back to top Reply with quote
#3   re: Fatal error: Call to undefined function: opentable() in.
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
hey thanks madman for the quick reply! I replaced the function and uploaded but, when i clicked "more smilies" I get a new error:
Fatal error: Call to undefined function: opentable() in /home2/lightgi/public_html/includes/page_header.php on line 79


<?php

/***************************************************************************

*                              page_header.php

*                            -------------------

*   begin                : Saturday, Feb 13, 2001

*   copyright            : (C) 2001 The phpBB Group

*   email                : [ Register or login to view links on this board. ]

*

*   $Id: page_header.php,v 1.106.2.22 2004/03/01 16:46:37 psotfx Exp $

*

*

***************************************************************************/

/***************************************************************************

* phpbb2 forums port version 2.0.5 (c) 2003 - Nuke Cops (http://nukecops.com)

*

* Ported by Nuke Cops to phpbb2 standalone 2.0.5 Test

* and debugging completed by the Elite Nukers and site members.

*

* You run this package at your sole risk. Nuke Cops and affiliates cannot

* be held liable if anything goes wrong. You are advised to test this

* package on a development system. Backup everything before implementing

* in a production environment. If something goes wrong, you can always

* backout and restore your backups.

*

* Installing and running this also means you agree to the terms of the AUP

* found at Nuke Cops.

*

* This is version 2.0.5 of the phpbb2 forum port for PHP-Nuke. Work is based

* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was based

* on the phpbb2 standalone version 2.0.3. Our version 2.0.5 from Nuke Cops is

* now reflecting phpbb2 standalone 2.0.5 that fixes some bugs and the

* invalid_session error message.

***************************************************************************/

/***************************************************************************

*   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002

*   by Tom Nitzschner (tom@toms-home.com)

*   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)

*

*   As always, make a backup before messing with anything. All code

*   release by me is considered sample code only. It may be fully  <<<<<<line 79<<<<

*   functual, but you use it at your own risk, if you break it,

*   you get to fix it too. No waranty is given or implied.

*

*   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,

*   then on my site. All original header code and copyright messages will be maintained

*   to give credit where credit is due. If you modify this, the only requirement is

*   that you also maintain all original copyright messages. All my work is released

*   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.

*

***************************************************************************/

/***************************************************************************

*

*   This program is free software; you can redistribute it and/or modify

*   it under the terms of the GNU General Public License as published by

*   the Free Software Foundation; either version 2 of the License, or

*   (at your option) any later version.

*

***************************************************************************/



if ( !defined('IN_PHPBB') )

{

   die("Hacking attempt");

}

define('HEADER_INC', TRUE);



global $name, $sitename, $is_inline_review;



$sql = "SELECT custom_title from ".$prefix."_modules where name='$name'";

$result = $db->sql_query($sql);

$row = $db->sql_fetchrow($result);

if ($row[custom_name] == "") {

    $mod_name = ereg_replace("_", " ", $name);

} else {

    $mod_name = $row[custom_name];

}

if (!$is_inline_review & $mod_name != "Private Messages") {

    title("$sitename: $mod_name");

}

    OpenTable();

define('HEADER_INC', TRUE);



//

// gzip_compression

//

$do_gzip_compress = FALSE;

if ( $board_config['gzip_compress'] )

{

        $phpver = phpversion();



        $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;



        if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )

        {

                if ( extension_loaded('zlib') )

                {

                        ob_start('ob_gzhandler');

                }

        }



Back to top Reply with quote
#4   re: Fatal error: Call to undefined function: opentable() in.
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
line 79 begins... release by me. thanks for ne ideas. i don't get it. it seems to just be a comment.



Back to top Reply with quote
#5   re: Fatal error: Call to undefined function: opentable() in.
silvyn
CZ Newbie
silvyn has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Dec 18, 2004
0.00 posts per day
Posts: 2
Points: 192
   
Hello,

I'm french, so excume-me for my english !

I had the same problem, and i have sold it by remplace the file "page_header.php" from "includes" folder, with the file from complete install of phpBB 2.0.11, and it work perfectly now, even without the modification of the mainfile.php.
The little things, it that change a little the look of thema page, espacially the css.
Good luck thumbsup.gif
Silvyn!




_________________
Silvyn!
Back to top Reply with quote
#6   Re: re: Fatal error: Call to undefined function: opentable()
madman
CZ Moderator
madman has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 06, 2004
0.00 posts per day
Posts: 21
Points: 1,234
 Yahoo Messenger  


Originally posted by Recoil @ Sat Dec 18, 2004 3:51 pm:

line 79 begins... release by me. thanks for ne ideas. i don't get it. it seems to just be a comment.

Do not use/overwrite/upgrade forum files to script files came with original phpBB. To be sure, open "modules/Forums/posting.php" and be sure the following lines must be exists at the beginning of the script file:
if ($popup != "1"){
  $module_name = basename(dirname(__FILE__));
  require("modules/".$module_name."/nukebb.php");
}
else
{
  $phpbb_root_path = 'modules/Forums/';
}


Please Note:
To perform forum upgrade, please do not use original phpbb files. Instead, download forum upgrade specified for phpbb/bb2nuke, you can get the upgrade packages here at CZ ( [ Register or login to view links on this board.] ), from nukecops or any other phpnuke community websites.

Mixups both phpbb and bb2nuke files is strongly not recommended, coz causing lots of problems while tracking errors or debugging. If you do so, use with your own risks.



_________________
Cheers,
madman
Back to top Reply with quote
#7   re: Fatal error: Call to undefined function: opentable() in.
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
this is gonna mess up my mods icon_cry.gif I was already upgraded to 2.0.11



Back to top Reply with quote
#8   Re: re: Fatal error: Call to undefined function: opentable()
Ivo2
CZ Newbie
Ivo2 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 04, 2003
0.00 posts per day
Posts: 16
Points: 1,378
   


Originally posted by madman @ Sun Dec 19, 2004 7:47 am:



Originally posted by Recoil @ Sat Dec 18, 2004 3:51 pm:

line 79 begins... release by me. thanks for ne ideas. i don't get it. it seems to just be a comment.

Do not use/overwrite/upgrade forum files to script files came with original phpBB. To be sure, open "modules/Forums/posting.php" and be sure the following lines must be exists at the beginning of the script file:
if ($popup != "1"){
  $module_name = basename(dirname(__FILE__));
  require("modules/".$module_name."/nukebb.php");
}
else
{
  $phpbb_root_path = 'modules/Forums/';
}


Please Note:
To perform forum upgrade, please do not use original phpbb files. Instead, download forum upgrade specified for phpbb/bb2nuke, you can get the upgrade packages here at CZ ( [ Register or login to view links on this board.] ), from nukecops or any other phpnuke community websites.

Mixups both phpbb and bb2nuke files is strongly not recommended, coz causing lots of problems while tracking errors or debugging. If you do so, use with your own risks.

Got the same problems after upgrading to 2.0.11
My lines in the page_header
define('HEADER_INC', TRUE);

global $name, $sitename, $is_inline_review;

$sql = "SELECT custom_title from ".$prefix."_modules where title='$name'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row[custom_name] == "") {
    $mod_name = ereg_replace("_", " ", $name);
} else {
    $mod_name = $row[custom_name];
}
if (!$is_inline_review & $mod_name != "Private Messages") {
    title("$sitename: $mod_name");
}
    OpenTable();
define('HEADER_INC', TRUE);

//
// gzip_compression
//
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
        $phpver = phpversion();

It was on the line 42 in page_header that's OpenTable();
Any idea ?
thx a lot


Back to top Reply with quote
#9   
Ivo2
CZ Newbie
Ivo2 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 04, 2003
0.00 posts per day
Posts: 16
Points: 1,378
   
I tried the page_header from phpbb2.0.11 and it seems to works fine icon_question.gif



Back to top Reply with quote
#10   re: Fatal error: Call to undefined function: opentable() in.
silvyn
CZ Newbie
silvyn has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Dec 18, 2004
0.00 posts per day
Posts: 2
Points: 192
   
Goodnight ! icon_smile.gif

An another way, without use an phpBB original file (header.php)

In the nukephpbb file :
includes/functions_post.php

near line 775 (in my file), find this :
include('includes/page_header.'.$phpEx);

and replace by
include('includes/page_header_review.php');


Bye bye



_________________
Silvyn!
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum