Blank emails Can't retrieve entity config: admin/permission_block - php

I am getting blank shipment emails. If I remove the call to the track.phtml file from the email template the emails are otherwise okay. The track.phtml file and the email templates are default. I am getting an error in the exception log as below. Can anyone help please?
I am getting this error in the exception log
exception 'Mage_Core_Exception' with message 'Can't retrieve entity config: admin/permission_block' in /home/woods/public_html/app/Mage.php:595
Stack trace:
#0 /home/woods/public_html/includes/src/__default.php(30680): Mage::throwException('Can't retrieve ...')
#1 /home/woods/public_html/includes/src/__default.php(12396): Mage_Core_Model_Resource->getTableName('admin/permissio...')
#2 /home/woods/public_html/includes/src/__default.php(12359): Mage_Core_Model_Resource_Db_Abstract->getTable('permission_bloc...')
#3 /home/woods/public_html/includes/src/__default.php(32634): Mage_Core_Model_Resource_Db_Abstract->getMainTable()
#4 /home/woods/public_html/includes/src/__default.php(32671): Mage_Core_Model_Resource_Db_Collection_Abstract->getMainTable()
#5 /home/woods/public_html/includes/src/__default.php(32614): Mage_Core_Model_Resource_Db_Collection_Abstract->_initSelect()
#6 /home/woods/public_html/includes/src/__default.php(24498): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Array)
#7 /home/woods/public_html/includes/src/__default.php(24530): Mage_Core_Model_Config->getModelInstance('admin_resource/...', Array)
#8 /home/woods/public_html/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('admin/block_col...', Array)
#9 /home/woods/public_html/includes/src/Mage_Admin_Model_Block.php(79): Mage::getResourceModel('admin/block_col...')
#10 /home/woods/public_html/includes/src/__default.php(27659): Mage_Admin_Model_Block->isTypeAllowed('core/template')
#11 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#12 /home/woods/public_html/includes/src/__default.php(27322): call_user_func(Array, Array)
#13 /home/woods/public_html/includes/src/__default.php(28041): Varien_Filter_Template->filter('{{template conf...')
#14 /home/woods/public_html/includes/src/Mage_Core_Model_Email_Template.php(311): Mage_Core_Model_Email_Template_Filter->filter('{{template conf...')
#15 /home/woods/public_html/includes/src/Mage_Core_Model_Email_Template.php(391): Mage_Core_Model_Email_Template->getProcessedTemplate(Array, true)
#16 /home/woods/public_html/includes/src/Mage_Core_Model_Email_Template.php(508): Mage_Core_Model_Email_Template->send(Array, Array, Array)
#17 /home/woods/public_html/includes/src/Mage_Core_Model_Email_Template_Mailer.php(84): Mage_Core_Model_Email_Template->sendTransactional('40', 'general', Array, Array, Array, '1')
#18 /home/woods/public_html/includes/src/Mage_Sales_Model_Order_Shipment.php(462): Mage_Core_Model_Email_Template_Mailer->send()
#19 /home/woods/public_html/app/code/core/Mage/Adminhtml/controllers/Sales/Order/ShipmentController.php(222): Mage_Sales_Model_Order_Shipment->sendEmail(true, '')
#20 /home/woods/public_html/includes/src/__default.php(14272): Mage_Adminhtml_Sales_Order_ShipmentController->saveAction()
#21 /home/woods/public_html/includes/src/__default.php(18736): Mage_Core_Controller_Varien_Action->dispatch('save')
#22 /home/woods/public_html/includes/src/__default.php(18266): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /home/woods/public_html/includes/src/__default.php(21117): Mage_Core_Controller_Varien_Front->dispatch()
#24 /home/woods/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#25 /home/woods/public_html/index.php(83): Mage::run('', 'store')
#26 {main}

Error may be related to Block Permission issue. You need to allowed core/template block from backend.
For this follow the below steps:
Login in backend.
From Top Navigation got to System >> Permissions >> Blocks
here you need to add core/template block and set Is Allowed to Yes

