Jump to content
The Uniform Server Community

Omeka Install Problems


Recommended Posts

Hi All,


I am trying to do a fresh install of Omeka 1.3.2 on Orion 7.0.1 and it keeps failing on the following:


Fatal error: Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli statement execute error : Duplicate entry '1' for key 'PRIMARY'' in C:\UniServer\www\omeka\application\libraries\Zend\Db\Statement\Mysqli.php:214 Stack trace: #0 C:\UniServer\www\omeka\application\libraries\Zend\Db\Statement.php(300): Zend_Db_Statement_Mysqli->_execute(Array) #1 C:\UniServer\www\omeka\application\libraries\Zend\Db\Adapter\Abstract.php(468): Zend_Db_Statement->execute(Array) #2 [internal function]: Zend_Db_Adapter_Abstract->query('?INSERT INTO `o...', Array) #3 C:\UniServer\www\omeka\application\libraries\Omeka\Db.php(82): call_user_func_array(Array, Array) #4 C:\UniServer\www\omeka\application\libraries\Omeka\Db.php(284): Omeka_Db->__call('query', Array) #5 C:\UniServer\www\omeka\application\libraries\Omeka\Db.php(284): Omeka_Db->query('?INSERT INTO `o...', Array) #6 C:\UniServer\www\omeka\application\libraries\Omeka\Db.php(300): Omeka_Db->exec('?INSERT INTO `o...') #7 C:\UniServer\www\omeka\application\libraries\Ome in C:\UniServer\www\omeka\application\libraries\Zend\Db\Statement\Mysqli.php on line 214


This is the response I have gotten so far from the omeka devs:


It looks like you need to drop or truncate or otherwise clear out your database.


That error shows that the installer is trying to add a duplicate row to a table, which means you've got old data already sitting around in the database you're trying to install to.


You can drop the tables from your database, or make a new database and point Omeka at that one, or just change the "prefix" setting in db.ini. Any of those option will make sure that there's no old tables floating around.


However, I these are fresh installs of both Uniform Server and Omeka.


Anyone have any clues?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...