Zend Studio Debugger returns Application Error
- by Keyne
When I run debug for my public/index.php I got an application error as output.
I've seen that it occurs at this line:
foreach($feed->findFeedEntries($entriesLimit) as $entry)
If I put a breakpoint before this, all works as expected, I mean, the error is after the line above. If I remove findFeedEntries() method, I can perform debugging without erros.
To clarify, this method is in my row object as described bellow:
This is the error
<?php
class Model_DbTable_FeedEntries extends Zf_Db_Table
{
public function fetchNewEntries($feed_id)
{
$Feeds = new Model_DbTable_Feeds();
$Feed = $Feeds->getById($feed_id);
// ERROR IS HERE! The colum doesn't exists!
// And this is only on zend-debugger!!!
var_dump($Feed->link)
// ...
}
}
I'm completely lost about what's happening, once my application has no errors, the problem is with zend-debugger. The error is:
An error occurred
Application error
Exception information:
Message: Specified column "link" is not in the row
Stack trace:
#0 C:\Program Files\xampp\htdocs\desenvolvimentistas\application\models\DbTable\FeedEntries.php(75): Zend_Db_Table_Row_Abstract->__get('link')
#1 C:\Program Files\xampp\htdocs\desenvolvimentistas\application\models\DbTable\FeedEntries.php(50): Model_DbTable_FeedEntries->fetchNewEntries('1')
#2 C:\Program Files\xampp\htdocs\desenvolvimentistas\application\models\DbTable\Row\Feed.php(15): Model_DbTable_FeedEntries->getAllByFeedId('1', 1)
#3 C:\Program Files\xampp\htdocs\desenvolvimentistas\application\modules\default\controllers\IndexController.php(41): Model_DbTable_Row_Feed->findFeedEntries(1)
#4 C:\Program Files\xampp\htdocs\ZendFramework-1.10.0-minimal\library\Zend\Controller\Action.php(513): IndexController->indexAction()
#5 C:\Program Files\xampp\htdocs\ZendFramework-1.10.0-minimal\library\Zend\Controller\Dispatcher\Standard.php(289): Zend_Controller_Action->dispatch('indexAction')
#6 C:\Program Files\xampp\htdocs\ZendFramework-1.10.0-minimal\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 C:\Program Files\xampp\htdocs\ZendFramework-1.10.0-minimal\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch()
#8 C:\Program Files\xampp\htdocs\ZendFramework-1.10.0-minimal\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#9 C:\Program Files\xampp\htdocs\desenvolvimentistas\public\index.php(54): Zend_Application->run()
#10 C:\Users\RAPOSO\AppData\Local\Temp\dummy.php(1): include('C:\Program File...')
#11 {main}
I've notice that when I get the row object my colums names are not right. Instead of have "title", "link", ... I have "feeds", "desenvolvimentistas" (projectname), and so on...