Redis/Laravel - Keep getting error: Unknown prefix: - laravel

I have been searching and searching for any information regarding this redis error, but so far have not found any information. Any help would be greatly appreciated.
Here is my setup:
Laravel with 2 redis connections, 6379 for cache, and 6380 for a datastore.
Every couple of requests to the datastore, I get this error in my logs:
exception 'Predis\Protocol\ProtocolException' with message 'Unknown prefix: '1' [tcp://MY_SERVER_ADDRESS:6380]
This just started within the last few days, and I have not changed anything in the redis config or laravel redis config.
A little more info:
I do not have a prefix set in laravel anywhere.. laravel, predis, or redis is adding it itself.
The "prefix" that gets added changes, yesterday it was 'O', today it is '1'.
This is happening on two separate instances of laravel. The instances share an encryption key, but do not share any files or configs. They both connect to this redis server
Here is the full stack trace:
[2015-02-02 22:19:13] production.ERROR: exception 'Predis\Protocol\ProtocolException' with message 'Unknown prefix: '1' [tcp://MY_SERVER_ADDRESS:6380]' in /var/www/html/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php:151
Stack trace:
#0 /var/www/html/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php(274): Predis\Connection\AbstractConnection->onProtocolError()
#1 /var/www/html/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php(262): Predis\Connection\StreamConnection->read()
#2 /var/www/html/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php(130): Predis\Connection\StreamConnection->read()
#3 /var/www/html/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php(122): Predis\Connection\AbstractConnection->readResponse()
#4 /var/www/html/vendor/predis/predis/lib/Predis/Client.php(246): Predis\Connection\AbstractConnection->executeCommand()
#5 /var/www/html/vendor/predis/predis/lib/Predis/Client.php(228): Predis\Client->executeCommand()
#6 /var/www/html/app/interfaces/RedisRepository.php(47): Predis\Client->__call()
#7 /var/www/html/app/controllers/TrackingController.php(239): RedisRepository->registerNodeEventStatsGlobal()
#8 (): TrackingController->saveTrackerUserData()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(962): Illuminate\Routing\ControllerDispatcher->dispatch()
#13 (): {closure}()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1028): Illuminate\Routing\Route->run()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle()
#22 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle()
#24 /var/www/html/public/index.php(49): Illuminate\Foundation\Application->run()
#25 {main} [] []
Help plz :(

The issue turned out to be specific to HHVM. Once I switched back to PHP-FPM the errors stopped.
HHVM does still have its quirks.

Related

Magento Error during unserialization

I have a magneto based web shop with a custom template. The webshop works at first side fine except that during the loading of a page (every page) the following exception (see below) is thrown and Magento tries to load something that is not present: undefined?1479491943475 Anybody an idea how to fix this? I use Magento 1.9.2.4
16-11-05T22:04:46+00:00 ERR (3):
exception 'Exception' with message 'Error during unserialization' in /home/fossilshop/public_html/lib/Unserialize/Parser.php:60
Stack trace:
#0 /home/fossilshop/public_html/app/code/core/Mage/Core/Helper/UnserializeArray.php(44): Unserialize_Parser->unserialize(Object(Mage_Core_Model_Config_Element))
#1 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Serialized.php(37): Mage_Core_Helper_UnserializeArray->unserialize(Object(Mage_Core_Model_Config_Element))
#2 /home/fossilshop/public_html/app/code/core/Mage/Core/Model/Config/Data.php(78): Mage_Adminhtml_Model_System_Config_Backend_Serialized->_afterLoad()
#3 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(334): Mage_Core_Model_Config_Data->afterLoad()
#4 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(229): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#5 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(164): Mage_Adminhtml_Block_System_Config_Form->_initGroup(Object(Varien_Data_Form), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#6 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#7 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(107): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#8 /home/fossilshop/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#9 /home/fossilshop/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#10 /home/fossilshop/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/fossilshop/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/fossilshop/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /home/fossilshop/public_html/index.php(83): Mage::run('', 'store')
#14 {main}
2016-11-05T22:04:46+00:00 ERR (3):
> Blockquote
I recently ran into this issue too and found this fix
https://www.atwix.com/magento/supee-7405-cart-merge-error-fix/
After adding my own module with the above fix, the exception stopped logging.
Hope it helps

Magento exception log issue

i need a help.
My magento's exception.log is getting a error that I have no idea how to solve, and why this is happening, take a look at the error below:
2016-06-10T17:46:42+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Dynamicslideshow_Block_List' in /chroot/home/reperfum/mydomain.com.br/html/app/Mage.php:595
Stack trace:
#0 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('dynamicslidesho...', Array)
#2 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('dynamicslidesho...', 'dynamicslidesho...')
#3 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('dynamicslidesho...', 'dynamicslidesho...')
#4 /chroot/home/reperfum/mydomain.com.br/html/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))
#5 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#7 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#8 /chroot/home/reperfum/mydomain.com.br/html/app/code/local/Sm/Shopby/controllers/CategoryController.php(48): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#9 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Sm_Shopby_CategoryController->viewAction()
#10 /chroot/home/reperfum/mydomain.com.br/html/app/code/local/Sm/Shopby/Controller/Router.php(96): Mage_Core_Controller_Varien_Action->dispatch('view')
#11 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Sm_Shopby_Controller_Router->match(Object(Mage_Core_Controller_Request_Http))
#12 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#13 /chroot/home/reperfum/mydomain.com.br/html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#14 /chroot/home/reperfum/mydomain.com.br/html/index.php(83): Mage::run('', 'store')
#15 {main}
someone can help me to solve that?
tks
One of your layout XML files is referencing a block with the type dynamicslideshow/list. This block alias is failing to resolve to a class correctly, which could be caused by a variety of reasons, but the most likely reason is that you've deleted a module out of app/code/local and forgotten to remote a reference to it from app/design.
Search in app/design for XML files containing type="dynamicslideshow/list
and for now delete the references to it. If you want to keep the module in question you'll need to share more information about how you've implemented it.

MAGENTO Error: dbModel read resource does not implement Zend_Db_Adapter_Abstract

my magento report this issue.
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 518908518811
In log:
a:4:{i:0;s:65:
"dbModel read resource does not implement Zend_Db_Adapter_Abstract";i:1;s:1412:"
#0 /var/www/html/shop/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Varien_Data_Collection_Db->setConnection(false)
#1 /var/www/html/shop/app/code/core/Mage/Core/Model/Config.php(1350): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#2 /var/www/html/shop/app/code/core/Mage/Core/Model/Config.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#3 /var/www/html/sound/shop/app/Mage.php(461): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#4 /var/www/html/shop/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#5 /var/www/html/shop/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#6 /var/www/html/shop/app/code/core/Mage/Core/Model/App.php(598): Mage_Core_Model_Abstract->getCollection()
#7 /var/www/html/shop/app/code/core/Mage/Core/Model/App.php(456): Mage_Core_Model_App->_initStores()
#8 /var/www/html/shop/app/code/core/Mage/Core/Model/App.php(342): Mage_Core_Model_App->_initCurrentStore('', 'store')
#9 /var/www/html/sound/shop/app/Mage.php(642): Mage_Core_Model_App->run(Array)
#10 /var/www/html/sound/shop/index.php(80): Mage::run('', 'store')
#11 {main}
";s:3:"url";s:20:"/shop/checkout/cart/";s:11:"script_name";s:15:"/shop/index.php";}
Clear cache and reindex all indexes.
Check if your database settings are correct.
Make sure to set var/ folder and subfolder permissions to 777.

Magento: Error on checkout

I have a problem on Magento Checkout. All payment methods selected on checkout give the message:There was an error processing your order. Please contact us or try again later.
I logged the proces and came up with the next exception.log
I run Magento 1.7.0.2. Where do i start on solving this? Is this a problem with the template i bought? Thank you.
2015-04-07T06:46:34+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Ongeldig bloktype: Mage_Page_Block_Html_CookieNotice' in /home/vhosts/XXXXXX.XX/httpdocs/app/Mage.php:594
Stack trace:
#0 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ongeldig blokty...')
#1 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('page/html_cooki...', Array)
#2 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('page/html_cooki...', 'global_cookie_n...')
#3 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('page/html_cooki...', 'global_cookie_n...')
#4 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(40): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(205): Smartwave_All_Model_Core_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#6 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(31): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#7 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(206): Smartwave_All_Model_Core_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#8 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(31): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#9 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(206): Smartwave_All_Model_Core_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#10 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(31): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#11 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Smartwave_All_Model_Core_Layout->generateBlocks()
#12 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/Ajaxcart/controllers/IndexController.php(168): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#13 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Smartwave_Ajaxcart_IndexController->optionsAction()
#14 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('options')
#15 /home/vhosts/XXXXXX.XX/httpdocs/app/code/community/BalkeTechnologies/StoreMaintenance/Controller/Router/Standard.php(91): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#16 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): BalkeTechnologies_StoreMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#18 /home/vhosts/XXXXXX.XX/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#19 /home/vhosts/XXXXXX.XX/httpdocs/index.php(87): Mage::run('', 'store')
#20 {main}
The Block of Type Mage_Page_Block_Html_CookieNotice does not exist in Magento 1.7. It was introduced in Magento 1.8.
If you use a bought template check if it is compatible with your used Magento Version. If it is, file a bug report with the developer.
If not you could try to upgrade you magento version.

Magento live store is not working on Localhost

I have created a copy of my live Magento store on my localhost and used the same db file but it displays this error message:
There has been an error processing your request. Exception printing is
disabled by default for security reasons.
Please someone tell me the reason.Please help me with this issue. Thank you in advance for your time and help.
Error log record number: 350810859
1. a:4:{i:0;s:93:"SQLSTATE[HY000] [1045] Access denied for user
'root'#'localhost' (using password: YES)";i:1;s:2492:"#0
D:\workspace_php\abc_store\lib\Zend\Db\Adapter\Pdo\Mysql.php(96):
Zend_Db_Adapter_Pdo_Abstract->_connect()
D:\workspace_php\abc_store\lib\Varien\Db\Adapter\Pdo\Mysql.php(313):
Zend_Db_Adapter_Pdo_Mysql->_connect()
D:\workspace_php\abc_store\lib\Zend\Db\Adapter\Abstract.php(459):
Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 D:\workspace_php\abc_store\lib\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 D:\workspace_php\abc_store\lib\Varien\Db\Adapter\Pdo\Mysql.php(419):
Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource.php(169):
Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource.php(110):
Mage_Core_Model_Resource->_newConnection('pdo_mysql',
Object(Mage_Core_Model_Config_Element))
#7 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(320):
Mage_Core_Model_Resource->getConnection('core_write')
#8 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(350):
Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(335):
Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Cache.php(455):
Mage_Core_Model_Resource_Cache->getAllOptions()
#12 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Cache.php(497):
Mage_Core_Model_Cache->_initOptions()
#13 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\App.php(1183):
Mage_Core_Model_Cache->canUse('config')
#14 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Config.php(414):
Mage_Core_Model_App->useCache('config')
#15 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Config.php(294):
Mage_Core_Model_Config->_canUseCacheForInit()
#16 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\App.php(413):
Mage_Core_Model_Config->loadModulesCache()
#17 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\App.php(343):
Mage_Core_Model_App->_initModules()
#18 D:\workspace_php\abc_store\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#19 D:\workspace_php\abc_store\index.php(87): Mage::run('', 'store')
#20 {main}";s:3:"url";s:12:"/abc_store/";s:11:"script_name";s:21:"/abc_store/index.php";}
I think here issue is with database credentials. look in following file
app/etc/local.xml
This seems a DB connection error.You can use the below credentials as sample and change them according your DB details in your app/etc/local.xml file
<host><![CDATA[localhost]]></host>
<username><![CDATA[root]]></username>
<password><![CDATA[your_password_if_any]]></password>
<dbname><![CDATA[your_db_name]]></dbname>
Also in your core_config_data table change value as below
web/unsecure/base_url - http://YOUR_IP_ADDRESS/YOUR_PROJECT_NAME/
web/secure/base_url - http://YOUR_IP_ADDRESS/YOUR_PROJECT_NAME/
Your have to make virtual host for running the live magento and make changes in the file windows/system32/drivers/etchosts file.
You have to map localhost IP address to domain name.

Resources