I've answered a similar question here
I had this same problem, these steps solved it:
1- Make sure your tmp folder is writable, I had a custom tmp folder set on lib/Zend/Cache/Backend/File.php
'cache_dir' => 'tmp',
2- Remove var/cache and reload the admin page

Related

Drupal Error 502 bad gateway. When I Access TabPages inside of Content

I'm having this issue with Drupal after an update from Drupal 7 to Drupal 8.
The error is the following, when I go to the admin page, I go to content -> filter by -> tab pages -> and try to access a tab page a 502 bad gateway error presents.
My question is, someone has encounter with this particular error? You have any idea how can to solve it?
I never use Drupal, this project came to me through my company
Thank you!
Error: Call to a member function setDisplay() on null in Drupal\twig_views\Twig\RenderView::renderViewWithTitle() (line 59 of /var/www/drupal/modules/contrib/twig_views/src/Twig/RenderView.php)
#0 /var/www/drupal/sites/default/files/php/twig/61feb32897263_page--node--tab-pages.htm_hLYAbaj1Mcn9LHSkwCDf8ZbIY/xcq3DAem6ZT2uZs-Kb3Gn7rZluiRQRmG__g4ETTayds.php(130): Drupal\twig_views\Twig\RenderView::renderViewWithTitle()
#1 /var/www/drupal/vendor/twig/twig/src/Template.php(455): __TwigTemplate_827f20d5d2f1c354e33f539028960e11adcc66cb1f8d12dddbb1dcb48a017905->doDisplay()
#2 /var/www/drupal/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling()
#3 /var/www/drupal/vendor/twig/twig/src/Template.php(434): Twig\Template->display()
#4 /var/www/drupal/core/themes/engines/twig/twig.engine(64): Twig\Template->render()
#5 /var/www/drupal/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#6 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#7 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#8 /var/www/drupal/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render()
#9 /var/www/drupal/sites/default/files/php/twig/61feb32897263_html.html.twig_kaa8ME2Dkk82q-sPQZLCsSAsP/9-CkZxCTZaBASgY3GcbELndOM5DYZkgNaMvxIM5XsDc.php(118): Drupal\Core\Template\TwigExtension->escapeFilter()
#10 /var/www/drupal/vendor/twig/twig/src/Template.php(455): __TwigTemplate_f599ebce244696485f15c3f1883c62b8ba60d77b9f9eb7c31be207d98bac4f5c->doDisplay()
#11 /var/www/drupal/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling()
#12 /var/www/drupal/vendor/twig/twig/src/Template.php(434): Twig\Template->display()
#13 /var/www/drupal/core/themes/engines/twig/twig.engine(64): Twig\Template->render()
#14 /var/www/drupal/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#15 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#16 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#17 /var/www/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(147): Drupal\Core\Render\Renderer->render()
#18 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#19 /var/www/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(148): Drupal\Core\Render\Renderer->executeInRenderContext()
#20 /var/www/drupal/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#21 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#22 /var/www/drupal/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#23 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(156): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#24 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#25 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#26 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#27 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#28 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#29 /var/www/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#30 /var/www/drupal/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#31 /var/www/drupal/index.php(19): Drupal\Core\DrupalKernel->handle()
#32 {main}
Is "Tab Pages" a Content Type in your filter?
Have you tried running the Update Database job and clearing Drupal's cache?
If that doesn't sort it out. I would then try installing the Twig Tweak Module. Then locate the server folder of the theme in use at:
/web/themes/custom/...
Inside there, it seems you might have a custom template utilizing the Twig function:
{{ render_view('view_machine_name', 'display_machine_name', $arg1, $arg2, ...) }}
If you locate that, then try updating that function with the one provided by Twig Tweak.
{{ drupal_view('view_machine_name', 'display_machine_name') }}
Then clear Drupal's cache.

Magento error - Mage registry key "_singleton/license/module" already exists

