I am stumped

Hi guys,

I have a Yii-related problem which I’m having great difficulty in solving. I’m using Yii 1.1.7 and the problem is when using CListView I get the following error in apache error logs:

PHP Fatal error: Call to a member function getColumnNames() on a non-object in /web/livehubs/framework/yii/framework/db/ar/CActiveFinder.php on line 412

This seems to imply that there is some problem with the variable $this->_table in CActiveFinder, but delving deep into the core of Yii is out of my league.

Once the page is cached it works fine with no error, but on the first hit before it is cached I always get this error and the page is rendered strangely, with no css or javascript etc.

Does anyone have any idea how to even debug this?

Hi,

Please post your controller and view(s) code.

Cheers,

Matt