Fatal error: Cannot use object of type PEAR_Error as array

A place for users and developers of the Xataface to discuss and receive support.

Fatal error: Cannot use object of type PEAR_Error as array

Postby rhc » Mon May 30, 2011 6:51 am

I suddenly started getting this error yesterday afternoon after a week of my xataface app working fine.
Fatal error: Cannot use object of type PEAR_Error as array in /home2/networq5/public_html/xataface-1.3rc3/Dataface/Table.php on line 3018

I searched for it on your site and found the following:

-------------------
I cant do the following because my installation doesnt seem to have a Dataface/Tables.php file

You may have to debug this one for me a little.

Go to line 1970 in your Dataface/Tables.php file:
CODE: SELECT ALL
$data = $parser->parse($tsql);

Add a line after this as follows:
CODE: SELECT ALL
if ( PEAR::isError($data) ){
echo $data->getMessage();
}

I saw that the end result of this was:" PHP was not compiled with the ctype functions"
Is there some way I can check and see if that the problem before I call Host Monster?
----------------------
1. Corrupted files (the fields.ini files)
i checked this and it seems to be fine. Is there someway to know whether its corrupted?
2. You have made some changes to either the database schema or the fields.ini file (or the relationships.ini file) with some incorect SQL syntax.
I checked all the tables in phpMyAdmin and they all ran fine. Additionally I was able to browse and add rows.
I did make some changes but I seem to be able to use the table in question without difficulty in
3. Some of the database didn't get generated properly.
seems fine.

Any other suggestions.

thanks

Bob
rhc
 
Posts: 12
Joined: Sun May 22, 2011 12:01 pm

Re: Fatal error: Cannot use object of type PEAR_Error as array

Postby rhc » Mon May 30, 2011 8:43 am

i have since confirmed with host monster that the ctype functions are configured.
rhc
 
Posts: 12
Joined: Sun May 22, 2011 12:01 pm

Re: Fatal error: Cannot use object of type PEAR_Error as array

Postby shannah » Mon May 30, 2011 10:14 am

My guess is that your password column in the [_auth] section of your conf.ini has a typo. This is case sensitive.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Fatal error: Cannot use object of type PEAR_Error as array

Postby rhc » Mon May 30, 2011 10:26 am

I figured it out. I had an illegal character (.) in one of my mySQL column names.
rhc
 
Posts: 12
Joined: Sun May 22, 2011 12:01 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 28 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved