Code: Select all
Error: at line 138 in file /var/www/derenzi/lib/classes/internal/class.LoginOperations.php:
Internal: User key not found in session.
Ideas?
Thanks.
Code: Select all
Error: at line 138 in file /var/www/derenzi/lib/classes/internal/class.LoginOperations.php:
Internal: User key not found in session.
Code: Select all
Sorry, it looks like something went wrong and an error has occurred.
Don’t worry, it can happen to any of us.
Error: at line 138 in file /var/sites/public_html/lib/classes/internal/class.LoginOperations.php:
Message:
Internal: User key not found in session.
Code: Select all
$db->Execute("SELECT * FROM some_made_up_table;");
Code: Select all
Error: at line 138 in file /var/sites/public_html/lib/classes/internal/class.LoginOperations.php:
Message:
Internal: User key not found in session.
Close Full Trace ↑
#0 /var/sites/public_html/lib/page.functions.php(90): CMSMS\LoginOperations->validate_requestkey()
#1 /var/sites/public_html/lib/misc.functions.php(411): check_login(true)
#2 /var/sites/public_html/lib/classes/Database/class.compatibility.php(96): debug_to_log('Database Error:...')
#3 [internal function]: CMSMS\Database\compatibility::on_error(Object(CMSMS\Database\mysqli\Connection), 'EXECUTE', 1064, 'You have an err...')
#4 /var/sites/public_html/lib/classes/Database/class.Connection.php(675): call_user_func('\\CMSMS\\Database...', Object(CMSMS\Database\mysqli\Connection), 'EXECUTE', 1064, 'You have an err...')
#5 /var/sites/public_html/lib/classes/Database/mysqli/class.Connection.php(127): CMSMS\Database\Connection->OnError('EXECUTE', 1064, 'You have an err...')
#6 /var/sites/public_html/lib/classes/Database/class.Connection.php(328): CMSMS\Database\mysqli\Connection->do_sql('SELECT * FROM c...')
#7 /var/sites/public_html/lib/classes/Database/class.Connection.php(341): CMSMS\Database\Connection->SelectLimit('SELECT * FROM c...', -1, -1, NULL)
#8 /var/sites/public_html/modules/HashTrash/action.default.php(114): CMSMS\Database\Connection->Execute('SELECT * FROM c...')
#9 /var/sites/public_html/lib/classes/class.CMSModule.php(1415): include('/var/sites/h/hw...')
#10 /var/sites/public_html/lib/classes/class.CMSModule.php(1489): CMSModule->DoAction('default', 'm8e94b', Array, '18')
#11 /var/sites/public_html/lib/module.functions.php(106): CMSModule->DoActionBase('default', 'm8e94b', Array, '18', Object(Smarty_Internal_Template))
#12 /var/sites/public_html/lib/classes/class.CMSModule.php(270): cms_module_plugin(Array, Object(Smarty_Internal_Template))
#13 /var/sites/public_html/tmp/templates_c/e47747a9d075f96463f3d893a106f66f740181e5_0.tpl_body.23.php(66): CMSModule::function_plugin(Array, Object(Smarty_Internal_Template))
#14 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_runtime_inheritance.php(238): Block_1903278208595aad74d32366_47975590->callBlock(Object(Smarty_Internal_Template))
#15 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_runtime_inheritance.php(170): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_1903278208595aad74d32366_47975590), Object(Smarty_Internal_Template))
#16 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_runtime_inheritance.php(172): Smarty_Internal_Runtime_Inheritance->process(Object(Smarty_Internal_Template), Object(Block_1903278208595aad74d32366_47975590), Object(Block_15931854055948f71ec189f9_42652596))
#17 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_runtime_inheritance.php(144): Smarty_Internal_Runtime_Inheritance->process(Object(Smarty_Internal_Template), Object(Block_15931854055948f71ec189f9_42652596))
#18 /var/sites/public_html/tmp/templates_c/b41f79ba0dba21d94888c9b86b3a8f0eeb03a109_0.cms_template.hwh3_core.php(114): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(Smarty_Internal_Template), 'Block_159318540...', 'main')
#19 /var/sites/public_html/lib/smarty/sysplugins/smarty_template_resource_base.php(128): content_5948f71ec1b406_75532666(Object(Smarty_Internal_Template))
#20 /var/sites/public_html/lib/smarty/sysplugins/smarty_template_compiled.php(172): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#21 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_template.php(206): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#22 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_template.php(372): Smarty_Internal_Template->render()
#23 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender('cms_template:hw...', 'p18', NULL, 0, 3600, Array, 2, false, NULL, NULL)
#24 /var/sites/public_html/tmp/templates_c/e47747a9d075f96463f3d893a106f66f740181e5_0.tpl_body.23.php(32): Smarty_Internal_Runtime_Inheritance->endChild(Object(Smarty_Internal_Template), 'cms_template:hw...')
#25 /var/sites/public_html/lib/smarty/sysplugins/smarty_template_resource_base.php(128): content_595aad75099a36_57054523(Object(Smarty_Internal_Template))
#26 /var/sites/public_html/lib/smarty/sysplugins/smarty_template_compiled.php(172): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#27 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_template.php(206): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#28 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(216): Smarty_Internal_Template->render(false, 0)
#29 /var/sites/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(107): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#30 /var/sites/public_html/index.php(155): Smarty_Internal_TemplateBase->fetch()
#31 {main}
Code: Select all
#2 /var/sites/xxxx/public_html/lib/classes/Database/class.compatibility.php(96): debug_to_log('Database Error:...')
Code: Select all
Fix CMSSmartySecurityPolicy so that debug_to_log is no longer an allowed function.
calguy1000 wrote:debug_to_log is no longer allowed in templates. The core can still call it.
It seems the problem you are having is due to SQL errors. The database error handler calls debug_to_log by default, and it appears that that will fail if your session has timed out.