DEBUG FASE 2: Identificados problemas críticos en GetRow()
PROBLEMAS CRÍTICOS IDENTIFICADOS: ⚠️ GetRow() devuelve null siempre → empresaId = 0 ⚠️ Warnings PHP en util.class.php:501 (acceso arrays nulos) ⚠️ Compatibilidad MockDatabase vs mysqli real DATOS REALES ENCONTRADOS: ✅ admin@novomoda.com.mx → empresaId = 1 ✅ sonia.velezquez@novomoda.com.mx → empresaId = 15 ✅ gerente@novomoda.com.mx → empresaId = 15 ARCHIVOS NUEVOS: - debug_login.php → Debug de base de datos master - test_login_reales.php → Test con usuarios reales ANÁLISIS: - Usuarios existen en BD master - Consultas SQL funcionan en debug - GetRow() falla en DoLogin() SIGUIENTE PASO: Revisar GetRow() en DB.class.php
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-07 18:42:48
|
||||
compiled from "/var/www/html/ventas/templates/lists/sucursales.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:886448351695efd884d2185-21380906%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2c69bbea5cf227f65b4e66d17053d55f08b4868c' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/lists/sucursales.tpl',
|
||||
1 => 1767753171,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '886448351695efd884d2185-21380906',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/sucursales-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
|
||||
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)){?>
|
||||
<?php $_smarty_tpl->tpl_vars['sucursal'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['sucursal']->key => $_smarty_tpl->tpl_vars['sucursal']->value){
|
||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['sucursal']->key;
|
||||
?>
|
||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/sucursales-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
<?php }else{ ?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/sucursales-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
<?php }?>
|
||||
<?php }} ?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_ajax.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('pages',$_smarty_tpl->getVariable('pages')->value); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
<?php }else{ ?>
|
||||
<tr><td colspan="5" align="center">Ningún registro encontrado.</td></tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
Reference in New Issue
Block a user