Hay un error en su setencia SQL. SELECT tpl.idi2m_core_templates AS ID, tpl.nombre, tpl.HTML, tpl.rutaFisica, MODU.name AS MODNAME, MODU.folder_dir AS CLASS_NAME, TIPO.nombre AS TIPOTPL, TIPO.idi2m_core_type_template AS IDTIPO FROM i2m_core_templates tpl INNER JOIN i2m_core_type_template TIPO ON TIPO.idi2m_core_type_template=tpl.i2m_core_type_template_idi2m_core_type_template INNER JOIN i2m_core_templa_secciones_has_i2m_core_templates RELA ON RELA.i2m_core_templates_idi2m_core_templates=tpl.idi2m_core_templates LEFT JOIN i2m_core_modules MODU ON MODU.idi2m_core_modules=tpl.i2m_core_modules_idi2m_core_modules INNER JOIN i2m_core_template_pagina PAG ON PAG.i2m_core_template_models_idi2m_core_template_models =tpl.i2m_core_template_models_idi2m_core_template_models WHERE PAG.isdefault="Y" AND TIPO.idi2m_core_type_template=1 AND RELA.i2m_core_templa_secciones_idi2m_core_templa_secciones=; mysqli_sql_exception: 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 '' at line 7 in /home/tglife/public_html/php/clases/I2m/i2m_DB/MySQLI.class.php:76 Stack trace: #0 /home/tglife/public_html/php/clases/I2m/i2m_DB/MySQLI.class.php(76): mysqli->prepare('SELECT tpl.idi2...') #1 /home/tglife/public_html/php/clases/I2m/i2m_DB/i2m_db.php(65): I2m\DB\i2m_MySQLI->ejecutarQuery('SELECT tpl.idi2...', true) #2 /home/tglife/public_html/php/clases/I2m/I2m_Template/i2m_core_template.php(256): I2m\DB\i2m_Base_de_Datos->consultar('SELECT tpl.idi2...') #3 /home/tglife/public_html/php/clases/I2m/I2m_Template/i2m_core_template.php(373): I2m\TEMPLATE\i2m_core_template->getTplsModulos(7, 1) #4 /home/tglife/public_html/php/static.php(15): I2m\TEMPLATE\i2m_core_template->getRequest('City') #5 /home/tglife/public_html/php/index.php(6): require_once('/home/tglife/pu...') #6 {main}


Fatal error: Uncaught Error: Method name must be a string in /home/tglife/public_html/php/index.php:22 Stack trace: #0 {main} thrown in /home/tglife/public_html/php/index.php on line 22