“致命错误:不能重新宣布上课......”

时间:2011-05-23 09:53:00

标签: symfony1

我已下载此PayPal API

我收到了这个错误:

  

致命错误:无法重新声明课程   / home / me / app1 /中的SOAP_Client   插件/ mbpPlatformFrontendPlugin / lib中/贝宝/贝宝/ SOAP / Client.php   在第83行

奇怪的事情是:如果我将类的名称更改为永远 否则,例如* SOAP_Client_foo *,我得到

  

致命错误:无法重新声明课程   / home / me / app1 /中的SOAP_Client_foo   插件/ mbpPlatformFrontendPlugin / lib中/贝宝/贝宝/ SOAP / Client.php   在第83行

所以我删除了Client.php中的内容并写了这个:

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

这是输出:

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...

我输入了.../paypal$ grep -R 'Client.php' *,我得到了这个:

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

任何帮助?

sf 1.4

Javi

1 个答案:

答案 0 :(得分:0)

为什么不考虑使用:http://www.symfony-project.org/plugins/prestaPaypalPlugin

适用于Symfony 1.4: - )