I have stumbled upon this error while reinstalling a backup from Installatron and I can't seem to make it go away.
I have encountered this error as I was doing this.
Update Magento using Instrallatron to 1.9.1
Found it to mess with all the CSS and as we don't have the web guy in office at the moment...
Delete the site.
Re-install the installatron backup created just before update.
The error occurs in both frontend and backend.
I have read some other posts regarding singleton errors so...
- tried flushing the cache (delete everything in var/cache folder) : doesn't work
- Went to the compiler and noticed it was disabled to tried & running the compiler : also doesn't work
Any suggestions?
The full trace is
Mage registry key "_singleton/license/module" already exists
Trace:
#0 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(477): Mage::register('_singleton/lice...', false)
#2 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(21667): Mage::getSingleton('license/module')
#3 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('core_block_abst...', Array)
#4 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(2616): Mage::dispatchEvent('core_block_abst...', Array)
#5 /home/sytccoma/public_html/funketcomau/shop/includes/src/Mage_Adminhtml_Block_Dashboard_Diagrams.php(49): Mage_Core_Block_Abstract->toHtml()
#6 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(1966): Mage_Adminhtml_Block_Dashboard_Diagrams->_prepareLayout()
#7 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27977): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#8 /home/sytccoma/public_html/funketcomau/shop/includes/src/Mage_Adminhtml_Block_Dashboard.php(66): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...')
#9 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(1966): Mage_Adminhtml_Block_Dashboard->_prepareLayout()
#10 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27977): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#11 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27993): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...', 'dashboard')
#12 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27760): Mage_Core_Model_Layout->addBlock('adminhtml/dashb...', 'dashboard')
#13 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27726): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#14 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27731): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#15 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(13941): Mage_Core_Model_Layout->generateBlocks()
#16 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(13866): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#17 /home/sytccoma/public_html/funketcomau/shop/includes/src/Mage_Adminhtml_Controller_Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#18 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(40): Mage_Adminhtml_Controller_Action->loadLayout()
#19 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(14015): Mage_Adminhtml_DashboardController->indexAction()
#20 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(18399): Mage_Core_Controller_Varien_Action->dispatch('index')
#21 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(17933): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#22 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(20705): Mage_Core_Controller_Varien_Front->dispatch()
#23 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#24 /home/sytccoma/public_html/funketcomau/shop/index.php(87): Mage::run('', 'store')
#25 {main}
Edited April 27.
There is a new trace which is a little different to the one I had before. The end result is the same. It calls for singleton/license/module and fails...
#0 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(477): Mage::register('_singleton/lice...', false)
#2 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Model/App.php(1316): Mage::getSingleton('license/module')
#3 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('core_block_abst...', Array)
#4 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(943): Mage::dispatchEvent('core_block_abst...', Array)
#5 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#6 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(577): Mage_Core_Block_Abstract->_getChildHtml('js_cookies', true)
#7 /home/sytccoma/public_html/funketcomau/shop/app/design/frontend/base/default/template/page/html/head.phtml(43): Mage_Core_Block_Abstract->getChildHtml()
#8 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(241): include('/home/sytccoma/...')
#9 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#10 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#11 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#12 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#13 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('head', true)
#14 /home/sytccoma/public_html/funketcomau/shop/app/design/frontend/rwd/default/template/page/1column.phtml(43): Mage_Core_Block_Abstract->getChildHtml('head')
#15 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(241): include('/home/sytccoma/...')
#16 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/de...')
#17 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#18 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#19 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#20 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#21 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#22 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#23 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#24 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#25 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#26 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#27 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#28 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#29 /home/sytccoma/public_html/funketcomau/shop/index.php(87): Mage::run('', 'store')
#30 {main}
Edited Apr 28
Thanks to zhartaunik I have found that this issue is related to one of my extensions... I have asked the developers to get back to me with a solution... if I don't get an answer back, I will post the config.xml here...
Thanks
I was getting same issue & later on i got the solutions. I was overriding customer account page(login) & my module name was Customer due to which it was conflicting later i deleted it & create a new module named Customeroverride
& now it is working fine.
PS : Please do not create module name on existed one.
open includes/config.php and put # before following row:
#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
upd.1
When you see following lines in you
/includes/src/__default.php
It can happen only when your compiler is enabled! Try to check:
native and other caches are disabled / cleaned
is it really that magento? Maybe you call some another? Check your core_config_data for 'web/unsecure/base_url' value.
upd.2
I have found one more interesting solution. When magento call in some place this code:
Mage::getSingleton('license/module')
According to singleton pattern magento allow create only one instance of this object. Magento achieve that using Mage::registry. Most probably you have following situation:
1st call of Mage::getSingleton('license/module'). Magento can't create this object and put in registry smth like false
2nd time magento call this existing registry and see there false
After that magento trying to create registry again, but this regirsty has false value and you are getting an error.
To resolve this problem:
you can disable this extension
if you need to use this extension and don't know how to resolve this problem - copy it's config.xml (model part) to your first post.
This issue has been now resolved.
The issue was related to an extension and its files being removed from the server due to an encryption which made the server antivirus to kick in.
Thanks for all your help especially to zhartaunik who enabled me to pinpoint the issue.

Laravel exception from 3rd party library not showing stack trace

I am using the Bigcommerce PHP SDK within my Laravel 4 application. The Bigcommerce SDK is configured to throw exceptions when errors occur. These exceptions are usually of the class Bigcommerce\Api\ClientError. When these exceptions are thrown, instead of seeing a detailed output in my error logs like I normally do for Laravel exceptions (with stack traces, line numbers, file locations, etc), I only see a single line in the error log, something like this:
[2015-05-05 21:19:00] production.ERROR: Client Error (404): The requested resource was not found. [] []
Is there something I need to do within my app to ensure that these Bigcommerce exceptions are logged using the same detail as other Laravel exceptions?
Here's an example of the error output I'm used to seeing from Laravel. This output was the result of a Bigcommerce\Api\NetworkError. I do not understand why the output for this type of exception is what I'm looking for, but a Bigcommerce\Api\ClientError is not:
[2015-05-05 13:22:22] production.ERROR: exception 'Bigcommerce\Api\NetworkError' with message 'Empty reply from server' in /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Connection.php:213
Stack trace:
#0 /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Connection.php(326): Bigcommerce\Api\Connection->handleResponse()
#1 /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Client.php(225): Bigcommerce\Api\Connection->post('https://api.big...', Object(stdClass))
#2 /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Client.php(436): Bigcommerce\Api\Client::createResource('/products', Array)
#3 /var/www/html/dev.example/app/spire_models/Product.php(873): Bigcommerce\Api\Client::createProduct(Array)
#4 /var/www/html/dev.example/app/spire_models/Product.php(35): Spire_models\Product->pushToExternal()
#5 /var/www/html/dev.example/app/extensions/SlaveTrait.php(26): Spire_models\Product->additionalSyncWithMaster()
#6 /var/www/html/dev.example/app/controllers/ProductInfoController.php(225): Spire_models\Product->syncWithMaster()
#7 [internal function]: ProductInfoController->saveProductDetails()
#8 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#9 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('saveProductDeta...', Array)
#10 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(ProductInfoController), Object(Illuminate\Routing\Route), 'saveProductDeta...')
#11 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Router.php(967): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'ProductInfoCont...', 'saveProductDeta...')
#12 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#13 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array(Object(Closure), Array)
#14 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1033): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#15 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1001): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#16 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#17 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#18 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#19 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#20 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#21 /var/www/html/dev.example/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#22 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#23 /var/www/html/dev.example/public/index.php(49): Illuminate\Foundation\Application->run()
#24 {main} [] []
In the Bigcommerce/Api/ClientError.php theres one method __toString(). Comment it out.

Magento - Can't view any products in frontend or backend

