The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PHP Fusebox and Error Handling

I am trying to integrate some error checking into our fusebox app. However, no matter what I try, I get errors reported where there were no previous errors. That happened yesterday. I have since brought home the error checking code and I just tried it on a much smaller, less complicated fusebox program I am working on. Same result.

Can anyone post some samples of what you do?

Below is what I am currently trying

fbx_Settings.php

PHP Code:

// Define what type of errors we want to handleerror_reporting(E_ERROR | E_WARNING);

This is the error that I am getting. Strange thing is, I haven't touched that file. Standard fusebox file straight from the zip file.
The error originated from file fbx_Fusebox3.0_PHP4.1.x.php at line number 203

Here are the lines around it. Line 203 is the line with $FB_["fullPath"]

PHP Code:

/**********************SECTION NINE*********************Attempt to include any nested fbx_Settings.php files, in top-to-bottom order so that variables set in children fbx_Settings.php files can overwrite variables set in higher fbx_Settings.php files. To prevent children fbx_Settings.php files from overwriting variables, use if(!isset(...)) rather than an outright variable assignment ($var = "value"[img]images/smilies/wink.gif[/img]. Alternately, any child fbx_Settings.php can set a variable and lower fbx_Settings.cfm files cannot overwrite it unless they set the variable outright. If any fbx_Settings.php file or directory alias cannot be found, continue on.*/$FB_["fullPath"] = ListRest($Fusebox["circuits"][$Fusebox["targetCircuit"]], "/" ); //make a variable to hold the full path down to the target, excluding the root$FB_["corePath"] = ""; //initialize$Fusebox["thisCircuit"] = $Fusebox["homeCircuit"]; //current circuit, set to root now

Your error handling looks okay; basically I have roughly the same script

It could be the path set in the last parameter for the variable

PHP Code:

# check last parameter ?.$FB_['fullPath'] = ... '/');

Also check that the re-direct file exists ? Chance that you'll not get the error output to your screen as your using your own handler - if the file doesn't exist for example, or is in another directory...