Call to undefined functions: check_mail_url, addentry

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Wilko
Posts: 3
Joined: Wed Jul 19, 2006 3:32 am

Call to undefined functions: check_mail_url, addentry

Post 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.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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 */
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Wilko
Posts: 3
Joined: Wed Jul 19, 2006 3:32 am

Post by Wilko »

My stupid mistake. I did not close the comment. Thank you.
Post Reply