[Solar-talk] Fatal error: Uncaught exception
'Solar_Controller_Page_Exception_DuringFetch' error
Paul M Jones
pmjones at ciaweb.net
Tue Nov 13 12:31:19 CST 2007
On Nov 13, 2007, at 12:17 PM, Walker, Jason T. wrote:
> When we try to load up the page we're gettin the following error
> displayed in the browser:
> Fatal error: Uncaught exception
> 'Solar_Controller_Page_Exception_DuringFetch' class::code
> 'MYSQLDB_App_PatrolAvailability::ERR_DURING_FETCH' with message
> 'Exception encountered in the fetch() method.'
...
> Is there a reason why Solar is trying to create a new table in our
> database when the table already exists?
I'm sure there is, but not sure what it'd be. Some things to try out:
1. Try using a minimal script and instantiating the model in that,
instead of the full App system. E.g., "test.php" with only a
Solar::start() and Solar::factory('MYSQLDB_Models_Asset') call. That
will tell us if it's something about the model class, or if it's
related to the controller.
2. Is your controller descended from Solar_App, or directly from
Solar_Controller_Page?
3. I see you're using all caps for your table names; it might be
related to that somehow. IIRC, you guys are going to move to Oracle
after setting up on MySQL, but even then the all-caps shouldn't
matter at the Solar level. Try using lower-case for that stuff if
you can.
That's just off-hand; happy to keep talking about it to nail down the
problem.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the Solar-talk
mailing list