PEAR error with Email module …
Archived from the Xataface Users forum.
zabelle_motte — Tue Sep 08, 2009 4:25 am
Hello !
Let me first of all thank you for this great application that makes the development of applications much more pleasant.
I am working with Xataface 1.1.5 on a php 5.2.5 and mysql 5.0.45 server.
Everything worked well before I installed the Email module.
I encouter the following error message while clicking on the mail icon :
Fatal error: Cannot use object of type PEAR_Error as array in …/xataface-1.1.5r2/modules/Email/actions/email.php on line 79
It seems there is a PEAR library missing.
Could you please let me know wich PEAR library may be at issue ?
Is there any possibility of local install for such missing library or is the server install the only solution ?
Thanks a lot for your answer.
Zabelle
shannah — Tue Sep 08, 2009 12:43 pm
Hi Zabelle,
On line 79 of Email/actions/email.php. i.e. before is says
- Code: Select all
$contentField['widget']['atts']['rows'] = 20;
add the following:
- Code: Select all
if (PEAR::isError($contentField) ){ throw new Exception($contentField->getMessage()); }
Then load the page and let me know what the error message says.
-Steve
zabelle_motte — Mon Sep 14, 2009 4:35 am
I don’t know why … but after sleeping some nights on that problem, it finally works.
I spent some time to verify the right tables where enabled with email action and that perhaps helped …
Thanks and apologies for this useless post …
Zabelle