When completing a card purchase I get the following error:
There was an error processing your order. Please contact us or try again later.
The Magento error log is here:
exception 'Exception' with message 'Notice: Array to string conversion in /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php on line 1060' in /home/luluinth/public_html/app/code/local/Mage/Core/functions.php:247
Stack trace:
#0 [internal function]: mageCoreErrorHandler(8, 'Array to string...', '/home/luluinth/...', 1060, Array)
#1 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1060): sprintf('PayPal NVP gate...', Array, '4f0c10ba893f2', '72.0')
#2 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1008): Mage_Paypal_Model_Api_Nvp->_handleCallErrors(Array)
#3 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(659): Mage_Paypal_Model_Api_Nvp->call('DoDirectPayment', Array)
#4 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Direct.php(343): Mage_Paypal_Model_Api_Nvp->callDoDirectPayment()
#5 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Direct.php(202): Mage_Paypal_Model_Direct->_placeOrder(Object(Mage_Sales_Model_Order_Payment), '12')
#6 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(443): Mage_Paypal_Model_Direct->capture(Object(Mage_Sales_Model_Order_Payment), '12')
#7 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Invoice.php(385): Mage_Sales_Model_Order_Payment->capture(Object(Mage_Sales_Model_Order_Invoice))
#8 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(608): Mage_Sales_Model_Order_Invoice->capture()
#9 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(410): Mage_Sales_Model_Order_Payment->_invoice()
#10 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(348): Mage_Sales_Model_Order_Payment->capture(NULL)
#11 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order.php(886): Mage_Sales_Model_Order_Payment->place()
#12 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order.php(1104): Mage_Sales_Model_Order->_placePayment()
#13 [internal function]: Mage_Sales_Model_Order->place()
#14 /home/luluinth/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(105): call_user_func(Array)
#15 /home/luluinth/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(159): Mage_Core_Model_Resource_Transaction->_runCallbacks()
#16 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(189): Mage_Core_Model_Resource_Transaction->save()
#17 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#18 /home/luluinth/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#19 /home/luluinth/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#20 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#21 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#22 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /home/luluinth/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#24 /home/luluinth/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#25 /home/luluinth/public_html/index.php(98): Mage::run('', 'store')
#26 {main}
You're trying to cast $value as a string for the comparison, but $value is an array. If $value has some kind of value you need in it (perhaps it's nested inside an array) for the comparison, then you must process it so that it is not array.
Go to that nvp.php file and do this before the if statement.
var_dump($value); die;
Or
Mage::log($value); // Check var/log/system.log with logging enabled
And just examine how the data is structured in $value. Make it into a string variable.
Here $value is a variable you can put the variable from the line number that exception is generated.
Check this and let me know if it works.
Related
I'm running code available here under feature-1-login branch:
https://github.com/dzidlicious/invest-tracker
After running the docker-compose up and accessing the BACKEND part of the application, I'm getting the following stack trace:
yii\base\ErrorException: Exception (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'The directory does not exist: '
in /app/vendor/yiisoft/yii2/web/AssetManager.php:236
Stack trace:
#0 /app/vendor/yiisoft/yii2/web/AssetManager.php(546): yii\web\AssetManager->checkBasePathPermission()
#1 /app/vendor/yiisoft/yii2/web/AssetManager.php(478): yii\web\AssetManager->publishDirectory('/app/vendor/yii...', Array)
#2 /app/vendor/yiisoft/yii2/web/AssetBundle.php(181): yii\web\AssetManager->publish('/app/vendor/yii...', Array)
#3 /app/vendor/yiisoft/yii2/web/AssetManager.php(292): yii\web\AssetBundle->publish(Object(yii\web\AssetManager))
#4 /app/vendor/yiisoft/yii2/web/AssetManager.php(263): yii\web\AssetManager->loadBundle('yii\\validators\\...', Array, true)
#5 /app/vendor/yiisoft/yii2/web/View.php(287): yii\web\AssetManager->getBundle('yii\\validators\\...')
#6 /app/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('yii\\validators\\...')
#7 /app/vendor/yiisoft/yii2/validators/RequiredValidator.php(93): yii\web\AssetBundle::register(Object(yii\web\View))
#8 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(833): yii\validators\RequiredValidator->clientValidateAttribute(Object(common\models\LoginForm), 'username', Object(yii\web\View))
#9 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(233): yii\widgets\ActiveField->getClientOptions()
#10 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(223): yii\widgets\ActiveField->begin()
#11 /app/vendor/yiisoft/yii2-bootstrap4/src/ActiveField.php(244): yii\widgets\ActiveField->render('<label for="log...')
#12 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(176): yii\bootstrap4\ActiveField->render()
#13 /app/backend/views/site/login.php(27): yii\widgets\ActiveField->__toString()
#14 /app/vendor/yiisoft/yii2/base/View.php(348): require('/app/backend/vi...')
#15 /app/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/app/backend/vi...', Array)
#16 /app/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/app/backend/vi...', Array, Object(backend\controllers\SiteController))
#17 /app/vendor/yiisoft/yii2/base/Controller.php(410): yii\base\View->render('login', Array, Object(backend\controllers\SiteController))
#18 /app/backend/controllers/SiteController.php(87): yii\base\Controller->render('login', Array)
#19 [internal function]: backend\controllers\SiteController->actionLogin()
#20 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#21 /app/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#22 /app/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('login', Array)
#23 /app/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('site/login', Array)
#24 /app/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#25 /app/backend/web/index.php(17): yii\base\Application->run()
#26 {main} in /app/vendor/yiisoft/yii2/base/ErrorHandler.php:343
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(256, 'Exception (Inva...', '/app/vendor/yii...', 343, Array)
#1 /app/vendor/yiisoft/yii2/base/ErrorHandler.php(343): trigger_error('Exception (Inva...', 256)
#2 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(178): yii\base\ErrorHandler::convertExceptionToError(Object(yii\base\InvalidConfigException))
#3 /app/backend/views/site/login.php(27): yii\widgets\ActiveField->__toString()
#4 /app/vendor/yiisoft/yii2/base/View.php(348): require('/app/backend/vi...')
#5 /app/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/app/backend/vi...', Array)
#6 /app/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/app/backend/vi...', Array, Object(backend\controllers\SiteController))
#7 /app/vendor/yiisoft/yii2/base/Controller.php(410): yii\base\View->render('login', Array, Object(backend\controllers\SiteController))
#8 /app/backend/controllers/SiteController.php(87): yii\base\Controller->render('login', Array)
#9 [internal function]: backend\controllers\SiteController->actionLogin()
#10 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#11 /app/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#12 /app/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('login', Array)
#13 /app/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('site/login', Array)
#14 /app/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#15 /app/backend/web/index.php(17): yii\base\Application->run()
#16 {main}
I have intentionally committed my config files and attached a screenshot.
That error happens because you are missing the backend/web/assets folder and the server does not have the permissions to create it.
Check the owner and permissions of backend/web if the server can't write it, it won't be able to create the assets folder.
You could update backend/web and make it server-writable.
You can also create backend/web/assets manually, then update the permissions and give the server group rw permissions, or run init on the project root, if you are sure that nothing you have modified will be overwritten.
I'm trying to add a payment method. But after adding it I can't access the payment methods any more. I get the following errors from the log:
a:5:{i:0;s:243:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT `core_translate`.`string`, `core_translate`.`translate` FROM `core_translate` WHERE (store_id IN (0 , :store_id)) AND (locale = :locale) ORDER BY `store_id` ASC";i:1;s:2919:"#0 /home/fitelegance/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/fitelegance/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/fitelegance/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/fitelegance/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `core_tr...', Array)
#4 /home/fitelegance/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `core_tr...', Array)
#5 /home/fitelegance/public_html/lib/Zend/Db/Adapter/Abstract.php(811): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/Resource/Translate.php(79): Zend_Db_Adapter_Abstract->fetchPairs(Object(Varien_Db_Select), Array)
#7 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/Translate.php(289): Mage_Core_Model_Resource_Translate->getTranslationArray(NULL, 'en_US')
#8 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/Translate.php(142): Mage_Core_Model_Translate->_loadDbTranslation(false)
#9 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App/Area.php(146): Mage_Core_Model_Translate->init('adminhtml')
#10 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App/Area.php(121): Mage_Core_Model_App_Area->_initTranslate()
#11 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App/Area.php(93): Mage_Core_Model_App_Area->_loadPart('translate')
#12 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App.php(789): Mage_Core_Model_App_Area->load()
#13 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(512): Mage_Core_Model_App->loadArea('adminhtml')
#14 /home/fitelegance/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#15 /home/fitelegance/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(51): Mage_Adminhtml_Controller_Action->preDispatch()
#16 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_System_ConfigController->preDispatch()
#17 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/fitelegance/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /home/fitelegance/public_html/index.php(83): Mage::run('', 'store')
#22 {main}";s:3:"url";s:89:"/index.php/admin/system_config/edit/section/payment/key/cb234a6ffb16ee3ba89eab23539e9421/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
I removed all of the files for the payment methods but still am having the same issue. While I click on the Payment Methods tab, the browser keeps loading and creates the above errors in the log file.
Please suggest how can I solve this.
I'm using docker php:7.0-apache (more info in https://hub.docker.com/_/php/) and add my old php code. I'm sending the REST to the web server and got a short description in the track error info.
How could I configure the apache/php to response the whole track info and not just to replace the info with three dots ('...') as below.
Example:
REST response '500 Internal Server Error':
body:
CException
SiteController cannot find the requested view "error". (/var/www/yii-1.1.17/framework/web/CController.php:878)
#0 /var/www/yii-1.1.17/framework/web/CController.php(782): CController->renderPartial('error', Array, true)
#1 /var/www/web_project/protected/controllers/SiteController.php(45): CController->render('error', Array)
#2 /var/www/yii-1.1.17/framework/web/actions/CInlineAction.php(49): SiteController->actionError()
#3 /var/www/yii-1.1.17/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#4 /var/www/yii-1.1.17/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#5 /var/www/yii-1.1.17/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#6 /var/www/yii-1.1.17/framework/web/CWebApplication.php(282): CController->run('error')
#7 /var/www/yii-1.1.17/framework/base/CErrorHandler.php(368): CWebApplication->runController('site/error')
#8 /var/www/yii-1.1.17/framework/base/CErrorHandler.php(296): CErrorHandler->renderError()
#9 /var/www/yii-1.1.17/framework/base/CErrorHandler.php(133): CErrorHandler->handleError(Object(CErrorEvent))
#10 /var/www/yii-1.1.17/framework/base/CApplication.php(834): CErrorHandler->handle(Object(CErrorEvent))
#11 /var/www/web_project/protected/modules/ioconfig/models/DeviceInstancesTbl.php(47): CApplication->handleError(2, 'Declaration of ...', '/var/www/web_pr...', 47, Array)
#12 /var/www/web_project/protected/modules/systemview/components/UnitsFactory.php(9): require_once('/var/www/web_pr...')
#13 /var/www/web_project/protected/modules/systemview/models/Units.php(13): require_once('/var/www/web_pr...')
#14 /var/www/web_project/protected/modules/systemview/components/SystemviewHelper.php(6): require_once('/var/www/web_pr...')
#15 /var/www/web_project/protected/modules/user_management/controllers/ApiUsermanagementController.php(8): require_once('/var/www/web_pr...')
#16 /var/www/yii-1.1.17/framework/web/CWebApplication.php(354): require('/var/www/web_pr...')
#17 /var/www/yii-1.1.17/framework/web/CWebApplication.php(338): CWebApplication->createController('GetGeneralInfo/', Object(User_managementModule))
#18 /var/www/yii-1.1.17/framework/web/CWebApplication.php(276): CWebApplication->createController('ApiUsermanageme...')
#19 /var/www/yii-1.1.17/framework/web/CWebApplication.php(141): CWebApplication->runController('user_management...')
#20 /var/www/yii-1.1.17/framework/base/CApplication.php(185): CWebApplication->processRequest()
#21 /var/www/web_project/index.php(13): CApplication->run()
#22 {main}
Thanks
I'm running Magento 2.0.7. When I'm in the backend and I try to flush the cache using "Flush Megento Cache" or selecting all cache folders and click refresh I get a white pack with the below error:
There has been an error processing your request Exception printing is disabled by default for security reasons.
Error log record number: 707031421789
The website continues to function, and Magento recognises that cache is cleared as the notification disappears. But it's annoying and I don't know if its actually clearing all cache or not
The error report shows the below detail:
a:4:{i:0;s:166:"Warning: is_file() expects parameter 1 to be a valid path, string given in /var/www/vhosts/tbfdirect.co.uk/httpdocs/lib/internal/Cm/Cache/Backend/File.php on line 508";i:1;s:8000:"#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'is_file() expec...', '/var/www/vhosts...', 508, Array)
#1 /var/www/vhosts/tbfdirect.co.uk/httpdocs/lib/internal/Cm/Cache/Backend/File.php(508): is_file('/var/www/vhosts...')
#2 /var/www/vhosts/tbfdirect.co.uk/httpdocs/lib/internal/Cm/Cache/Backend/File.php(222): Cm_Cache_Backend_File->_cleanNew('matchingTag', Array)
#3 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/zendframework1/library/Zend/Cache/Core.php(465): Cm_Cache_Backend_File->clean('matchingTag', Array)
#4 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Cache/Core.php(98): Zend_Cache_Core->clean('matchingTag', Array)
#5 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(79): Magento\Framework\Cache\Core->clean('matchingTag', Array)
#6 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(91): Magento\Framework\Cache\Frontend\Adapter\Zend->clean('matchingTag', Array)
#7 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Cache/Frontend/Decorator/TagScope.php(73): Magento\Framework\Cache\Frontend\Decorator\Bare->clean('matchingTag', Array)
#8 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(91): Magento\Framework\Cache\Frontend\Decorator\TagScope->clean('all', Array)
#9 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Cache/Frontend/Decorator/Logger.php(47): Magento\Framework\Cache\Frontend\Decorator\Bare->clean('all', Array, 'all')
#10 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/module-backend/Controller/Adminhtml/Cache/FlushSystem.php(20): Magento\Framework\Cache\Frontend\Decorator\Logger->clean()
#11 /var/www/vhosts/tbfdirect.co.uk/httpdocs/var/generation/Magento/Backend/Controller/Adminhtml/Cache/FlushSystem/Interceptor.php(25): Magento\Backend\Controller\Adminhtml\Cache\FlushSystem->execute()
#12 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/App/Action/Action.php(102): Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor->execute()
#13 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#14 [internal function]: Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#15 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#16 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor->___callParent('dispatch', Array)
#17 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor), Array, 'adminAuthentica...')
#18 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#19 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#20 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#21 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor), Array, 'designLoader')
#22 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/App/Action/Plugin/Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#23 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#24 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#25 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor), Array, 'adminMassaction...')
#26 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#27 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#28 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#29 /var/www/vhosts/tbfdirect.co.uk/httpdocs/var/generation/Magento/Backend/Controller/Adminhtml/Cache/FlushSystem/Interceptor.php(40): Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor->___callPlugins('dispatch', Array, Array)
#30 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/App/FrontController.php(55): Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#31 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#32 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#33 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#34 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#35 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#36 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#37 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#38 /var/www/vhosts/tbfdirect.co.uk/httpdocs/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#39 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#40 /var/www/vhosts/tbfdirect.co.uk/httpdocs/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#41 /var/www/vhosts/tbfdirect.co.uk/httpdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#42 {main}";s:3:"url";s:107:"/admin_bb88q1/admin/cache/flushSystem/key/3ea674fce8bdcfd57376928bc89c1f15f7e9664b76cf642ea78f5d76fe4a90da/";s:11:"script_name";s:10:"/index.php";}
This refers to line 508 of file.php which has the below
I'm sure you've long since solved this but for posterity I have just fixed a very similar problem by deleting the contents of var/cache. Since you are trying to clear caches anyway this should have no side effects.
I'm getting an error back on an API scraping service I've setup due to the API source changing some element on their end. I've been working my way through trying to sort it all out, but I'm stuck on a particular object conversion error. When I try to look in the logs at what it's choking on, the relevant data is getting truncated. Any idea how to undo that? Here is my stack trace:
[2016-02-26 17:47:55] local.ERROR: exception 'ErrorException' with message 'Object of class stdClass could not be converted to string' in /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Support/helpers.php:671
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(4096, 'Object of class...', '/var/www/myapp....', 671, Array)
#1 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Support/helpers.php(671): preg_replace('/\?/', 'Object', 'insert into `pr...', 1)
#2 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(56): str_replace_array('\?', Array, 'insert into `pr...')
#3 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(39): Illuminate\Database\QueryException->formatMessage('insert into `pr...', Array, Object(ErrorException))
#4 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(633): Illuminate\Database\QueryException->__construct('insert into `pr...', Array, Object(ErrorException))
#5 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(591): Illuminate\Database\Connection->runQueryCallback('insert into `pr...', Array, Object(Closure))
#6 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(381): Illuminate\Database\Connection->run('insert into `pr...', Array, Object(Closure))
#7 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(337): Illuminate\Database\Connection->statement('insert into `pr...', Array)
#8 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert('insert into `pr...', Array)
#9 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1735): Illuminate\Database\Query\Processors\Processor->processInsertGetId(Object(Illuminate\Database\Query\Builder), 'insert into `pr...', Array, 'id')
#10 [internal function]: Illuminate\Database\Query\Builder->insertGetId(Array, 'id')
#11 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(940): call_user_func_array(Array, Array)
#12 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1584): Illuminate\Database\Eloquent\Builder->__call('insertGetId', Array)
#13 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1584): Illuminate\Database\Eloquent\Builder->insertGetId(Array, 'id')
#14 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1555): Illuminate\Database\Eloquent\Model->insertAndSetId(Object(Illuminate\Database\Eloquent\Builder), Array)
#15 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1461): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder), Array)
#16 /var/www/myapp/htdocs/app/RevelModel.php(87): Illuminate\Database\Eloquent\Model->save()
#17 [internal function]: App\RevelModel::scrapData(Array)
#18 /var/www/myapp/htdocs/app/Console/Commands/Fetcher.php(61): call_user_func('App\Revel\Entit...', Array)
#19 [internal function]: App\Console\Commands\Fetcher->handle()
#20 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(502): call_user_func_array(Array, Array)
#21 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Console/Command.php(149): Illuminate\Container\Container->call(Array)
#22 /var/www/myapp/htdocs/vendor/symfony/console/Command/Command.php(259): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Console/Command.php(135): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /var/www/myapp/htdocs/vendor/symfony/console/Application.php(878): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /var/www/myapp/htdocs/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\Fetcher), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /var/www/myapp/htdocs/vendor/symfony/console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(98): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 /var/www/myapp/htdocs/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#29 {main}
See how on line #2 the DB query in question is truncated with elipses? Is there any way to turn that off so I can see the entire query?
Thanks in advance for your help.