Can't save new entries

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Ralf Skirr
Regular
Posts: 30
Joined: Fri Jan 26, 2007 4:42 pm

Can't save new entries

Post by Ralf Skirr »

Hi,

so far I saved 1 entry. After that I installed the 'extended properties of articles' plugin.

Now I can't save new articles. After clicking save this error message is shown:
INSERT INTO serendipity_entries (title,timestamp,body,extended,isdraft,allow_comments,moderate_comments,exflag,comments,last_modified,author,authorid) values ('Test', '1208970443', 'Test\r\n', '', 'false', 'false', 'false', '0', '0', '1208970443', 'CMS_admin', '1')

/ Duplicate entry '0' for key 1
Any idea how to fix this?

Thanks,
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Can't save new entries

Post by garvinhicking »

Hi!

Your mysql database is bad, you are missing the autoincrement key on the 'id' column. Looks like you migrated your database from a SQL dump but forgot to include all create table options.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Ralf Skirr
Regular
Posts: 30
Joined: Fri Jan 26, 2007 4:42 pm

Is a fresh installation likely to help?

Post by Ralf Skirr »

Hi Garvin,

actually it was a fresh installation. :o

Since there is no content yet I could simply delete it and make a new install.

Would that be the best thing to do?

Ralf
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

If it was a fresh installation, then your database user probably doesn't have all the necessary permissions, or your database is unsupported. Reinstallation won't do any good until that problem is fixed.

Of course, it could've been a one-time glitch. Reinstallation isn't a big problem; go ahead and see if it works.
Judebert
---
Website | Wishlist | PayPal
Ralf Skirr
Regular
Posts: 30
Joined: Fri Jan 26, 2007 4:42 pm

How can I find out about the rights?

Post by Ralf Skirr »

Thanks.

The database is mysql, controlled via phpmyadmin. General cp is Plesk.

How can I find out about the rights? Is this info visible in phpmyadmin or plesk?

Ralf
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I don't know about Plesk; my hosting service uses cpanel.

The user will require CREATE, INSERT, UPDATE, DELETE, ALTER and INDEX privileges. When I created my database, the cpanel tool allowed me to create users and assign them privileges. I would be mildly surprised if Plesk didn't work the same way.

I don't see any way to find the user permission information from phpMyAdmin. You'll have to speak to your hosting service to find out.

Good luck!
Judebert
---
Website | Wishlist | PayPal
Post Reply