Solved

PrintError() Linux

Posted on 2006-07-02
6
441 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
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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
centos linux 65 186
How do I setup Wordpress to use Master / Slave MySQL database setup? 4 88
SSL/TLS - openssl troubleshooting 3 59
Samba 4, Users Permission, 5 62
Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

763 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