Yesterday everything was fine in the webshop.
Since today all products in the frontend display a 404 error. When I try to view the product in the backend I get the following error:
Source model "qquoteadv/source_conditions" not found for attribute "quotemode_conditions"
Trace:
#0 /home/users/ftp/site.com/shop/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(387): Mage::exception('Mage_Eav', 'Source model "q...')
#1 /home/users/ftp/site.com/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#2 /home/users/ftp/site.com/shop/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php(70): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset), Array)
#3 /home/users/ftp/site.com/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes->_prepareForm()
#4 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#5 /home/users/ftp/site.com/shop/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php(79): Mage_Core_Block_Abstract->toHtml()
#6 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs->_prepareLayout()
#7 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#8 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'product_tabs')
#9 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'product_tabs')
#10 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#11 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#12 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#13 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#14 /home/users/ftp/site.com/shop/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(Array, true, true)
#15 /home/users/ftp/site.com/shop/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(250): Mage_Adminhtml_Controller_Action->loadLayout(Array)
#16 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Catalog_ProductController->editAction()
#17 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /home/users/ftp/site.com/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/users/ftp/site.com/shop/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /home/users/ftp/site.com/shop/index.php(86): Mage::run('', 'store')
#22 {main}
Has anyone had a similiar error or know how to fix it?
Help would be appreciated as the website is live and needs to be fixed ASAP.
clear all caches;
check module qquoteadv
Seems like you used to module qquoteadv after that you remove this module, but products have attribute with source model from qquoteadv module.
If module qquoteadv was removed and you are not planning install this module - try to remove this attribute;
dont forget backup database!

SocialEngine4: Notification Error: Zend Engine_Api_Exception with message Unknown item type

I am using socialengine4 and my notifications keep giving me this error. I thought this was some type of config thing and look into the database or the notifications setting but i have not been able to fix this error. Can anyone point me in the right direction?
2012-05-22T17:40:21+00:00 CRIT (2):
Error Code: dc0cf5
exception 'Engine_Api_Exception' with message 'Unknown item type: news_content' in /var/www/html/application/libraries/Engine/Api.php:417
Stack trace:
#0 /var/www/html/application/libraries/Engine/Api.php(522): Engine_Api->getItemInfo('news_content', 'moduleInflected')
#1 /var/www/html/application/libraries/Engine/Api.php(330): Engine_Api->getItemApi('news_content')
#2 /var/www/html/application/modules/Activity/Model/Notification.php(80): Engine_Api->getItem('news_content', 2622)
#3 /var/www/html/application/modules/Activity/Model/Notification.php(49): Activity_Model_Notification->getObject()
#4 /var/www/html/application/modules/Activity/Model/Notification.php(98): Activity_Model_Notification->getContent()
#5 /var/www/html/application/modules/Activity/views/scripts/notifications/pulldown.tpl(17): Activity_Model_Notification->__toString()
#6 /var/www/html/application/libraries/Zend/View.php(108): include('/var/www/html/a...')
#7 /var/www/html/application/libraries/Zend/View/Abstract.php(835): Zend_View->_run('/var/www/html/a...')
#8 /var/www/html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(903): Zend_View_Abstract->render('notifications/p...')
#9 /var/www/html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(924): Zend_Controller_Action_Helper_ViewRenderer->renderScript('notifications/p...', NULL)
#10 /var/www/html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(964): Zend_Controller_Action_Helper_ViewRenderer->render()
#11 /var/www/html/application/modules/Activity/controllers/NotificationsController.php(109): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#12 /var/www/html/application/libraries/Zend/Controller/Action.php(512): Activity_NotificationsController->pulldownAction()
#13 /var/www/html/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('pulldownAction')
#14 /var/www/html/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#15 /var/www/html/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#16 /var/www/html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#17 /var/www/html/application/index.php(194): Engine_Application->run()
#18 /var/www/html/index.php(24): include('/var/www/html/a...')
#19 {main}
The settings for the items are in Application->modules->'modulename'->settings>manifest.php
There is an array called items which i added 'news_content' to and it worked.
I managed to fix it.
The problem was that somehow (despite lack of enable/disable link on the module box in the list of modules) it was disabled.
To enable it I accessed the 'engine4_core_modules' table, searched for 'storage' name and changed the 'enabled' cell content from 0 to 1.

Categories