本地PHP站点是空白的 [英] Local PHP site is blank

查看:55
本文介绍了本地PHP站点是空白的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我打开我的网站时,登录页面很好,但登录页面后空白并没有显示任何内容。我被分配编辑并添加一些由其他人开发的项目的功能,它在他们的服务器上正常运行,但是当我在我的电脑上安装时我遇到了这个问题。



我去了日志我收到了这个错误,请帮助,谢谢。



Hi,

when I open my site, the log in page is fine, but after log in the page is blank doesn't show anything. I'm assigned to edit and add some function to this project that is develop by someone else, it's running ok on their server, but when I setup on my pc I face this issue.

I went to the log I got this error, please help, thanks.

[2016-05-30 14:36:35] request.CRITICAL: Uncaught PHP Exception cc\PiwikBundle\Exception\ConnectException: "exception 'GuzzleHttp\Ring\Exception\ConnectException' with message '0' in E:\project\piwik\vendor\guzzlehttp\ringphp\src\Client\CurlFactory.php:150 Stack trace: 

#0 E:\project\piwik\vendor\guzzlehttp\ringphp\src\Client\CurlFactory.php(89): GuzzleHttp\Ring\Client\CurlFactory::createErrorResponse(Object(GuzzleHttp\Ring\Client\CurlHandler), Array, Array) 
#1 E:\project\piwik\vendor\guzzlehttp\ringphp\src\Client\CurlHandler.php(77): GuzzleHttp\Ring\Client\CurlFactory::createResponse(Object(GuzzleHttp\Ring\Client\CurlHandler), Array, Array, Array, Resource id #439) 
#2 E:\project\piwik\vendor\guzzlehttp\ringphp\src\Client\Middleware.php(54): GuzzleHttp\Ring\Client\CurlHandler->__invoke(Array) 
#3 E:\project\piwik\vendor\guzzlehttp\ringphp\src\Client\Middleware.php(30): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array) 
#4 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(138): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array) 
#5 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(91): GuzzleHttp\RequestFsm->send(Object(GuzzleHttp\Transaction)) 
#6 E:\project\piwik\vendor\guzzlehttp\guzzle\src\Client.php(256): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction)) 
#7 E:\project\piwik\src\cc\PiwikBundle\Client\Client.php(62): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request)) 
#8 E:\project\piwik\src\cc\PiwikBundle\Provider\ClientProvider.php(42): cc\PiwikBundle\Client\Client->post('module=API&meth...', Array) 
#9 E:\project\piwik\src\cc\TagBundle\Proxy\AbstractProxy.php(81): cc\PiwikBundle\Provider\ClientProvider->post('module=API&meth...', Array) 
#10 E:\project\piwik\src\cc\TagBundle\Manager\TagManager.php(29): cc\TagBundle\Proxy\AbstractProxy->process(Object(cc\TagBundle\Model\RequestData)) 
#11 E:\project\piwik\src\cc\TagBundle\Provider\Provider.php(77): cc\TagBundle\Manager\TagManager->get() 
#12 E:\project\piwik\src\cc\TagBundle\Controller\TagController.php(25): cc\TagBundle\Provider\Provider->getTags() 
#13 [internal function]: cc\TagBundle\Controller\TagController->indexAction(Object(Symfony\Component\HttpFoundation\Request)) 
#14 E:\project\piwik\app\bootstrap.php.cache(2976): call_user_func_array(Array, Array) 
#15 E:\project\piwik\app\bootstrap.php.cache(2938): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) 
#16 E:\project\piwik\app\bootstrap.php.cache(3087): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#17 E:\project\piwik\app\bootstrap.php.cache(2337): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#18 E:\project\piwik\web\app.php(27): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) 
#19 {main}  Next exception 'GuzzleHttp\Exception\ConnectException' with message '0' in E:\project\piwik\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:49 Stack trace: 

#0 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(160): GuzzleHttp\Exception\RequestException::wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\ConnectException)) 
#1 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(91): GuzzleHttp\RequestFsm->error(Object(GuzzleHttp\Transaction)) 
#2 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RingBridge.php(121): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction)) 
#3 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(140): GuzzleHttp\RingBridge::completeRingResponse(Object(GuzzleHttp\Transaction), Array, Object(GuzzleHttp\Message\MessageFactory), Object(GuzzleHttp\RequestFsm)) 
#4 E:\project\piwik\vendor\react\promise\src\FulfilledPromise.php(24): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array) 
#5 E:\project\piwik\vendor\guzzlehttp\ringphp\src\Future\CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) 
#6 E:\project\piwik\vendor\guzzlehttp\guzzle\src\Message\FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL) 
#7 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(143): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure)) 
#8 E:\project\piwik\vendor\guzzlehttp\guzzle\src\RequestFsm.php(91): GuzzleHttp\RequestFsm->send(Object(GuzzleHttp\Transaction)) 
#9 E:\project\piwik\vendor\guzzlehttp\guzzle\src\Client.php(256): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction)) 
#10 E:\project\piwik\src\cc\PiwikBundle\Client\Client.php(62): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request)) 
#11 E:\project\piwik\src\cc\PiwikBundle\Provider\ClientProvider.php(42): cc\PiwikBundle\Client\Client->post('module=API&meth...', Array) 
#12 E:\project\piwik\src\cc\TagBundle\Proxy\AbstractProxy.php(81): cc\PiwikBundle\Provider\ClientProvider->post('module=API&meth...', Array) 
#13 E:\project\piwik\src\cc\TagBundle\Manager\TagManager.php(29): cc\TagBundle\Proxy\AbstractProxy->process(Object(cc\TagBundle\Model\RequestData)) 
#14 E:\project\piwik\src\cc\TagBundle\Provider\Provider.php(77): cc\TagBundle\Manager\TagManager->get() 
#15 E:\project\piwik\src\cc\TagBundle\Controller\TagController.php(25): cc\TagBundle\Provider\Provider->getTags() 
#16 [internal function]: cc\TagBundle\Controller\TagController->indexAction(Object(Symfony\Component\HttpFoundation\Request)) 
#17 E:\project\piwik\app\bootstrap.php.cache(2976): call_user_func_array(Array, Array) 
#18 E:\project\piwik\app\bootstrap.php.cache(2938): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) 
 ......... 

[2016-05-30 14:36:35] security.NOTICE: It is recommended that you enable the "openssl" extension for random number generation. [] []
-- 





我的尝试:



我还没有尝试任何东西,我不太了解php



What I have tried:

I have not tried anything, I don't know much about php

推荐答案

错误消息点到Guzzle客户端和PHP CURL。

1.如果你已经有一个较旧版本的Guzzle,那么你可能没有在PHP中安装cURL库 [ ^ ];或者

2.安装最新的 Guzzle [ ^ ],不需要CURL。

祝你好运。
The error messages point to the Guzzle client and the PHP CURL.
1. If you already have an older version of Guzzle, then you may not have Install cURL Library in PHP[^]; or
2. Install the latest Guzzle[^] which does not require CURL.
Good luck.


这篇关于本地PHP站点是空白的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