Hello
I’m working with revolution and i have a very big problem,
I have some sections that only load one time, later modx don’t load nothing.
The problem is a call to a constructor of a class, shared in all snippets, if i delete the call, the template load but, if i write the call, template load one time
<?php
echo "Loading";
$vehiculos = new vehiculos(); <--- THIS CALL LOAD ONE TIME, LATER FAIL
$num_v_oferta = 0;//count($v_oferta);
$num_v_lotes = 0;//count($v_lotes);
$num_v_martillo = 0;//count($v_martillo);
$num_v_buy_now = 0;//count($v_buy_now);
$total = $num_v_oferta + $num_v_martillo + $num_v_buy_now + $num_v_lotes;
$timer= '<script type="text/javascript">';
?>
[[!catalogo_disponible? &num_v_oferta=`<?=$num_v_oferta;?>` &num_v_lotes=`<?=$num_v_lotes;?>` &num_v_martillo=`<?=$num_v_martillo;?>` &num_v_buy_now=`<?=$num_v_buy_now;?>`]]
I set on log debug but i haven’t errors in the log file
How i can know where is the problem if the logger don’t show the cause of the error in template & snippets load.
Please, any help/idea will be welcome becouse the project begins to lag too
Thanks