I got an intermittent Infinite loop detected in JError, so I tried to understand the stack error without luck.
I did nothing in my site, no password change and the website works again if I just refresh it.
Does anyone already got this error?
Error message:
#1 JError::raise(1, 500, Application Instantiation Error, , 1) called at [myWebsite/public_html/libraries/joomla/error/error.php:253]
#2 JError::raiseError(500, Application Instantiation Error) called at [myWebsite/public_html/libraries/joomla/factory.php:50]
#3 JFactory::getApplication() called at [myWebsite/public_html/libraries/joomla/error/error.php:722]
.....
#18 JFactory::_createSession(Array ([name] => 00fab4b94d0fc041e2716c66dd1b1548)) called at [myWebsite/public_html/libraries/joomla/factory.php:103]
#19 JFactory::getSession(Array ([name] => 00fab4b94d0fc041e2716c66dd1b1548)) called at [myWebsite/public_html/libraries/joomla/application/application.php:984]
#20 JApplication->_createSession(00fab4b94d0fc041e2716c66dd1b1548) called at [myWebsite/public_html/libraries/joomla/application/application.php:135]
#21 JApplication->__construct(Array ([clientId] => 0)) called at [myWebsite/public_html/includes/application.php:48]
#22 JSite->__construct(Array ()) called at [myWebsite/public_html/libraries/joomla/application/application.php:175]
#23 JApplication::getInstance(site, Array (), J) called at [myWebsite/public_html/libraries/joomla/factory.php:53]
#24 JFactory::getApplication(site) called at [myWebsite/public_html/index.php:28]
Related
i use laravel and have multiple domain like example.com , example.co , example.org
also i use api and laravel task scaduleing to update post view in day , week , month
using below code to make dl sever domain according user domain entered
AppServiceProvider.php
public function boot()
{
Schema::defaultStringLength(191);
$dl_server = 'http://dl.' . str_replace('www.', '',$_SERVER['HTTP_HOST']) . '/';
View::share('dl_server' , $dl_server);
}
but in laravel log file i got many error
[2020-10-12 00:00:01] local.ERROR: Undefined index: HTTP_HOST {"exception":"[object] (ErrorException(code: 0): Undefined index: HTTP_HOST at /home2/exampleco/domains/example.com/example/app/Providers/AppServiceProvider.php:30)
[stacktrace]
#0 /home2/exampleco/domains/example.com/example/app/Providers/AppServiceProvider.php(30): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Undefined index...', '/home2/exampleco...', 30, Array)
#1 [internal function]: App\\Providers\\AppServiceProvider->boot()
#2 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#3 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Support/helpers.php(522): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#4 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): value(Object(Closure))
#5 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#6 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Container/Container.php(591): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#7 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(828): Illuminate\\Container\\Container->call(Array)
#8 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(811): Illuminate\\Foundation\\Application->bootProvider(Object(App\\Providers\\AppServiceProvider))
#9 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}(Object(App\\Providers\\AppServiceProvider), 23)
#10 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(812): array_walk(Array, Object(Closure))
#11 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#12 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(211): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#13 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#14 /home2/exampleco/domains/example.com/example/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#15 /home2/exampleco/domains/example.com/example/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 {main}
"}
and this error repeat every minute [2020-10-12 00:00:01] , [2020-10-12 00:01:01] , ...
whats the problem ?
$_SERVER['HTTP_HOST'] only available if app called from HTTP Request, the error log say it's called from console (eg: task scheduling) so the variable is not exists.
Simply put variable checking using empty() or isset(), or check if not running in console with this sample code:
if (!\App::runningInConsole()) {
Log::debug("AppServiceProvider::boot ".$_SERVER['HTTP_HOST']);
}
Suddenly I receiving this error with my cron which sends all mails from the webshop:
Cron error while executing core_email_queue_send_all:
exception 'Mage_Core_Exception' with message 'Message recipients data must be set.' in /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/Mage.php:595
Stack trace:
#0 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/core/Mage/Core/Model/Email/Queue.php(98): Mage::throwException('Message recipie...')
#1 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/core/Mage/Core/Model/Abstract.php(316): Mage_Core_Model_Email_Queue->_beforeSave()
#2 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/core/Mage/Core/Model/Email/Queue.php(248): Mage_Core_Model_Abstract->save()
#3 [internal function]: Mage_Core_Model_Email_Queue->send(Object(Aoe_Scheduler_Model_Schedule))
#4 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/community/Aoe/Scheduler/Model/Schedule.php(196): call_user_func_array(Array, Array)
#5 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/community/Aoe/Scheduler/Model/Schedule.php(582): Aoe_Scheduler_Model_Schedule->runNow(true)
#6 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/community/Aoe/Scheduler/Model/Observer.php(39): Aoe_Scheduler_Model_Schedule->process()
#7 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/core/Mage/Core/Model/App.php(1339): Aoe_Scheduler_Model_Observer->dispatch(Object(Varien_Event_Observer))
#8 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Aoe_Scheduler_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#9 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#10 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/shell/scheduler.php(377): Mage::dispatchEvent('default', Array)
#11 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/shell/scheduler.php(37): Aoe_Scheduler_Shell_Scheduler->cronAction()
#12 /srv/www/htdocs/virtual/webs/DOMAIN/srv/www/htdocs/virtual/webs/DOMAIN/htdocs/shell/scheduler.php(403): Aoe_Scheduler_Shell_Scheduler->run()
#13 {main}
Does anybody know something about this issue?
Magento 1.9.1
Somewhere in your website, a transactional email has been allowed to be queued without a recipient specified. I suggest you take a tour in your database and find the core_email_queue_recipients table, and check for a row with an empty recipient_email value. You'll then keep the message_id found on the faulty row, and delete the corresponding entry in the core_email_queue table.
I'm getting an 500 error from server randomly with some (not all!) post requests. After that error, I have to login.
I implemented PDF2HtmlEX that create html pages made with elements and resources like web fonts.
To change page I make a post and get the data but after some page (not always the same) the ajax post return 500 and inside the data (and the log) I see the error:
[2015-12-21 22:17:48] local.ERROR: exception 'Illuminate\Session\TokenMismatchException' in /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:53
Stack trace:
#0 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#1 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#2 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#3 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#4 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#5 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#6 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#7 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#8 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#9 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#10 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#11 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#12 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#14 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#16 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#17 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#18 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#19 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#20 /path/to/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#21 /path/to/laravel-project/public/index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#22 {main}
Like explaned in the documentation, I add...
<meta name="csrf-token" content="{{ csrf_token() }}">
in the app.blade.php master view templates.
And at the start of js script I add:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
I googled a lot and searched inside stackoverflow but I can't figure it out!
The problem is that the error is occurring somethimes, not always: seems like there is a limit of checks that the token is considered valid.
I use ajax, so the meta tag with token never change across posts.
I'm using laravel 5.1 (5.0 upgraded).
EDIT 1:
I tried to increase 'lifetime' => 120, value inside project/config/session.php: if the value is low (tried 10) I can get this error on 2nd or 3rd post (after 10-20 secs), if the value is hight (tried 9999) I get this error on 30th+ post requests (after 4-5 minutes).
EDIT 2:
I add some log inside the controller and middleware.
I can see all the get requests return correct values, the post error, the other get files started after the post that have the same token inside the ajax header of the post.
I can't see the log of the method of controller that serve post request:
routes.php:
Route::post('/page', "RController#rPageData");
RController.php:
public function rPageData(){
Log::info("I am there!"); # always showed except when error occurred.
# ... other code ...
}
EDIT 3:
More infos: I dumped out $request from a correct post in RController::rPageData(), and a error post request from the Exception handler.
I see that the first 2 lines, userResolver and routeResolver, are null in error post, and well done in correct post. Seems like user is not authenticated, but the nexts GET request, like reported in my EDIT 2, are made correctly.
Error post:
Request {#40 ▼
#json: null
#userResolver: null
#routeResolver: null
...
Good post:
Request {#40 ▼
#json: null
#userResolver: Closure {#144 ▶}
#routeResolver: Closure {#154 ▶}
...
Inside the Request > cookies > headers > parameters > XSRF-TOKEN I have the same token in the 2 posts.
Inside the Request > session > attributes > _token, I have 2 different token in the 2 posts.
EDIT 4:
Well, if you put session_start(); at the top of your routes.php, after <?php tag, it will work.
NOTE: this is not the solution. GrahamCampbell (the second biggest Laravel contributor) said:
NEVER do that! Because that's totally incorrect.
Attach reference
Have you any suggestions?
Thank you in advance!
By default, sessions last 2 hours in Laravel. When they begin to fail have you refreshed the page within 2 hours?
You can increase the length of time sessions will be valid for in config/session.php:
'lifetime' => 120 //120 minutes is 2 hours
I’m fairly new to Magento and encounter this error when I try to debug an extension I installed recently. I’m trying to understand the log, but left wondering what exactly is the problem. Can anyone tell me where I should start debugging based on the following log?
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `query_id`, `s`.`product_id`, MATCH (s.data_index) AGAINST ('' IN BOOLEAN MOD' at line 1
Trace:
#0 /var/www/html/springmaternity/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/html/springmaternity/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/html/springmaternity/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/html/springmaternity/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#4 /var/www/html/springmaternity/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#5 /var/www/html/springmaternity/app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext.php(393): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...', Array)
#6 /var/www/html/springmaternity/app/code/core/Mage/CatalogSearch/Model/Fulltext.php(136): Mage_CatalogSearch_Model_Resource_Fulltext->prepareResult(Object(Mage_CatalogSearch_Model_Fulltext), '', Object(Yireo_DisableLog_Model_Rewrite_Catalogsearch_Query))
#7 /var/www/html/springmaternity/app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext/Collection.php(55): Mage_CatalogSearch_Model_Fulltext->prepareResult()
#8 /var/www/html/springmaternity/app/code/core/Mage/CatalogSearch/Model/Layer.php(58): Mage_CatalogSearch_Model_Resource_Fulltext_Collection->addSearchFilter('')
#9 /var/www/html/springmaternity/app/code/community/Rayfox/Catalog/Model/Search/Layer.php(18): Mage_CatalogSearch_Model_Layer->prepareProductCollection(Object(Mage_CatalogSearch_Model_Resource_Fulltext_Collection))
#10 /var/www/html/springmaternity/app/code/core/Mage/CatalogSearch/Model/Layer.php(42): Rayfox_Catalog_Model_Search_Layer->prepareProductCollection(Object(Mage_CatalogSearch_Model_Resource_Fulltext_Collection))
#11 /var/www/html/springmaternity/app/code/core/Mage/Catalog/Model/Layer.php(290): Mage_CatalogSearch_Model_Layer->getProductCollection()
#12 /var/www/html/springmaternity/app/code/core/Mage/Catalog/Model/Layer.php(220): Mage_Catalog_Model_Layer->_getSetIds()
#13 /var/www/html/springmaternity/app/code/core/Mage/Catalog/Block/Layer/View.php(163): Mage_Catalog_Model_Layer->getFilterableAttributes()
#14 /var/www/html/springmaternity/app/code/local/FME/Layerednav/Block/Layer/View.php(85): Mage_Catalog_Block_Layer_View->_getFilterableAttributes()
#15 /var/www/html/springmaternity/app/code/core/Mage/Core/Block/Abstract.php(293): FME_Layerednav_Block_Layer_View->_prepareLayout()
#16 /var/www/html/springmaternity/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#17 /var/www/html/springmaternity/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('layerednav/sear...', 'layer')
#18 /var/www/html/springmaternity/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('layerednav/sear...', 'layer')
#19 /var/www/html/springmaternity/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))
#20 /var/www/html/springmaternity/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#21 /var/www/html/springmaternity/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#22 /var/www/html/springmaternity/app/code/local/FME/Layerednav/controllers/FrontController.php(54): Mage_Core_Controller_Varien_Action->loadLayout()
#23 /var/www/html/springmaternity/app/code/core/Mage/Core/Controller/Varien/Action.php(418): FME_Layerednav_FrontController->searchAction()
#24 /var/www/html/springmaternity/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('search')
#25 /var/www/html/springmaternity/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#26 /var/www/html/springmaternity/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#27 /var/www/html/springmaternity/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#28 /var/www/html/springmaternity/sg/index.php(90): Mage::run('sg', 'website')
#29 {main}
If you have a model, that is doing query and you are curious what the SQL that will be generated you have a few choices,
My favorite is to use the following
$collection = Mage::getModel('customcodes/code')->getCollection()
->addFieldToSelect('code')
->addFieldToFilter('order_id',array('eq'=>247938))
->addFieldToFilter('code_type',array('eq'=>'CODESQAC'));
$sql = $collection->getSelect()->__toString();
And then $sql would have
SELECT `main_table`.`code` FROM `custom_codes` AS `main_table` WHERE (`order_id` = 247938) AND (`code_type` = 'CODESQAC')
Now you can work through the Magneto syntax to figure out why its not pulling the results OR throwing errors like you are seeing.
It sounds like you know where the Magento code is coming from, so using this method will help you figure out if the syntax they used was incorrect.
Also, check the code for hard coded table names instead of using the Magento factory method and/or calls to specific table names rather than using something like the follwoing to get the actual table name ( you could have a table name prefix and the original code could just be hard coded )
$resource = Mage::getSingleton('core/resource');
$customer_table = $resource->getTableName('customer/entity');
Here is an example of using the hard coded table names rather than using configuration to get the table table name, in the case of table name prefixes
$collection->getSelect()->joinLeft(array('sfoa'=>'sales_flat_order_address'), 'main_table.entity_id = sfoa.parent_id and sfoa.address_type = \'billing\'', array('sfoa.company'));
The proper way would be something like this
$resource = Mage::getSingleton('core/resource');
$sales_table = $resource->getTableName('sales/order_address');
$collection->getSelect()->joinLeft(array('sfoa'=>$sales_table), 'main_table.entity_id = sfoa.parent_id and sfoa.address_type = \'billing\'', array('sfoa.company'));
Hopefully this will help you check for bad syntax and eventually how and what the actual SQL is being created.
I'm running with an extension for my layered navigation, which worked well till I tried to update it to a never version. I'm not able to reindex the extension again, this is what i get from it:
2012-11-29T21:35:30+01:00 DEBUG (7): Exception message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'target.default_mask1' in 'field list'
Trace: #0 /var/www/site.com/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/site.com/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/site.com/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /var/www/site.com/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT DISTINCT...', Array)
#4 /var/www/site.com/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(389): Zend_Db_Adapter_Pdo_Abstract->query('SELECT DISTINCT...', Array)
#5 /var/www/site.com/public_html/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /var/www/site.com/public_html/app/code/local/Mana/Db/Helper/Data.php(146): Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
#7 /var/www/site.com/public_html/app/code/local/Mana/Db/Model/Indexer.php(36): Mana_Db_Helper_Data->replicate()
#8 /var/www/site.com/public_html/app/code/core/Mage/Index/Model/Process.php(207): Mana_Db_Model_Indexer->reindexAll()
#9 /var/www/site.com/public_html/app/code/core/Mage/Index/Model/Process.php(253): Mage_Index_Model_Process->reindexAll()
#10 /var/www/site.com/public_html/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(124): Mage_Index_Model_Process->reindexEverything()
#11 /var/www/site.com/public_html/app/code/local/Mage/Core/Controller/Varien/Action.php(420): Mage_Index_Adminhtml_ProcessController->reindexProcessAction()
#12 /var/www/site.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('reindexProcess')
#13 /var/www/site.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 /var/www/site.com/public_html/app/code/local/Mage/Core/Model/App.php(348): Mage_Core_Controller_Varien_Front->dispatch()
#15 /var/www/site.com/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#16 /var/www/site.com/public_html/index.php(82): Mage::run('', 'store')
And this is the replicate:
2012-11-29T21:49:20+01:00 DEBUG (7): UPDATE: SELECT DISTINCT 'target'.'id', 'target'.'code', 'target'.'type', 'target'.'default_mask0', 'target'.'default_mask1', 'eav_attribute_additional'.'is_filterable' AS 'is_enabled', 'eav_attribute'.'frontend_label' AS 'name', 'eav_attribute_additional'.'is_filterable_in_search' AS 'is_enabled_in_search', 'eav_attribute_additional'.'position' FROM 'eav_attribute'
INNER JOIN 'catalog_eav_attribute' AS 'eav_attribute_additional' ON eav_attribute.attribute_id = eav_attribute_additional.attribute_id
INNER JOIN 'eav_entity_type' ON eav_attribute.entity_type_id = eav_entity_type.entity_type_id
INNER JOIN 'm_filter2' AS 'target' ON target.code = eav_attribute.attribute_code WHERE (eav_entity_type.entity_type_code = 'catalog_product') AND (eav_attribute_additional.is_filterable <> 0)
If however, I remove the 'target','default_mask1' part, I'am able to find the attributes. I also found the default_mask in eav_attribute, but I'm not able to figure out what exactly the problem is unfortunatly. Any help would be appreciated!
(The extension is Manapro seo layered navigation)
The problem was that the "upgrade" was interrupted due to visitors on the site. I put down the site, removed the /includes/ folder, ran a script from the developer in the sql, re-cached, and all worked as a charm again! So a lesson to myself, always put down the site before upgrading extensions!