Topic: Undefined function - HELP

Hello. I suddenly got this error when trying accessing my forum:

Fatal error: Call to undefined function: pun_htmlspecialchars() in /hsphere/local/home/webtask/gufs.eterya.com/index.php on line 8

Have no idea why this happend.
Here´s the code wich the error referres to:



<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Hjem';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php'; 
?>

Anybody know?

Edit: I just found that I posted this under PunBB 1.3. My version is 1.2

Last edited by rexron (2009-07-31 15:09:42)

Re: Undefined function - HELP

Does PUN_ROOT/include/functions.php still exists? if not re-upload it.

And if it exists does the function pun_htmlspecialchars exists?

Last edited by kierownik (2009-07-31 16:30:48)

Re: Undefined function - HELP

Never mind.

While editing the forum I managed to overwrite common.php in the root folder with the one from from the language folder.

Quite embarresing  roll

Uploaded the right common.php to root and everything is ok smile

Last edited by rexron (2009-07-31 16:48:54)