[Solar-talk] Bookmarks Application doesn't work
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Mar 21 07:30:55 PDT 2007
On 3/21/07, Dennis Gädeke wrote:
> i get this error message
>
> Fatal error: Uncaught exception 'PDOException' with message
> 'SQLSTATE[HY000]: General error: 1 no such table: nodes'
Hi, Dennis.
The tables are not auto-created by the Bookmarks app since some
versions ago (should be fixed to check for the Solar_Sql_Table
'create' config and start the creation process?). So, a workaround
would be to add these temporary lines after Solar::start() in
index.php:
Solar::register('sql', 'Solar_Sql');
$nodes = Solar::factory('Solar_Model_Nodes');
$nodes->fetch(1);
$areas = Solar::factory('Solar_Model_Areas');
$areas->fetch(1);
$tags = Solar::factory('Solar_Model_Tags');
$tags->fetch(1);
fetch() is called just to trigger the creation process. remove it
after you run it once, and the tables will be created.
rodrigo
More information about the solar-talk
mailing list