我正在尝试将我的蛋糕php应用程序从实时服务器设置到我本地计算机上的xampp,但是当我在本地运行它时,我收到了很多错误。它在实时服务器上运行良好。请查看以下链接以了解问题。
Warning: Uncaught exception 'SocketException' with message 'SMTP Error: 535 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257 nt15sm10027203pdb.14 - gsmtp' in E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php:253 Stack trace: #0 E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php(144): SmtpTransport->_smtpSend('U3VwZXJkb2cxMg=...', '235') #1 E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php(60): SmtpTransport->_auth() #2 E:\xampp\htdocs\football\lib\Cake\Network\Email\CakeEmail.php(1121): SmtpTransport->send(Object(CakeEmail)) #3 E:\xampp\htdocs\football\app\Lib\AppError.php(27): CakeEmail->send('
Error<...')
#4 E:\xampp\htdocs\football\app\Model\Article.php(2): AppError::handleError(2, 'require_once(Sh...', 'E:\\xampp\\htdocs...', 2, Array)
#5 E:\xampp\htdocs\football\app\Model\Article.php(2): require_once()
#6 E:\xampp\htdocs\football\lib\Cake\Core\App.php(565): include('E:\\xampp\\htdocs...')
#7 [internal function]: App::load('Article')
#8 [interna in E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php on line 253
Fatal error: main(): Failed opening required 'Share/TwitterAPIExchange.php' (include_path='.;E:\xampp\php\PEAR') in E:\xampp\htdocs\football\app\Model\Article.php on line 2
Fatal error: Uncaught exception 'SocketException' with message 'SMTP Error: 535 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257 w17sm10030731pdj.6 - gsmtp' in E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php:253
Stack trace:
#0 E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php(144): SmtpTransport->_smtpSend('U3VwZXJkb2cxMg=...', '235')
#1 E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php(60): SmtpTransport->_auth()
#2 E:\xampp\htdocs\football\lib\Cake\Network\Email\CakeEmail.php(1121): SmtpTransport->send(Object(CakeEmail))
#3 E:\xampp\htdocs\football\app\Lib\AppError.php(27): CakeEmail->send('<pre><h1>Error<...')
#4 [internal function]: AppError::handleError(64, 'main(): Failed ...', 'E:\\xampp\\htdocs...', 2, Array)
#5 E:\xampp\htdocs\football\lib\Cake\Core\App.php(929): call_user_func('AppError::handl...', 64, 'main(): Failed ...', 'E:\\xampp\\htdocs...', 2, Array)
#6 E:\xampp\htdocs\football\lib\Cake\Core\App.php(902): App::_checkFatalError()
#7 [interna in E:\xampp\htdocs\football\lib\Cake\Network\Email\SmtpTransport.php on line 253
答案 0 :(得分:0)
1:打开localhost php.ini文件。它位于服务器的PHP目录中。
2:在php.ini中,请添加以下代码并保存修改后的php.ini文件。
extension=php_openssl.dll
3:如果仍然无法正常工作,请验证您的smtpOptions和权利