?
Solved

PrintError() Linux

Posted on 2006-07-02
6
Medium Priority
?
446 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 2000 total points
ID: 17026774
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
ID: 17026891
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
ID: 17027021
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:arahming
ID: 17028417
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
ID: 17120493
>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
ID: 17120498
http://www.linuxmigration.com/quickref/window/config.html

may help you.

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

0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

770 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