我想在codeigniter中使用google plus注册。我有包括所需要的PHP脚本文件,但我得到的错误(!)致命错误:无法重新声明Google_OAuth2
((!) Fatal error: Cannot redeclare class Google_OAuth2 in D:\wamp\www\Surecash_back\application\libraries\google-plus-api-client-master\src\auth\Google_OAuth2.php on line 453)
您需要它们吗?或者您是否自动加载它们?可能现在正在做这两件事 – Neat
您是否至少可以在此处显示您的代码? – Beginner
使用'include_once()'而不是'include()'。问题解决了。 – Simba