FacebookAds\Exception\Exception: Connection timed out after 10000 milliseconds - facebook

I have a cron job that pulls data from Facebook very frequently all day long.
Many times per day, I get an error like this one:
FacebookAds\Exception\Exception: Connection timed out after 10001 milliseconds in /vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Adapter/CurlAdapter.php:196
Stack trace:
#0 /vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Client.php(204): FacebookAds\Http\Adapter\CurlAdapter->sendRequest(Object(FacebookAds\Http\Request))
#1 /vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Request.php(282): FacebookAds\Http\Client->sendRequest(Object(FacebookAds\Http\Request))
#2 /vendor/facebook/php-ads-sdk/src/FacebookAds/Api.php(151): FacebookAds\Http\Request->execute()
#3 /vendor/facebook/php-ads-sdk/src/FacebookAds/Api.php(193): FacebookAds\Api->executeRequest(Object(FacebookAds\Http\Request))
#4 /vendor/facebook/php-ads-sdk/src/FacebookAds/ApiRequest.php(183): FacebookAds\Api->call('/act_1010015700...', 'GET', Array, Array)
#5 /app/Helpers/FacebookHelper.php(173): FacebookAds\ApiRequest->execute()
#6 /app/Helpers/FacebookHelper.php(271): App\Helpers\FacebookHelper->getInsights('AdAccount', 'act_10100157003...', 'ad', '2017-06-23', '2017-06-23', Array)
#7 /app/Helpers/FacebookHelper.php(360): App\Helpers\FacebookHelper->getReport('AdAccount', 'act_10100157003...', 'ad', '2017-06-23', '2017-06-23', Array)
#8 /app/Console/Commands/CheckWhetherFacebookAdsStartedRunning.php(50): App\Helpers\FacebookHelper->getDashAds('2017-06-23', '2017-06-23')
#9 [internal function]: App\Console\Commands\CheckWhetherFacebookAdsStartedRunning->handle()
#10 /vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array(Array, Array)
#11 /vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 /vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#13 /vendor/laravel/framework/src/Illuminate/Container/Container.php(539): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#14 /vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Illuminate\Container\Container->call(Array)
#15 /vendor/symfony/console/Command/Command.php(264): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#16 /vendor/laravel/framework/src/Illuminate/Console/Command.php(167): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#17 /vendor/symfony/console/Application.php(869): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /vendor/symfony/console/Application.php(223): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\CheckWhetherFacebookAdsStartedRunning), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /vendor/symfony/console/Application.php(130): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(122): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 {main}
Level
----------------
ERROR
I see here in the Facebook API that CURLOPT_CONNECTTIMEOUT is set to 10 seconds.
I'd like to try adjusting the timeout to 20 seconds.
I've been unable to figure out how to change that value without editing the source code in that library (which I definitely don't want to do because then it will be overwritten on the next upgrade).
I'm calling $ad->getInsights($fields, $params, true); (code) and then executing that request.
How can I override the Curl options that Facebook uses as a default?

Had the same issue still in 2021 and was looking for an answer.
Looking through the issue from #Ryan comment and check the current state of the code.
So now in 2021 there is an "easy" way todo this:
$api = Api::init($appId, $appSecret, $appToken);
$opts = $api->getHttpClient()->getAdapter()->getOpts();
if ($opts instanceof \ArrayObject && $opts->offsetExists(CURLOPT_CONNECTTIMEOUT)) {
$opts->offsetSet(CURLOPT_CONNECTTIMEOUT, 30);
$api->getHttpClient()->getAdapter()->setOpts($opts);
}

In the file:
/facebook-php-ads-sdk/src/FacebookAds/Http/Adapter/CurlAdapter.php
I changed:
CURLOPT_CONNECTTIMEOUT => 10
to
CURLOPT_CONNECTTIMEOUT => 20
It works every time so far...

Related

Icon with identifier "default-not-found" is not registered

