Typo3 solr not showing search result - php

I have successfully managed to install solr with typo3 6.2
Solr version 4.2
Typo3 version 6.2
Typo3 solr extension 2.8
Indexing processing is working fine as I am not getting anything in the devlog extension .But the problem is that when i try to search something in front end I am getting an error like this.
Es tut uns leid. Ihre Suchanfrage konnte nicht verarbeitet werden.
And in Backend typo3 devlog am getting an error like this
0: exception 'Apache_Solr_ParserException' with message 'Solr response does not appear to be valid JSON, please examine the raw response with getRawResponse() method' in /html/typo3/typo3conf/ext/solr/lib/SolrPhpClient/Apache/Solr/Response.php:206 Stack trace: #0 /html/typo3/typo3conf/ext/solr/lib/SolrPhpClient/Apache/Solr/Response.php(164): Apache_Solr_Response->_parseData() #1 /html/typo3/typo3conf/ext/solr/classes/class.tx_solr_search.php(365): Apache_Solr_Response->__get('response') #2 /html/typo3/typo3conf/ext/solr/pi_results/class.tx_solr_pi_results.php(167): tx_solr_Search->getNumberOfResults() #3 /html/typo3/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_commandpluginbase.php(62): tx_solr_pi_results->getCommandList() #4 /html/typo3/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_pluginbase.php(106): tx_solr_pluginbase_CommandPluginBase->render(NULL) #5 [internal function]: tx_solr_pluginbase_PluginBase->main('', Array) #6 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(6579): call_user_func_array(Array, Array) #7 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php(41): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction('tx_solr_pi_resu...', Array, '') #8 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(863): TYPO3\CMS\Frontend\ContentObject\UserContentObject->render(Array) #9 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3641): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->USER(Array) #10 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3589): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process(Array) #11 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3557): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent() #12 /html/typo3/typo3_src-6.2.4/typo3/sysext/cms/tslib/index_ts.php(231): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript() #13 /html/typo3/typo3_src-6.2.4/index.php(28): require('/html/typo3/typ...') #14 {main}
0: exception 'Apache_Solr_ParserException' with message 'Solr response does not appear to be valid JSON, please examine the raw response with getRawResponse() method' in /html/typo3/typo3conf/ext/solr/lib/SolrPhpClient/Apache/Solr/Response.php:206 Stack trace: #0 /html/typo3/typo3conf/ext/solr/lib/SolrPhpClient/Apache/Solr/Response.php(164): Apache_Solr_Response->_parseData() #1 /html/typo3/typo3conf/ext/solr/classes/class.tx_solr_search.php(365): Apache_Solr_Response->__get('response') #2 /html/typo3/typo3conf/ext/solr/pi_results/class.tx_solr_pi_results.php(167): tx_solr_Search->getNumberOfResults() #3 /html/typo3/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_commandpluginbase.php(62): tx_solr_pi_results->getCommandList() #4 /html/typo3/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_pluginbase.php(106): tx_solr_pluginbase_CommandPluginBase->render(NULL) #5 [internal function]: tx_solr_pluginbase_PluginBase->main('', Array) #6 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(6579): call_user_func_array(Array, Array) #7 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php(41): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction('tx_solr_pi_resu...', Array, '') #8 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(863): TYPO3\CMS\Frontend\ContentObject\UserContentObject->render(Array) #9 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3641): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->USER(Array) #10 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3589): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process(Array) #11 /html/typo3/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3557): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent() #12 /html/typo3/typo3_src-6.2.4/typo3/sysext/cms/tslib/index_ts.php(231): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript() #13 /html/typo3/typo3_src-6.2.4/index.php(28): require('/html/typo3/typ...') #14 {main}
Can someone help me with this ??
Any kind of help will appreciated
Thanks in advance

as far as i know Typo3 solr extension 2.8 is not compatible with typo3 6.2. Use 3.0.0 instead

Related

Yii2 migration can't find database

