Notice: Undefined offset: 0
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/Vinv/SigproBundle/Repositories/ProjectRepository.php at line 1215
$statement->execute();
$results = $statement->fetchAll();
return $results[0];
}
public function getInformesByProject($id) {
-
at
ErrorHandler
->handleError
('8', 'Undefined offset: 0', '/var/www/html/sigpro/src/Vinv/SigproBundle/Repositories/ProjectRepository.php', '1215', array('id' => 'B9781', 'connection' => object(Connection), 'statement' => object(Statement), 'results' => array()))
in src/Vinv/SigproBundle/Repositories/ProjectRepository.php at line 1215 -
at
ProjectRepository
->getUnidadCAByProject
('B9781')
in src/Vinv/SigproBundle/Controller/ProjectController.php at line 233 - at ProjectController ->showAction ('B9781')
-
at
call_user_func_array
(array(object(ProjectController), 'showAction'), array('B9781'))
in app/bootstrap.php.cache at line 3128 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3090 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3241 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2458 -
at
Kernel
->handle
(object(Request))
in web/app_dev.php at line 30
- INFO - Matched route "project_show".
- INFO - Populated the TokenStorage with an anonymous Token.
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DumpListener::configure".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
- DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
- DEBUG - select xprouni.unidadc as codigo_unidad, proyectos.descrip as nombre, proyectos.proyecto as codigo_proyecto, unidades.descrip as unidad, TI.descrip AS tipo_invest, CR.descrip as tipo_finan, EP.descrip as estado, descr_ubi as ubicacion, TP.descrip as tipo_proyecto From proyectos, xprouni, codigos as TI,codigos as CR,codigos as EP, ubicacion,codigos as TP, unidades where proyecto = 'B9781' and unidades.unidad = xprouni.unidadc and tipoc = 1 and xprouni.proyectoc = proyectos.proyecto and TI.tipo = 13 and TI.codigo = tipo_invest and CR.tipo = 2 and CR.codigo = tipo_financ and EP.tipo = 12 and EP.codigo = estado_proy and ubicacion.ubicacion = proyectos.ubicacion and TP.tipo = 21 and TP.codigo = tipo_proy
- DEBUG - select * from proyecto_oplau where proyecto like '%%'
- DEBUG - select tipo,descrip from objetivos where proyecto='B9781' and tipo='G' order by linea
- DEBUG - Select codigos.descrip AS TVIGENCIA, convert(char(10),fec_inicio,103) as fec_inicioF, convert(char(10),fec_final,103) as fec_finalF From vigencias,codigos where vigencias.proyecto = 'B9781' and codigos.codigo = vigencias.vigencia and codigos.tipo = 15 order by fec_final desc
- DEBUG - select unidades.descrip AS UNIDADA From xprouni, unidades where proyectoc = 'B9781' and unidades.unidad = xprouni.unidadc and tipoc = 1
- CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined offset: 0" at /var/www/html/sigpro/src/Vinv/SigproBundle/Repositories/ProjectRepository.php line 1215
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DumpListener::configure".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
- DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
- DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
- DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".