I am getting every now and than the following error:
1437425804: Icon with identifier "default-not-found" is not registered
This error occurs only, if a backend users is logged in. For users, who are just visiting the website (without a backend user login session) the website works just fine.
I am not aware of an icon with the identifier default-not-found and don't know where to start debugging. Extension scanner looks fine. Anyone a hint?
EDIT
This is the backtrace for the error:
Fri, 19 Mar 2021 12:28:52 +0100 [CRITICAL] request="915b1165ead20" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1437425804: Icon with identifier "default-not-found" is not registered" | TYPO3\CMS\Core\Exception thrown in file /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Imaging/IconRegistry.php in line 674. Requested URL: https://www.example.com/typo3/index.php?route=%2Fmain&token=--AnonymizedToken-- - {"TYPO3_MODE":"BE","exception":"TYPO3\CMS\Core\Exception: Icon with identifier "default-not-found" is not registered" in /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Imaging/IconRegistry.php:674
Stack trace:
#0 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Imaging/IconFactory.php(101): TYPO3\CMS\Core\Imaging\IconRegistry->getIconConfigurationByIdentifier('default-not-fou...')
#1 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/ViewHelpers/IconViewHelper.php(95): TYPO3\CMS\Core\Imaging\IconFactory->getIcon('default-not-fou...', 'small', NULL, Object(TYPO3\CMS\Core\Type\Icon\IconState))
#2 /.../htdocs/public/typo3temp/var/cache/code/fluid_template/Standard_action_item_b54b300f03583ab82882169cfd221356f096f500.php(77): TYPO3\CMS\Core\ViewHelpers\IconViewHelper::renderStatic(Array, Object(Closure), Object(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext))
#3 /.../htdocs/typo3_src-10.4.12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(186): Standard_action_item_b54b300f03583ab82882169cfd221356f096f500->render(Object(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext))
#4 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php(75): TYPO3Fluid\Fluid\View\AbstractTemplateView->render()
#5 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Controller/BackendController.php(329): TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem->getItem()
#6 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Controller/BackendController.php(276): TYPO3\CMS\Backend\Controller\BackendController->renderToolbar()
#7 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Controller/BackendController.php(214): TYPO3\CMS\Backend\Controller\BackendController->renderTopbar()
#8 [internal function]: TYPO3\CMS\Backend\Controller\BackendController->mainAction(Object(TYPO3\CMS\Core\Http\ServerRequest))#9 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Http/RouteDispatcher.php(66): call_user_func_array(Array, Array)
#10 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Http/RequestHandler.php(94): TYPO3\CMS\Backend\Http\RouteDispatcher->dispatch(Object(TYPO3\CMS\Core\Http\ServerRequest))
#11 /.../htdocs/typo3_src-10.4.12/typo3/sysext/extbase/Classes/Middleware/SignalSlotDeprecator.php(49): TYPO3\CMS\Backend\Http\RequestHandler->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#12 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Extbase\Middleware\SignalSlotDeprecator->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(TYPO3\CMS\Backend\Http\RequestHandler))
#13 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/SiteResolver.php(69): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#14 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\SiteResolver->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#15 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/AdditionalResponseHeaders.php(41): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#16 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\AdditionalResponseHeaders->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#17 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/OutputCompression.php(47): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#18 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\OutputCompression->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#19 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php(78): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#20 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#21 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php(58): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#22 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\BackendRouteInitialization->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#23 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php(55): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#24 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#25 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php(75): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#26 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Backend\Middleware\LockedBackendGuard->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#27 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php(45): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#28 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(172): TYPO3\CMS\Core\Middleware\ormalizedParamsAttribute->process(Object(TYPO3\CMS\Core\Http\ServerRequest), Object(class#anonymous))
#29 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(78): class#anonymous->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#30 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/AbstractApplication.php(85): TYPO3\CMS\Core\Http\MiddlewareDispatcher->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#31 /.../htdocs/typo3_src-10.4.12/typo3/sysext/backend/Classes/Http/Application.php(72): TYPO3\CMS\Core\Http\AbstractApplication->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#32 /.../htdocs/typo3_src-10.4.12/typo3/sysext/core/Classes/Http/AbstractApplication.php(97): TYPO3\CMS\Backend\Http\Application->handle(Object(TYPO3\CMS\Core\Http\ServerRequest))
#33 /.../htdocs/typo3_src-10.4.12/typo3/index.php(25): TYPO3\CMS\Core\Http\AbstractApplication->run()
#34 /.../htdocs/typo3_src-10.4.12/typo3/index.php(26): {closure}()
#35 {main}"}
This is not a TYPO3 problem. Because of limited RAM the backend_icon.json file can not be loaded in IconRegistry (file_get_contents). So the json ist false or empty. That will be confirmed by a PHP Warning argument in foreach as not an array in TYPO3 sys_log and PHP error log.
Maybe there are too many apache requests on your server or too many opened FastCGI processes or another process consuming too much RAM.
Please have a look into your RAM usage or contact your hoster to have a look.
Not tested, but maybe you or your hoster can fix that with:
FcgidBusyTimeout 300
FcgidIOTimeout 250
Link: How to fix FastCGI timeout issues in Plesk?
I had the same issue today when I updated TYPO3 from 10.4.9 to 10.4.20.
After deleting the folder ./var/cache, the message disappeared.