I'm trying to migrate two table from extension created by me. I've created it on XAMPP and my migration worked fine there ( tested it few times ). Then I decided to test it on another server and what I get as an error is:
Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [1045] Access denied for user 'ivailo'#'localhost' (using password: YES)'
in Z:\extension\slide\vendor\yiisoft\yii2\db\Connection.php:624
Stack trace:
#0 Z:\extension\slide\vendor\yiisoft\yii2\db\Connection.php(996): yii\db\Connection->open()
#1 Z:\extension\slide\vendor\yiisoft\yii2\db\Connection.php(983): yii\db\Connection->getMasterPdo()
#2 Z:\extension\slide\vendor\yiisoft\yii2\db\Command.php(253): yii\db\Connection->getSlavePdo()
#3 Z:\extension\slide\vendor\yiisoft\yii2\db\Command.php(1143): yii\db\Command->prepare(true)
#4 Z:\extension\slide\vendor\yiisoft\yii2\db\Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#5 Z:\extension\slide\vendor\yiisoft\yii2\db\mysql\Schema.php(312): yii\db\Command->queryAll()
#6 Z:\extension\slide\vendor\yiisoft\yii2\db\mysql\Schema.php(125): yii\db\mysql\Schema->findColumns(Object(yii\db\TableSchema))
#7 Z:\extension\slide\vendor\yiisoft\yii2\db\Schema.php(744): yii\db\mysql\Schema->loadTableSchema('migration')
#8 Z:\extension\slide\vendor\yiisoft\yii2\db\Schema.php(194): yii\db\Schema->getTableMetadata('{{%migration}}', 'schema', true)
#9 Z:\extension\slide\vendor\yiisoft\yii2\console\controllers\MigrateController.php(210): yii\db\Schema->getTableSchema('{{%migration}}
', true)
#10 Z:\extension\slide\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(875): yii\console\controllers\MigrateControlle
r->getMigrationHistory(NULL)
#11 Z:\extension\slide\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(166): yii\console\controllers\BaseMigrateContr
oller->getNewMigrations()
#12 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#13 Z:\extension\slide\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#14 Z:\extension\slide\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#15 Z:\extension\slide\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('up', Array)
#16 Z:\extension\slide\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('up', Array)
#17 Z:\extension\slide\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('migrate/up', Array)
#18 Z:\extension\slide\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction('migrate/up', Array)
#19 Z:\extension\slide\vendor\yiisoft\yii2\base\Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request
))
#20 Z:\extension\slide\yii(23): yii\base\Application->run()
#21 {main}
My Yii2 is fresh installed one. Only added the extension via composer. Database configuration is correct ( user and password that we are using for years ). I've created test table and executed one line Yii::$app->db->createCommand('INSERT INTO test VALUES (1,'testname')') and that passed fine. That way I decide that the connection is ok. But with console migration php yii migrate/up --migrationPath=#vendor/********/*******/migrations it gave me the error above. Want to mention that I am not familiar with our server configurations ( All I know is OS: Ubuntu 14.04 H: Apache2 ) and system administrating at all if the problem is about that somehow. Thank you in advance!

Unsupported operand types CakePHP

I have a CakePHP project running on other server PHP 5.6 but here this same app is not running on PHP 5.6 / 7.0.
I am using Croogo with CakePHP.
It's showing me debug error like below:
Error: [Error] Unsupported operand types
Stack Trace:
#0 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include()
#1 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(201): CakePlugin::_includeFile('/var/www/vhosts...', true)
#2 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(121): CakePlugin::bootstrap('Acl')
#3 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(94): CakePlugin::load('Acl', Array)
#4 /Vendor/croogo/croogo/Extensions/Lib/CroogoPlugin.php(656): CakePlugin::load(Array, Array)
#5 /Vendor/croogo/croogo/Croogo/Config/croogo_bootstrap.php(126): CroogoPlugin::load(Array)
#6 /Vendor/croogo/croogo/Croogo/Config/bootstrap.php(8): require_once('/var/www/vhosts...')
#7 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include('/var/www/vhosts...')
#8 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(201): CakePlugin::_includeFile('/var/www/vhosts...', false)
#9 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(121): CakePlugin::bootstrap('Croogo')
#10 /Config/bootstrap.php(78): CakePlugin::load('Croogo', Array)
#11 /Vendor/cakephp/cakephp/lib/Cake/Core/Configure.php(98): include('/var/www/vhosts...')
#12 /Vendor/cakephp/cakephp/lib/Cake/bootstrap.php(432): Configure::bootstrap(true)
#13 /webroot/index.php(90): include('/var/www/vhosts...')
#14 {main}
It is from my tmp/logs/error.log file
Is there any fix?
Thanks in advance
Try debugging this place: /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include() #1. See which file it's trying to include when failing and what's in it.

Magento error after Upgrade : Can't perform operation, incomplete metadata

I have updated version of Magento EE 12.2 to Magento 14.2.0.2 but i get error when update or create product and category. Error massage is "Can't perform operation, incomplete metadata!"
I have also tried 'Enterprise_Index_Model_Action_Exception' with message 'Can't perform operation, incomplete metadata!' but not work for me.
Here is screenshot of error.
2016-06-20T12:36:57+00:00 ERR (3):
exception 'Enterprise_Index_Model_Action_Exception' with message 'Can't perform operation, incomplete metadata!' in app\code\core\Enterprise\Index\Model\Action\Abstract.php:125
Stack trace:
#0 app\code\core\Enterprise\CatalogInventory\Model\Index\Action\Refresh\Row.php(69): Enterprise_Index_Model_Action_Abstract->_validate()
#1 app\code\core\Enterprise\Mview\Model\Client.php(123): Enterprise_CatalogInventory_Model_Index_Action_Refresh_Row->execute()
#2 app\code\core\Enterprise\CatalogInventory\Model\Index\Observer.php(53): Enterprise_Mview_Model_Client->execute('enterprise_cata...', Array)
#3 app\code\core\Mage\Core\Model\App.php(1358): Enterprise_CatalogInventory_Model_Index_Observer->processStockItemSaveEvent(Object(Varien_Event_Observer))
#4 app\code\core\Mage\Core\Model\App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(Enterprise_CatalogInventory_Model_Index_Observer), 'processStockIte...', Object(Varien_Event_Observer))
#5 app\Mage.php(448): Mage_Core_Model_App->dispatchEvent('cataloginventor...', Array)
#6 app\code\core\Mage\Core\Model\Abstract.php(344): Mage::dispatchEvent('cataloginventor...', Array)
#7 app\code\core\Mage\CatalogInventory\Model\Stock\Item.php(893): Mage_Core_Model_Abstract->afterCommitCallback()
#8 [internal function]: Mage_CatalogInventory_Model_Stock_Item->afterCommitCallback()
#9 app\code\core\Mage\Core\Model\Resource\Abstract.php(110): call_user_func(Array)
#10 app\code\core\Mage\Core\Model\Abstract.php(322): Mage_Core_Model_Resource_Abstract->commit()
#11 app\code\core\Mage\Adminhtml\controllers\Catalog\ProductController.php(728): Mage_Core_Model_Abstract->save()
#12 app\code\core\Mage\Core\Controller\Varien\Action.php(418): Mage_Adminhtml_Catalog_ProductController->saveAction()
#13 app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('save')
#14 app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 app\code\core\Mage\Core\Model\App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#16 app\Mage.php(684): Mage_Core_Model_App->run(Array)
#17 index.php(83): Mage::run('', 'store')
#18 {main}
Try to use php 5.3 disabling warnings and notices. It avoids some code warnings deprecation in old version.
If you get some invalid function name in the middle, go upgrading to 5.4, 5.5, etc.
It usually works for me. ;)

Magento admin giving 500 error - nothing in logs

My Magento-admin stopped working after I tried to install a extension. Now I get a 500 error when I try to access the /admin. Strange thing is that nothing shows up in the error_log. Developer mode log:
Notice: Undefined index: httponly in
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php on
line 7349
#0
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(7349):
mageCoreErrorHandler(8, 'Undefined index...', '/var/www/vhosts...',
7349, Array) #1
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(7421):
Mage_Core_Model_Session_Abstract_Varien->start('adminhtml') #2
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(7777):
Mage_Core_Model_Session_Abstract_Varien->init('core', 'adminhtml') #3
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(33479):
Mage_Core_Model_Session_Abstract->init('core', 'adminhtml') #4
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(23438):
Mage_Core_Model_Session->__construct(Array) #5
/var/www/vhosts/mydomain.com/httpdocs/app/Mage.php(462):
Mage_Core_Model_Config->getModelInstance('core/session', Array) #6
/var/www/vhosts/mydomain.com/httpdocs/app/Mage.php(476):
Mage::getModel('core/session', Array) #7
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(13658):
Mage::getSingleton('core/session', Array) #8
/var/www/vhosts/mydomain.com/httpdocs/includes/src/Mage_Adminhtml_Controller_Action.php(160):
Mage_Core_Controller_Varien_Action->preDispatch() #9
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(13572):
Mage_Adminhtml_Controller_Action->preDispatch() #10
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(17928):
Mage_Core_Controller_Varien_Action->dispatch('index') #11
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(17485):
Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12
/var/www/vhosts/mydomain.com/httpdocs/includes/src/__default.php(20062):
Mage_Core_Controller_Varien_Front->dispatch() #13
/var/www/vhosts/mydomain.com/httpdocs/app/Mage.php(683):
Mage_Core_Model_App->run(Array) #14
/var/www/vhosts/mydomain.com/httpdocs/index.php(94): Mage::run('',
'store') #15 {main}
Already tried uninstalling the extension, no luck. What should I do to find the cause of the error?
Please, firstly disable compilation, use this:
php -f your_project_folder/shell/compiler.php clear
php -f your_project_folder/shell/compiler.php disable
Then clear cache var/cache. You can just remove this folder.

PHP Fatal error Could not include the language file Opencart

I have installed opencart and I have also installed Arabic language and pavillion theme and I followed the documentation, but I get this problem:
PHP Fatal error: 'Could not include the language file /home3/smartgpt/public_html/project/catalog/language/english/default.php'
in /home3/smartgpt/public_html/project/tb_themes/pavilion/library/ResourceLoader.php:143
Stack trace:
#0 tb_themes/pavilion/library/ThemeManager.php(722): TB_ResourceLoader->loadOcTranslation('default')
#1 tb_themes/pavilion/catalog/ThemeCatalogExtension.php(302): TB_ThemeManager->loadOcTranslation()
#2 tb_themes/pavilion/catalog/ThemeCatalogExtension.php(94): Theme_Catalog_Extension->setLanguageDirection()
#3 tb_themes/pavilion/library/vendor/sfEventDispatcher.php(81): Theme_Catalog_Extension->afterRouting(Object(sfEvent))
#4 tb_themes/pavilion/library/CatalogDispatcher.php(130): sfEventDispatcher->notify(Object(sfEvent))
#5 tb_themes/pavilion/library/CatalogDispatcher.php(66): TB_CatalogDispatcher->doRouting(Object(sfEventDispatcher), Object(Request), Object(TB_ViewDataBag))
#6 tb_themes/pavilion/catalog/boot.php(48): TB_CatalogDispatcher->dispatch(Array)
#7 catalog/controller/common/tb_themes.php(32): TB_Boot::bootTheme(Object(Registry), Object(Front), 'pavilion', 0)
#8 [internal function]: ControllerCommonTbThemes->index(Array)
#9 system/modification/system/engine/action.php(65): call_user_func(Array, Array)
#10 system/modification/system/engine/front.php(42): Action->execute(Object(Registry))
#11 system/modification/system/engine/front.php(37): Front->execute(Object(Action))
#12 system/modification/system/engine/front.php(17): Front->dispatch(Object(Action), Object(Action))
#13 index.php(243): Front->addPreAction(Object(Action))
#14 {main}
Go to : /catalog/language/english/ ... Download english.php > rename to default.php > upload back to /catalog/language/english/
Because it is saying, that it could not include language file, because there is no such file in /catalog/language/english/ directory.
Helped for me.

Categories