[sork] Re: Horde-forwards error

Eric Rostetter eric.rostetter at physics.utexas.edu
Tue Dec 10 13:44:37 PST 2002


Quoting dietrich dettmann <dettmann@uni-greifswald.de>:

> Hello Eric,
> Can you help me ?
> My horde-forwards write the error
> ************************************************************************
> **************************************************
> Fatal error: Call to undefined function: setparams() in
> /srv/www/htdocs/horde/forwards/lib/Driver/forwards.php on line 197
> ************************************************************************
> ***************************************************

Try this patch.  It won't fix the problem, but maybe it will return some
useful error information that we can use.  Let me know what happens.

Index: forwards.php
===================================================================
RCS file: /repository/forwards/lib/Driver/forwards.php,v
retrieving revision 1.12
diff -u -r1.12 forwards.php
--- forwards.php        15 Nov 2002 03:55:59 -0000      1.12
+++ forwards.php        10 Dec 2002 19:39:06 -0000
@@ -96,6 +96,10 @@

         // Create the VFS ftp driver
         $_vfs = &Horde_VFS::singleton('ftp', $_args);
+        if (PEAR::isError($_vfs)) {
+            $this->err_str = $_vfs->getMessage();
+            return false;
+        }
         $_vfs->setParams($_args);

         // Try to login with the username/password, no realm



-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list