Magernto Authorize.net payment NoSuchEntityException

The issue is with Authorize.net payment, when I click on place order I get an error:
"no such entity with cartId"
This is happening only if I set the payment option to authorize and capture if I set it to authorize only it's OK.
Also in the main store, it's working fine, the issue is with other stores.
Order is created in admin but stays on pending.
Looks like a cart quote issue getting inactive only in authorize and capture method.
enter image description here
Error on screen:
<response>
<message>No such entity with %fieldName = %fieldValue</message>
<parameters>
<fieldName>cartId</fieldName>
<fieldValue>107</fieldValue>
</parameters>
<trace>
#0 /var/www/magento2/vendor/magento/module-quote/Model/QuoteRepository.php(164): Magento\Framework\Exception\NoSuchEntityException::singleField('cartId', '107')
#1 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Quote\Model\QuoteRepository->getActive('107')
#2 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Quote\Model\QuoteRepository\Interceptor->___callParent('getActive', Array) #3 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Quote\Model\QuoteRepository\Interceptor->Magento\Framework\Interception\{closure}('107')
#4 /var/www/magento2/generated/code/Magento/Quote/Model/QuoteRepository/Interceptor.php(52): Magento\Quote\Model\QuoteRepository\Interceptor->___callPlugins('getActive', Array, Array)
#5 /var/www/magento2/vendor/magento/module-quote/Model/Cart/CartTotalRepository.php(89): Magento\Quote\Model\QuoteRepository\Interceptor->getActive('107')
#6 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Quote\Model\Cart\CartTotalRepository->get('107')
#7 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Quote\Model\Cart\CartTotalRepository\Interceptor->___callParent('get', Array)
#8 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Quote\Model\Cart\CartTotalRepository\Interceptor->Magento\Framework\Interception\{closure}('107')
#9 /var/www/magento2/generated/code/Magento/Quote/Model/Cart/CartTotalRepository/Interceptor.php(26): Magento\Quote\Model\Cart\CartTotalRepository\Interceptor->___callPlugins('get', Array, Array)
#10 /var/www/magento2/vendor/magento/module-checkout/Model/PaymentInformationManagement.php(144): Magento\Quote\Model\Cart\CartTotalRepository\Interceptor->get('107')
#11 /var/www/magento2/vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php(166): Magento\Checkout\Model\PaymentInformationManagement->getPaymentInformation('107') #12 [internal function]: Magento\Checkout\Model\GuestPaymentInformationManagement->getPaymentInformation('E8MYixrI58pSjig...')
#13 /var/www/magento2/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)
#14 /var/www/magento2/vendor/magento/module-webapi/Controller/Rest.php(188): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process(Object(Magento\Framework\Webapi\Rest\Request\Proxy))
#15 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
#16 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent('dispatch', Array)
#17 /var/www/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#18 /var/www/magento2/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array)
#19 /var/www/magento2/vendor/magento/framework/App/Http.php(137): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#20 /var/www/magento2/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http->launch()
#21 /var/www/magento2/pub/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#22 {main}
</trace>
</response>
Thank you,
Eran

Zend framework 2 Session validation failed

