[ZendFramework-1.7.6-minimal]
[ZendFrameworkQuickstart-20080915]

Problem 1

I installed the ZF QuickStart archive in my personal account from which
apache was serving a web site from a subdirectory, and while the application
worked in order to display the existing guestbook entries, it gave an error
when trying to add a new entry:

SQLSTATE[HY000]: General error: 1 SQL logic error or missing database

After a bit of trial and error, I found that the minimum change necessary
was to add write access permissions for the apache user to both the
guestbook .db file itself and also its containing directory.

I suggest that the QuickStart documentation be updated to at least alert the
reader that there could be this potential problem when unpacking the archive
into a personal account.

Problem 2

While fixing the database write access problem, I tried to recreate the
database, thinking it may have been created with a different SQLite version
and therefore had a binary incompatability. I tried running the
load.sqlite.php script and got the following error:

Fatal error: Class 'Zend_Controller_Front' not found in
/path/to/ZendFrameworkQuickstart/application/bootstrap.php on line 16

It turned out that while the script could find the bootstrap.php file, it
hadn't been initialised correctly before loading this file. Adding these
four lines at the top of the script, copied from index.php, solved this
problem:

define('APPLICATION_PATH', realpath(dirname(__FILE__) .
'/../application/'));
set_include_path(APPLICATION_PATH . '/../library' . PATH_SEPARATOR .
get_include_path());
require_once "Zend/Loader.php";
Zend_Loader::registerAutoload();

I suggest updating the load.sqlite.php script so that it works out of the
box.

Apart from that, getting there, thanks for a great product!

Peter K.
-- 
View this message in context: 
http://www.nabble.com/ZF-QuickStart-problems-and-suggestions-tp22388943p22388943.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to