On 14/07/05, Paul Lesneiwski <[EMAIL PROTECTED]> wrote:
> Please reply ON-list (and really, this belongs on the plugins list)
> 
> >>>I have the calendar and calendar_sql_backend plugins enabled. When I
> >>>turn error reporting on and go the the calendar I get
> >>>
> >>>Warning: retrieve_data(../config/config.php): failed to open stream:
> >>>No such file or directory in
> >>>/usr/share/squirrelmail/plugins/retrieveuserdata/ldap.php on line 32
> >>
> >>i think this was covered on the mailing list a couple weeks ago.  i
> >>think it was poor definition of SM_PATH in that other plugin.  please
> >>check the archives and post back with what you find before we reinvent
> >>the wheel.
> >>
> >>-paul
> >
> > It was my post- I never got resolution
> 
> Then you should have replied on that thread
> 

Sorry

> > Advice was
> >
> > Amend retrieveuserdata/setup.php
> > SET   if (!defined('SM_PATH')) define('SM_PATH', '../');
> > OR    if (!defined('SM_PATH')) define('SM_PATH', '../../');
> >
> > Neither works for me.
> 
> You should still do this anyway (the first one is the correct one).
> Shouldn't fix it either, but the require_once() calls in that same file
> should be changed to include_once().
> 
> > The interesting thing is the retrieve user data
> > plugin works for getting outbound email addresses.
> 
> That's not related to what happens when you click on the calendar link.
>   And let's clarify again for my sanity:
> 
> What versions of shared calendar and SquirrelMail are you running?
> Where EXACTLY does the error happen (and what exactly did you click on?)?

>From the main window

options>Calendar Administration
options>Calendar Preferences
calendar
+ a number of other plug-ins under the options page
All gave

Warning: retrieve_data(../config/config.php): failed to open stream:
No such file or directory in
/usr/share/squirrelmail/plugins/retrieveuserdata/ldap.php on line 32

Fatal error: retrieve_data(): Failed opening required
'../config/config.php' (include_path='.:/usr/share/pear') in
/usr/share/squirrelmail/plugins/retrieveuserdata/ldap.php on line 32

Updated require_once('../var/config/config.php'); to
require_once(SM_PATH.'/config/config.php');

FIXED - Now it all works

For info

SM ver 1.4.4.1
Retrieve User Data Plugin 0.9 (from README)

> 
> If you look at the offending file, I'm not sure how it got included in
> the include path for the calendar page (the plugin probably needs to be
> reviewed for better efficiency if it is somehow including itself in all
> unrelated page requests), but the fix is clear:
> 
> ldap.php, line 32:
> 
>      require_once('../config/config.php');
> 
> has to be changed to
> 
>      require_once(SM_PATH . 'config/config.php');
> 
> 
> >>>Fatal error: retrieve_data(): Failed opening required
> >>>'../config/config.php' (include_path='.:/usr/share/pear') in
> >>>/usr/share/squirrelmail/plugins/retrieveuserdata/ldap.php on line 32
> >>>
> >>>I have tried the changes to the path settings suggested in other posts
> >>>on this subject but have had no joy. Retrieveuserdata works and will
> >>>find users authorised outbound email addresses in normal operation.
> >>>
> >>>Plugins
> >>>  Installed Plugins
> >>>    1. squirrelspell
> >>>    2. newmail
> >>>    3. retrieveuserdata
> >>>    4. calendar
> >>>    5. calendar_sql_backend
> >>>    6. compatibility
> >>>    7. filters
> >>>    8. change_ldappass
> >>>
> >>>php_pear rpm is installed
> >>>
> >>>OS = FC3
> >>>
> >>>regards Robert
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to