Error with Database Installation

Error with Database Installation, a forum discussion on Jojo CMS. Join us for more discussions on Error with Database Installation on our Installation forum.

Back to Forum Index : Back to Installation   RSS
erbuc

1 Oct 2009
Posts: 2

The install went fine until it tried to create the tales in the database. I won't paste the entire screen, but here is a portion upto the error. I have clipped the error as it gives away the directory structure of the server:

"Table theme Does not exist - created empty table.
Table fielddata_flags Does not exist - created empty table.
Adding default flags
Table page Does not exist - created empty table.
Table sessiondata Does not exist - created empty table.
Table usergroups Does not exist - created empty table.
Adding default user groups
Table user Does not exist - created empty table.
Adding admin user
Table auth_token Does not exist - created empty table.
SELECT `op_name`, `op_value` FROM `option` Table 'ebuckley_elgg.option' doesn't existarray(5) { [0]=> array(6) { ["file"]=> "........

There is no instruction on where I go from here. Suggestions please?

Eric
tom

Developer

tom

1 Oct 2009
Posts: 379

Apologies - there's a bug in the install files that needs correcting, which will be fixed in the next release, hopefully out soon.

in jojo/plugins/jojo_core/install/upgrade, change the code to this
(just an extra line at the beginning and an extra bracket on the end):

if (Jojo::tableExists('option')) {
/* Set template engine to 'smarty' for existing installs */
$allOptions = Jojo::getOptions();
if ($allOptions && !isset($allOptions['templateengine'])) {
Jojo::insertQuery("INSERT INTO {option} SET op_name=?, op_value=?", array('templateengine', 'smarty'));
}
}

I think that should fix it.
Back to Forum Index : Back to Installation   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.