Solved

PrintError() Linux

Posted on 2006-07-02
6
444 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 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
Industry Leaders: 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

691 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