Page 1 of 1

Call to undefined functions: check_mail_url, addentry

Posted: Wed Jul 19, 2006 3:49 am
by Wilko
Script URL: http://www.misterswig.com/guestbook/gbook.php
Version of script: 1.41
Version of PHP: 4.3.10 (http://www.misterswig.com/info.php)
Hosting company: gate.com
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: fatal error, undefined function

Write your message below:

I get the following error message after submitting a guestbook entry:

Fatal error: Call to undefined function: check_mail_url() in /nfs/cust/8/71/95/559178/web/guestbook/gbook.php on line 83

I commented out line 83 of the script to see what would happen.

/* $a=check_mail_url(); $email=$a['email']; $url=$a['url'];

Then I got the following error message:

Fatal error: Call to undefined function: addentry() in /nfs/cust/8/71/95/559178/web/guestbook/gbook.php on line 134

The only change I made to gbook.php was to add the bolded line below to get rid of a "permission denied" error:

error_reporting(E_ALL ^ E_NOTICE);
define('IN_SCRIPT',true);

require_once('settings.php');
$settings['verzija']='1.41';

$a=htmlspecialchars($_REQUEST['a']);
printNoCache();

session_save_path ('/nfs/cust/8/71/95/559178/web/tmp');

So, what is going on with the "call to undefined function" errors?

Thank you very much for any assistance.

Posted: Wed Jul 19, 2006 9:55 am
by Klemen
Hi,

All these functions are inside gbook.php and should be working without a problem if you didn't edit them. Are you sure you also didn't comment out anything? For example

Code: Select all

/* $a=check_mail_url(); $email=$a['email']; $url=$a['url']; 
would comment out ALL code after that, you need to CLOSE comments with */

Posted: Wed Jul 19, 2006 3:43 pm
by Wilko
My stupid mistake. I did not close the comment. Thank you.