Saturday, September 6, 2008

Updates and more Pear MDB2 trouble

I know it has been awhile since I have last posted but I guess I have not run into any major errors lately. However I have run into one particularly tricky error that I can't seem to fix.

The main problem is that the code runs perfectly on my local webserver, its just when I move it to the external webserver that I run into the problem. I am using Pear MDB2 and am just trying to execute a Prepare statement. All of my select statements work great.

Here is the error I am encountering:

Catchable fatal error: Object of class MDB2_Error could not be converted to string in ... on line 917

From what I can tell it might have something to do with the particular version of PHP 5 that is being run on the webserver. It also may have something to do with the php.ini include path, but since I can connect using pear and pull information from the database using pear I don't think this is the issue.

If anyone has any recommendations let me know, otherwise I will keep everyone posted on what I figure out.

Shane