Solved

PrintError() Linux

Posted on 2006-07-02
6
434 Views
Last Modified: 2007-12-19
PHP Fatal error:  Call to undefined function printError() in /var/www/html/mailgate/mailGate.php on line 87

anyone know what this means and how to fix it
0
Comment
Question by:arahming
  • 5
6 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
Comment Utility
I'll make this a little easier for everyone else:

     77 /* *********** Setup *********** */
     78 $chdir = dirname(__FILE__);
     79 chdir("$chdir");
     80
     81 $server_settings_path = "../configuration/server_settings.php";
     82 $website_settings_path = "../configuration/website_settings.php";
     83
     84 if (file_exists($server_settings_path)) {
     85     $ooz_server_settings = parse_ini_file($server_settings_path);
     86 } else {
     87     printError("The server_settings.php file was not found !");
     88     exit;
     89 }


The problem is the method that you are using to call this script. Are you doing it via POP (cron) or via the sendmail process?
0
 
LVL 22

Expert Comment

by:pjedmond
Comment Utility
I suspect that you are using the sendmail forwarding process?

Muxh easier to have a seperate POP3 account configured for this. Then configure:

http://192.168.1.100/ooz/admin/control.php?t=settings

for POP3 settings.

You then need to add a crontab:
------8X---------------
0,10,20,30,40,50 * * * * /var/www/html/mailgate/mailGate.php
------8X---------------

This will then check every 10 minutes for any emails, and automatically download and process them.

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
Comment Utility
You can "|" it directly via senmail aliases, but there are so many potential configuration issues, that I definitely consider the above to be the simplest for you.

(   (()
(`-' _\
 ''  ''
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Author Comment

by:arahming
Comment Utility
Dude i just went ahead and rebuilt the box was going to finish at girls house but it keeps turning black say out of frequency
0
 
LVL 22

Expert Comment

by:pjedmond
Comment Utility
>keeps turning black say out of frequency

This means that you /etc/X11/xorg.conf or XF86Config file is incorrectly configured.

Run in single or console mode:

/usr/X11R6/bin/xf86config

and answer the Qs - Err on the 'conservative side'. Once you have a working X, then you can use the graphical tools availavle.

(   (()
(`-' _\
 ''  ''

0
 
LVL 22

Expert Comment

by:pjedmond
Comment Utility
http://www.linuxmigration.com/quickref/window/config.html

may help you.

(   (()
(`-' _\
 ''  ''

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now