noiselabs / NoiselabsNuSOAPBundle

Symfony2 bundle for NuSOAP - SOAP Toolkit for PHP
21 stars 20 forks source link

FatalErrorException: Compile Error: Cannot redeclare class nusoap_server #5

Open ThierryDaguin opened 10 years ago

ThierryDaguin commented 10 years ago

Hi, Using a soap_server throws an error : FatalErrorException: Compile Error: Cannot redeclare class nusoap_server

It's because of the file vendor\nusphere\nusoap\lib\nusoap.php that contains all nusoap classes. It is included in the autoload vendor\composer\classmap.php when composer installs nusoap.

Solution: Delete file vendor\nusphere\nusoap\lib\nusoap.php and run the command : composer update

Regards, Thierry

vitorbrandao commented 10 years ago

Hello @ThierryDaguin.

Do you mean vendor/composer/autoload_classmap.php or vendor\composer\classmap.php? If the latter can you post the content of that file?

ThierryDaguin commented 10 years ago

Hello,

Sorry, it's vendor\composer\autoload_classmap.php file.

Hakadel commented 10 years ago

Anyone fix this bug ?

I have the same error :

PHP Fatal error: Cannot redeclare class nusoap_client in /space/www/campagnederentree.sgdf.fr/data/htdocs/capifony/releases/20140505175343/vendor/nusphere/nusoap/lib/class.soapclient.php on line 26

vitorbrandao commented 9 years ago

Hi all, can you retest with 0.2.0 or latest dev-master please? Thanks.