Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating #51

Closed
PeterEstephan opened this issue Dec 21, 2015 · 6 comments
Closed

Updating #51

PeterEstephan opened this issue Dec 21, 2015 · 6 comments

Comments

@PeterEstephan
Copy link

I was just updating from an older version of the pre-release, when after I put in all my database info i get this fatal error:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'' in C:\xampp\htdocs\core\classes\DB.php:68 Stack trace: #0 C:\xampp\htdocs\core\classes\DB.php(68): PDOStatement->execute() #1 C:\xampp\htdocs\core\classes\DB.php(167): DB->createQuery('INSERT INTO nl1...', Array) #2 C:\xampp\htdocs\core\classes\Queries.php(42): DB->insert('groups', Array) #3 C:\xampp\htdocs\pages\install.php(309): Queries->create('groups', Array) #4 C:\xampp\htdocs\index.php(33): require('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\core\classes\DB.php on line 68

Im not 100% sure on what is wrong with it updating.

Thanks.

@samerton
Copy link
Member

If you're updating from one older pre-release version to a newer one, you don't need to run the installer again, you simply need to replace all files other than the installer. Deleting pages/install.php should fix this, you may experience some data duplication however.

@PeterEstephan
Copy link
Author

So I would pretty much update all my /core/ files (not the database and email configuration files) and all the /pages/ files with the new files required? Or would I replace everything (except for the database and email config files) but delete the install.php file?

Thanks.

@samerton
Copy link
Member

The easiest way would be to replace everything other than core/config.php and core/email.php and delete pages/install.php

@PeterEstephan
Copy link
Author

Alright Ill give that a shot, thanks.

@PeterEstephan
Copy link
Author

Thanks, It worked.

@samerton
Copy link
Member

No problem, glad it's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants