faq:troubleshooting:errors_directory:exceptions:sql-state-key-in-where-clause

SQLSTATE[42S22]: Column not found ('key' in 'where clause')

OW Debug - Exception: Message: 	
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'key' in 'where clause' .
File: /public_html/ow_core/database.php. Line: {$line_number_here}.
Trace: 	
	#0 /public_html/ow_core/database.php(723): PDOStatement->execute()
	#1 /public_html/ow_core/database.php(308): OW_Database->execute('SELECT * FROM o...', Array)
	#2 /public_html/ow_core/base_dao.php(114): OW_Database->queryForObject('SELECT * FROM o...', 'BOL_Theme', Array, 86400, Array)
	#3 /public_html/ow_system_plugins/base/bol/theme_dao.php(111): OW_BaseDao->findObjectByExample(Object(OW_Example), 86400, Array)
	#4 /public_html/ow_system_plugins/base/bol/theme_service.php(485): BOL_ThemeDao->findByKey('simplicity')
	#5 /public_html/ow_core/theme_manager.php(86): BOL_ThemeService->getThemeObjectByKey('simplicity', false)
	#6 /public_html/ow_core/application.php(172): OW_ThemeManager->initDefaultTheme(false)
  • Common cause: core platform's source code has been updated but database data was not.
  • Known to happen when: platform update crashes half way.
  • Solution: update core platform's source code and database manually.
faq/troubleshooting/errors_directory/exceptions/sql-state-key-in-where-clause.txt · Last modified: 2017/06/07 09:11 by 127.0.0.1