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

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.

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.

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

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

Magento 1.9.2.2 - I can't seem to open anything on admin panel

I have just installed Magento 1.9.2.2 on IIS7 today, and there are two messages on my admin panel.
Latest Message: Reminder: Change Magento`s default phone numbers and callouts before site launch
One or more of the Indexes are not up to date: Product Attributes, Product Prices, Catalog URL Rewrites, Product Flat Data, Category Flat Data, Category Products, Catalog Search Index, Stock Status, Tag Aggregation Data. Click here to go to Index Management and rebuild required indexes.
And whenever I click anything on the admin panel, it will show this error:
There has been an error processing your request
Could not determine temp directory, please specify a cache_dir manually
#0 C:\inetpub\wwwroot\magento\lib\Zend\Cache\Backend.php(217): Zend_Cache::throwException('Could not deter...')
#1 C:\inetpub\wwwroot\magento\lib\Zend\Cache\Backend\File.php(130): Zend_Cache_Backend->getTmpDir()
#2 C:\inetpub\wwwroot\magento\lib\Zend\Cache.php(153): Zend_Cache_Backend_File->__construct(Array)
#3 C:\inetpub\wwwroot\magento\lib\Zend\Cache.php(94): Zend_Cache::_makeBackend('File', Array, false, false)
#4 C:\inetpub\wwwroot\magento\lib\Zend\Locale\Data.php(328): Zend_Cache::factory('Core', 'File', Array, Array)
#5 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Html\Calendar.php(42): Zend_Locale_Data::getList('en_US', 'days')
#6 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Core_Block_Html_Calendar->_toHtml()
#7 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#8 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('calendar', true)
#9 C:\inetpub\wwwroot\magento\app\design\adminhtml\default\default\template\page\head.phtml(59): Mage_Core_Block_Abstract->getChildHtml('calendar')
#10 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Template.php(241): include('C:\\inetpub\\wwwr...')
#11 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml\\defau...')
#12 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template->renderView()
#13 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#14 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#15 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('head', true)
#16 C:\inetpub\wwwroot\magento\app\design\adminhtml\default\default\template\page.phtml(43): Mage_Core_Block_Abstract->getChildHtml('head')
#17 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Template.php(241): include('C:\\inetpub\\wwwr...')
#18 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml\\defau...')
#19 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template->renderView()
#20 C:\inetpub\wwwroot\magento\app\code\core\Mage\Adminhtml\Block\Template.php(81): Mage_Core_Block_Template->_toHtml()
#21 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Adminhtml_Block_Template->_toHtml()
#22 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Model\Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#23 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(390): Mage_Core_Model_Layout->getOutput()
#24 C:\inetpub\wwwroot\magento\app\code\core\Mage\Adminhtml\controllers\System\ConfigController.php(119): Mage_Core_Controller_Varien_Action->renderLayout()
#25 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#26 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#27 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#28 C:\inetpub\wwwroot\magento\app\code\core\Mage\Core\Model\App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#29 C:\inetpub\wwwroot\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#30 C:\inetpub\wwwroot\magento\index.php(83): Mage::run('', 'store')
#31 {main}
I really don't know what is going on here, so any help will be greatly appreciated.
On a LAMP environment(linux/apache/mysql/php) there is the /tmp directory that is used as tmp by most applications. I am not sure how windows handles this but i do believe it also has a tmp directory. I am not that familiar with PHP on windows/IIS environments but maybe one of these links can help you set up a TMP directory for php:
Changing PHP Temp Directory
http://forums.iis.net/t/1179270.aspx?Temp+Directory+is+still+set+to+C+WINDOWS+TEMP+even+after+I+change+it+in+PHP+ini
And following in that:
http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/install-and-configure-php
Had the same problem. Fixed it by adding a tmp folder in var/ because it didn't exist. If var/cache doesn't exist too, then just create it.
I changed YOURWEBSITE/lib/zend/cache/backend/file.php under protected ... 'cache_dir' => null to 'cache_dir' =>"var/tmp/"
It worked. I deleted everything in Cache too before.

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!

Magento Admin Config settings won't save

I have a Magento 1.8 installation which was working fine up until yesterday evening at which point changing any config settings in the admin area stopped working.
E.g. If I change 'store name' to anything different and clicking save: it says "The configuration has been saved" in the green bar at the top but the value stays as it previously was.
Checking in phpMyAdmin the value is unchanged, however you can change it manually in phpMyAdmin and this will be reflected in the admin backend.
Switching on developer mode, initially got me the following when I tried to load any page:
Strict Notice: Only variables should be passed by reference in /home/user/dev/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 2765
#0 /home/user/dev/lib/Varien/Db/Adapter/Pdo/Mysql.php(2765): mageCoreErrorHandler(2048, 'Only variables ...', '/home/user/de...', 2765, Array)
#1 /home/user/dev/lib/Varien/Data/Collection/Db.php(483): Varien_Db_Adapter_Pdo_Mysql->prepareSqlCondition('path', Array)
#2 /home/user/dev/lib/Varien/Data/Collection/Db.php(414): Varien_Data_Collection_Db->_getConditionSql('path', Array)
#3 /home/user/dev/lib/Varien/Data/Collection/Db.php(385): Varien_Data_Collection_Db->_translateCondition('path', Array)
#4 /home/user/dev/app/code/core/Mage/Core/Model/Resource/Config/Data/Collection.php(58): Varien_Data_Collection_Db->addFieldToFilter('path', Array)
#5 /home/user/dev/app/code/core/Mage/Adminhtml/Model/Config/Data.php(306): Mage_Core_Model_Resource_Config_Data_Collection->addScopeFilter('default', 0, 'general')
#6 /home/user/dev/app/code/core/Mage/Adminhtml/Model/Config/Data.php(292): Mage_Adminhtml_Model_Config_Data->_getPathConfig('general', false)
#7 /home/user/dev/app/code/core/Mage/Adminhtml/Model/Config/Data.php(221): Mage_Adminhtml_Model_Config_Data->_getConfig(false)
#8 /home/user/dev/app/code/core/Mage/Adminhtml/Model/Config/Data.php(334): Mage_Adminhtml_Model_Config_Data->load()
#9 /home/user/dev/app/code/core/Mage/Paypal/Model/Observer.php(134): Mage_Adminhtml_Model_Config_Data->getConfigDataValue('paypal/general/...')
#10 /home/user/dev/app/code/core/Mage/Core/Model/App.php(1338): Mage_Paypal_Model_Observer->loadCountryDependentSolutionsConfig(Object(Varien_Event_Observer))
#11 /home/user/dev/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Paypal_Model_Observer), 'loadCountryDepe...', Object(Varien_Event_Observer))
#12 /home/user/dev/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('adminhtml_init_...', Array)
#13 /home/user/dev/app/code/core/Mage/Adminhtml/Model/Config.php(93): Mage::dispatchEvent('adminhtml_init_...', Array)
#14 /home/user/dev/app/code/core/Mage/Adminhtml/Model/Config.php(63): Mage_Adminhtml_Model_Config->_initSectionsAndTabs()
#15 /home/user/dev/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(88): Mage_Adminhtml_Model_Config->getSections('general')
#16 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#17 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 /home/user/dev/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/user/dev/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/user/dev/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /home/user/dev/index.php(87): Mage::run('', 'store')
#22 {main}
Looking up /home/user/dev/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 2765:
$key = key(array_intersect_key($condition, $conditionKeyMap));
Which made no sense to me, but something to do with MySQL seemed like I might be on the right track... I googled the error and found this: http://www.magentocommerce.com/boards/v/viewthread/266575/ - and tried the suggestion of replacing line 2795 with:
$tmp = array_intersect_key($condition, $conditionKeyMap);
$key = key($tmp);
Which resulted in the following dev mode error:
Method "addJqueryLibrary" is not defined in "Magentothem_Upsellslider_Model_Layout_Generate_Observer"
#0 /home/user/dev/app/code/core/Mage/Core/Model/App.php(1340): Mage::throwException('Method "addJque...')
#1 /home/user/dev/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Magentothem_Upsellslider_Model_Layout_Generate_Observer), 'addJqueryLibrar...', Object(Varien_Event_Observer))
#2 /home/user/dev/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#3 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Action.php(351): Mage::dispatchEvent('controller_acti...', Array)
#4 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#5 /home/user/dev/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#6 /home/user/dev/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(95): Mage_Adminhtml_Controller_Action->loadLayout()
#7 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#8 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#9 /home/user/dev/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home/user/dev/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home/user/dev/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#12 /home/user/dev/index.php(87): Mage::run('', 'store')
#13 {main}
If you switch developer mode off now, the same thing happens, says its saved but no change.
Just found in /var/exception.log another error that says:
exception 'Mage_Core_Exception' with message 'Invalid block type: Fishpig_FPAdmin_Block_Adminhtml_Extend' in /home/pieboy/dev/app/Mage.php:594
(followed by another stack trace)
I'm pretty much at my wits end with what to try next and out of my depth. The store is using a paid for theme which included a lot of extensions which I didn't personally install, but it has been working completely fine up until now.
The most recent extension I installed was this:
http://www.magentocommerce.com/magento-connect/stripe-for-magento.html
As far as I could tell it all went smoothly, and I've been editing config settings since, but it was when I went to enable it in the payment methods area that I noticed the problem.
I know this was a lot of reading, but was just trying to get down all the info. Any suggestions at all on how to debug from here are welcome.
EDIT: I uninstalled Fishpig and Magentothem upsellslider extensions, and now I get no errors or exceptions at all in dev mode but still the same behaviour with config settings not saving.
With the help of my hosting company, we tracked this down to being caused by suhosin, they increased the following suhosin limits in the php.ini file for my server which resolved the issue:
suhosin.post.max_vars = 1000
suhosin.request.max_vars = 1000
(Thought I would update here in case anyone in the same boat googles it!)

Categories