i'm trying to display messages from flashMessenger in view file.
Add them in controller
$status = 'error';
$message = 'Wrong parameters';
$this->flashMessenger()->addMessage($message)->setNamespace($status);
Tried to get messages in .phtml file :
1) Like this $this->flashMessenger()->getPluginFlashMessenger()->getCurrentErrorMessages();
2) Like this
$flash = $this->flashMessenger();
if (count($flash->getMessages())) {
$flash->render('error');
}
And always receive same error Session validation failed
Call stack:
#0 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Session/AbstractContainer.php(78): Zend\Session\SessionManager->start()
#1 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(120): Zend\Session\AbstractContainer->__construct('FlashMessenger', Object(Zend\Session\SessionManager))
#2 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(447): Zend\Mvc\Controller\Plugin\FlashMessenger->getContainer()
#3 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(525): Zend\Mvc\Controller\Plugin\FlashMessenger->hasCurrentMessages()
#4 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(593): Zend\Mvc\Controller\Plugin\FlashMessenger->getCurrentMessages()
#5 /home/dmitriy/zend/module/Admin/view/admin/category/index.phtml(20): Zend\Mvc\Controller\Plugin\FlashMessenger->getCurrentErrorMessages()
#6 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(506): include('/home/dmitriy/z...')
#7 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/View.php(205): Zend\View\Renderer\PhpRenderer->render(Object(Zend\View\Model\ViewModel))
#8 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/View.php(233): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#9 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/View.php(198): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#10 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/View/Http/DefaultRenderingStrategy.php(102): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#11 [internal function]: Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#12 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#13 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('render', Object(Zend\Mvc\MvcEvent), Array)
#14 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(355): Zend\EventManager\EventManager->trigger('render', Object(Zend\Mvc\MvcEvent))
#15 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(330): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#16 /home/dmitriy/zend/public/index.php(24): Zend\Mvc\Application->run()
#17 {main}
Zend crushing before displaying in view file. Here addMessage($message)
I fixed it by adding "session_start ();" at the beginning of the containers

Social Engine 4 main log how to repair errors?

