PEAR error with Email module ...

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

PEAR error with Email module ...

Postby 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
zabelle_motte
 
Posts: 19
Joined: Tue Sep 01, 2009 6:18 am

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

And now it works ...

Postby 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
zabelle_motte
 
Posts: 19
Joined: Tue Sep 01, 2009 6:18 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 14 guests

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