PHP Classes

Phoogle Maps

Recommend this page to a friend!

      Phoogle Maps  >  All threads  >  Phoogle Maps  >  (Un) Subscribe thread alerts  
Subject:Phoogle Maps
Summary:Phoogle Maps Error
Messages:4
Author:Gord Likar
Date:2005-10-07 20:50:21
Update:2006-02-13 15:35:07
 

  1. Phoogle Maps   Reply   Report abuse  
Picture of Gord Likar Gord Likar - 2005-10-07 20:50:21
Hi, browsing 'http://localhost/phoogle/phoogle.php' produces this error.

Fatal error: Cannot redeclare class soapclient in /opt/lampp/htdocs/phoogle/nusoap.php on line 6607

Which is the last line of the class. How can I make it work?
Thanks!
Gord

  2. Re: Phoogle Maps   Reply   Report abuse  
Picture of Justin Johnson Justin Johnson - 2005-10-10 14:34:27 - In reply to message 1 from Gord Likar
This is caused by a conflict with the built in PHP5 soap class/client and the nusoap one.

TO FIX: rename all occurense of "soapclient" in nusoap.php file into "soapclientx" (or whatever you want instead of x) and that should fix it.

Thanks to Cochuyt Joeri for the fix.

  3. Re: Phoogle Maps   Reply   Report abuse  
Picture of Gord Likar Gord Likar - 2005-10-12 17:59:19 - In reply to message 2 from Justin Johnson
Tried renaming soapsclient to soapclientx, but it responded with a different soap error. Switched from php5 to php4 (using lampp so that was painless) then template.php responded with 'One point', 'Multiple points'. I assume its now working, now if I can the right ip - licence key match I'll be able to see the full response.
Thanks for your help!
Gord

  4. Re: Phoogle Maps   Reply   Report abuse  
Picture of ashish mathur ashish mathur - 2006-02-13 15:35:07 - In reply to message 2 from Justin Johnson
what line 6647 are you talking about ?? I have a class that has 271 lines and does not work !! Are we both talking about the same class ??