I dont understand this error code, can somebody explain this log? I will try to repair errors, but i need little help.
2014-02-22T12:44:46+00:00 WARN (4): [2048] Declaration of Wall_Model_DbTable_Actions::getActivity() should be compatible with Activity_Model_DbTable_Actions::getActivity(User_Model_User $user, array $params = Array) (/home/socpt613/public_html/application/modules/Wall/Model/DbTable/Actions.php) [22]
Error Code: 856062
Stack trace:
#0 /home/socpt613/public_html/application/libraries/Engine/Loader.php(103): include_once('/home/socpt613/public_html/appli...')
#1 /home/socpt613/public_html/application/libraries/Engine/Loader.php(130): Engine_Loader::autoload('Wall_Model_DbTable_Actions')
#2 /home/socpt613/public_html/application/libraries/Engine/Loader.php(160): Engine_Loader::loadClass('Wall_Model_DbTable_Actions')
#3 /home/socpt613/public_html/application/libraries/Engine/Api.php(268): Engine_Loader->load('Wall_Model_DbTable_Actions')
#4 /home/socpt613/public_html/application/libraries/Engine/Api.php(241): Engine_Api->load('wall', 'dbtable', 'actions')
#5 /home/socpt613/public_html/application/modules/Wall/widgets/feed/Controller.php(196): Engine_Api->__call('getDbtable', Array)
#6 /home/socpt613/public_html/application/modules/Wall/widgets/feed/Controller.php(196): Engine_Api->getDbtable('actions', 'wall')
#7 /home/socpt613/public_html/application/libraries/Engine/Content/Widget/Abstract.php(254): Wall_Widget_FeedController->indexAction()
#8 /home/socpt613/public_html/application/libraries/Engine/Content/Element/Widget.php(73): Engine_Content_Widget_Abstract->render()
#9 /home/socpt613/public_html/application/libraries/Engine/Content/Element/Abstract.php(583): Engine_Content_Element_Widget->_render()
#10 /home/socpt613/public_html/application/libraries/Engine/Content/Decorator/Children.php(31): Engine_Content_Element_Abstract->render()
#11 /home/socpt613/public_html/application/libraries/Engine/Content/Element/Abstract.php(594): Engine_Content_Decorator_Children->render('')
#12 /home/socpt613/public_html/application/libraries/Engine/Content/Decorator/Children.php(31): Engine_Content_Element_Abstract->render()
#13 /home/socpt613/public_html/application/libraries/Engine/Content/Element/Abstract.php(594): Engine_Content_Decorator_Children->render('')
#14 /home/socpt613/public_html/application/libraries/Engine/Content/Decorator/Children.php(31): Engine_Content_Element_Abstract->render()
#15 /home/socpt613/public_html/application/libraries/Engine/Content/Element/Abstract.php(594): Engine_Content_Decorator_Children->render('')
#16 /home/socpt613/public_html/application/libraries/Engine/Content.php(208): Engine_Content_Element_Abstract->render()
#17 /home/socpt613/public_html/application/libraries/Engine/Content/Controller/Action/Helper/Content.php(136): Engine_Content->render('user_index_home')
#18 /home/socpt613/public_html/application/libraries/Engine/Content/Controller/Action/Helper/Content.php(38): Engine_Content_Controller_Action_Helper_Content->render()
#19 /home/socpt613/public_html/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Engine_Content_Controller_Action_Helper_Content->postDispatch()
#20 /home/socpt613/public_html/application/libraries/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#21 /home/socpt613/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('homeAction')
#22 /home/socpt613/public_html/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Zend_Controller_Request_Http, Zend_Controller_Response_Http)
#23 /home/socpt613/public_html/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#24 /home/socpt613/public_html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#25 /home/socpt613/public_html/application/index.php(205): Engine_Application->run()
#26 /home/socpt613/public_html/index.php(24): include('/home/socpt613/public_html/appli...')
#27 {main}
I have more errors but I need explain only one.
I have a licenced SE4.7 with plugins and licenced HIRE-Expert plugins but If I install HIRE EXPERT plugins, my log have realy more errors. :(
Error occurs in module Wall, in controller of widget Feed. There are problems in capability of getting activity feed items between standard Activity's model and custom model (Wall_Model_DbTable_Actions / Activity_Model_DbTable_Actions).
This is just a compatible issue.
You can compare the declration of these methods and you will see the difference:
Wall_Model_DbTable_Actions::getActivity(User_Model_User $user, $params = array())
Activity_Model_DbTable_Actions::getActivity(User_Model_User $user, array $params = Array)
Add array before the second parameter and it will solve this warning error.
Hope this help you.

Deploying Laravel through phpfog => View [partials.adminHeader] doesn't exist

I'm trying to deploy a site on phpfog, all works well except for my backend. I believe that it might have something to do with my restful controllers (public $restful = true;) because the only views that show the error -> (View [partials.adminHeader] doesn't exist) correspond with using restful controllers. Spent several hours trying to troubleshoot this, can't come up with a solution!
//Full Error
Message:
View [partials.adminHeader] doesn't exist.
Location:
/var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php on line 156
Stack Trace:
#0 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(93): Laravel\View->path('partials.adminH...')
#1 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(204): Laravel\View->__construct('partials.adminH...', Array)
#2 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/helpers.php(526): Laravel\View::make('partials.adminH...', Array)
#3 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(359) : eval()'d code(1): view('partials.adminH...')
#4 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(359): eval()
#5 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/blade.php(71): Laravel\View->get()
#6 [internal function]: Laravel{closure}(Object(Laravel\View))
#7 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/event.php(199): call_user_func_array(Object(Closure), Array)
#8 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true)
#9 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(330): Laravel\Event::until('laravel.view.en...', Array)
#10 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(408): Laravel\View->render()
#11 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(345): Laravel\View->data()
#12 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/blade.php(71): Laravel\View->get()
#13 [internal function]: Laravel{closure}(Object(Laravel\View))
#14 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/event.php(199): call_user_func_array(Object(Closure), Array)
#15 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true)
#16 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(330): Laravel\Event::until('laravel.view.en...', Array)
#17 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(551): Laravel\View->render()
#18 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/response.php(246): Laravel\View->__toString()
#19 /var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/laravel.php(178): Laravel\Response->render()
#20 /var/fog/apps/app58421/shipwatch.phpfogapp.com/public/index.php(34): require('/var/fog/apps/a...')
#21 {main}
I ran into the same problem, chmod your storage folder as well. chmod -R 755
What happens if you directly render some content in the get() methods
like
class DemoPage_Controller
{
public function getPosts()
{
echo 'Direct outputting';
return;
//return View::make('demopagetemplate');
}
}
If the above still dosent work, make sure you have mod_rewrite enabled on Apache (you can use phpinfo() to chk this)