PEAR and SOAP Woes
| From: | Patrick Hendricks | Date: | Fri, 07 Feb 2003 01:21:40 +0000 |
| Subject: | PEAR and SOAP Woes | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3642@lists.php.net to get a copy of this message | ||
I'm working on a project that includes using another groups source code
(yay) for a seach engine. I do not know their server configuration and
I have to beat them with a bat for them to tell me anything. So,
hopefully I can get some help from you guys (or at least tell me where
to find a nice bat).
Just so you know, I've never worked with PEAR or SOAP before.
I am running a Linux server and I installed the latest php and apache
(plus mod_php). I installed soap and it's dependancies by using the
command, "pear install blah..." This installed the packages in
/usr/lib/php. Now everything should be installed and working, so i go
and test it out. everything is working fine until i actually do a
search. I'm guessing this is where it will actually use the PEAR
packages. The error I get is:
*Warning*: unable to call soap_client::__set() handler in
*/home/httpd/htdocs/cs519/DL/htdocs/lib/SOAP/Client.php* on line *399*
*Warning*: Unable to set property: docparams in
*/home/httpd/htdocs/cs519/DL/htdocs/lib/SOAP/Client.php* on line *399*
*Warning*: Invalid argument supplied for foreach() in
*/home/httpd/htdocs/cs519/DL/htdocs/lib/SOAP/Base.php* on line *831*
Fatal error: Cannot redeclare class net_dime_record in
/home/httpd/htdocs/cs519/DL/htdocs/lib/Net/DIME.php on line 69
I see that it's trying to call DIME inside the htdocs directory when I
have one installed in the /usr/lib/php directory. So I'm guessing it
cannot redeclare the class becuase it is already declared in
/usr/lib/php/net/DIME.php? Anyways, I look in their lib directory in
the and see that they have SOAP and all it's dependancies in there and
are probably calling those instead of the ones I installed. So I got
rid of the packages I installed to see if it would work then. I then
got this error:
Fatal error: Cannot return overloaded elements or string offsets by
reference in /home/httpd/htdocs/cs519/DL/htdocs/lib/SOAP/Base.php on
line 322
I have no clue what was wrong with it, since it works on the other
groups server. So I said "screw it" and re-installed SOAP, etc. back in
to /usr/lib/php. I then decided to try weird things. I figure if they
want to call the files directly, then i'll just make the SOAP and other
such files that they call in the web directory soft links to the
corrosponding directory in the /usr/lib/php directory. Let me tell you,
all hell broke loose when that happened. I got notices, warnings, and
fatal errors up to wazoo for that. If you want to look at those, I
included them as an attached file.
Does anybody have any ideas as to what might be going on, how I could
fix it?
I'm guessing "worst" case scenario is changing their code to stop
pointing to their SOAP package in the web directory and start pointing
to the one in the php directory. Perhaps a different version allowed
you to have it in the web directory? I dunno, I'm clueless about it and
I'm probably speculating too much.
Thanks!
Pat