I use the default web server on my laravel application (PHP artisan serve) and use it locally for 10 to 30 people usually application runs very well and doesn't have any exceptions or crashes, especially on the web server. In sometimes in especial setitution where I don't know what a bug is, one exception happens, and the web server stops Immediately.
Exception is:
local.ERROR: Undefined array key 1 {"exception":"[object] (ErrorException(code: 0): Undefined array key 1 at C:\laragon\www\queueing\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:289)
Just in case here is stacktrace
[stacktrace]
#0 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(259): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined array...', 'C:\\\\laragon\\\\www\\\\...', 289)
#1 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\ServeCommand.php(289): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Undefined array...', 'C:\\\\laragon\\\\www\\\\...', 289)
#2 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\ServeCommand.php(239): Illuminate\\Foundation\\Console\\ServeCommand->getDateFromLine('1:61077 Accepte...')
#3 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Collections\\Traits\\EnumeratesValues.php(262): Illuminate\\Foundation\\Console\\ServeCommand->Illuminate\\Foundation\\Console\\{closure}('1:61077 Accepte...', 0)
#4 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\ServeCommand.php(276): Illuminate\\Support\\Collection->each(Object(Closure))
#5 C:\\laragon\\www\\queueing\\vendor\\symfony\\process\\Process.php(1274): Illuminate\\Foundation\\Console\\ServeCommand->Illuminate\\Foundation\\Console\\{closure}('err', '1:61077 Accepte...')
#6 C:\\laragon\\www\\queueing\\vendor\\symfony\\process\\Process.php(1372): Symfony\\Component\\Process\\Process->Symfony\\Component\\Process\\{closure}('err', '1:61077 Accepte...')
#7 C:\\laragon\\www\\queueing\\vendor\\symfony\\process\\Process.php(1292): Symfony\\Component\\Process\\Process->readPipes(false, false)
#8 C:\\laragon\\www\\queueing\\vendor\\symfony\\process\\Process.php(836): Symfony\\Component\\Process\\Process->updateStatus(false)
#9 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\ServeCommand.php(93): Symfony\\Component\\Process\\Process->isRunning()
#10 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(36): Illuminate\\Foundation\\Console\\ServeCommand->handle()
#11 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#12 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#13 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#14 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#15 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(144): Illuminate\\Container\\Container->call(Array)
#16 C:\\laragon\\www\\queueing\\vendor\\symfony\\console\\Command\\Command.php(308): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#17 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(126): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#18 C:\\laragon\\www\\queueing\\vendor\\symfony\\console\\Application.php(1002): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 C:\\laragon\\www\\queueing\\vendor\\symfony\\console\\Application.php(299): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Foundation\\Console\\ServeCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#20 C:\\laragon\\www\\queueing\\vendor\\symfony\\console\\Application.php(171): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#21 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(102): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#22 C:\\laragon\\www\\queueing\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#23 C:\\laragon\\www\\queueing\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#24 {main}
I have a deep look in my codes, and everything looks normal, don't have any infinite loop or everything like this. Also, I put every suspect function to try catch, but there is no record of any log from my try catches, so I would be grateful if you could help me.
as dear #Peppermintology told php built-in server can not handle many requests so I switched to Nginx and use supervisor and fix the problem was soled!
Related
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.
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
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.
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.
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.