2011-05-23 3 views
0

J'ai téléchargé cette PayPal API:« Erreur fatale: Impossible redéclarer classe ... »

Et je reçois cette erreur:

Fatal error: Cannot redeclare class SOAP_Client in /home/me/app1/ plugins/mbpPlatformFrontendPlugin/lib/paypal/PayPal/SOAP/Client.php on line 83

La chose étrange est: si je change la nom de la classe à ce que jamais autre, par exemple * SOAP_Client_foo *, je reçois

Fatal error: Cannot redeclare class SOAP_Client_foo in /home/me/app1/ plugins/mbpPlatformFrontendPlugin/lib/paypal/PayPal/SOAP/Client.php on line 83

Je supprimé le contenu en Client.php et a écrit ceci:

<pre> 
<?php 
    debug_print_backtrace(); 
?> 
</pre> 
<hr /> 

Et voici la sortie:

0 require() called at [/home/me/app1/lib/vendor/symfony/lib/autoload/ 
sfAutoload.class.php:188] 
1 sfAutoload->loadClass(SOAP_Client) called at [/home/me/app1/lib/ 
vendor/symfony/lib/autoload/sfAutoload.class.php: 163] 
2 sfAutoload->autoload(SOAP_Client) 
4 spl_autoload_call(SOAP_Client) called at [/home/me/app1/plugins/ 
mbpPlatformFrontendPlugin/lib/paypal/PayPal/CallerServices.php:36] 
5 PayPal->getWSDLVersion() called at [/home/me/app1/plugins/ 
mbpPlatformFrontendPlugin/lib/paypal/PayPal/Profile.php:126] 
6 Profile->loadEnvironments() called at [/home/me/app1/plugins/ 
mbpPlatformFrontendPlugin/lib/paypal/PayPal/Profile.php:104] 
7 Profile->_load() called at [/home/me/app1/plugins/ 
mbpPlatformFrontendPlugin/lib/paypal/PayPal/API.php:328] 
8 APIProfile::getInstance(, ProfileHandler_Array... 

J'ai tapé .../paypal$ grep -R 'Client.php' *, et je me fais ceci:

PayPal/CallerServices.php://require_once 'PayPal/SOAP/Client.php'; 
PayPal/SOAP/Client.php:// $Id: Client.php,v 1.1.1.1 2006/02/19 
PayPal/SOAP/WSDL.php: //require_once 'PayPal/SOAP/Client.php 

Toute aide?

sf 1.4

Javi

Répondre

Questions connexes