XML-RPC and SQLite

Found a bug? Tell us!!
Post Reply
carp3
Regular
Posts: 9
Joined: Tue Feb 07, 2006 9:18 am

XML-RPC and SQLite

Post by carp3 »

Hi,I have tried to post via Gnome-Blog( XML RPC ) but after posting i got this error
Warning: sqlite_query() [function.sqlite-query]: columns host, day, entry_id are not unique in /home/gnudownload/people/pedram/blog/include/db/sqlite.inc.php on line 229


i removed my XML-RPC post but nothing happen..

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

Post by judebert »

I'm a Linux user, too. I'd love to see this fixed, even though I don't use XML-RPC myself.

I want to clarify the problem: you tried to post via XML-RPC using Gnome-Blog; it submitted the entry without errors; when you visited your blog, you got the indicated error; when you removed the entry in question, the error didn't go away.

It looks like SQLite isn't autoincrementing the entry IDs. Is this your second post? Can you examine the database directly and verify that there are multiple entries with the same unique_id in the serendipity_entries table?
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, the error output rather seems to me as if it stems from the Referrer/Statistics plugin?

Which event/sidebar plugins do you have installed?

Judebert: Autoincrementing of the ID should actually work properly in SQLite, I believe.

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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

garvinhicking wrote:Hm, the error output rather seems to me as if it stems from the Referrer/Statistics plugin?
How in the world can you tell? I need to learn your diagnostic methods!
garvinhicking wrote:Judebert: Autoincrementing of the ID should actually work properly in SQLite, I believe.
I would hope so! I was just postulating based on the "{fields} are not unique" message, which led me to believe something was wrong with this particular installation, not every SQLite database.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
How in the world can you tell? I need to learn your diagnostic methods!
It's simply the "columns host, day, entry_id are not unique" error. I thought about where a "day" column exists, and this only is in the serendipity_referrers DB table, so it must be related to that table/plugin...

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/
carp3
Regular
Posts: 9
Joined: Tue Feb 07, 2006 9:18 am

Post by carp3 »

garvinhicking wrote:Hi!

Hm, the error output rather seems to me as if it stems from the Referrer/Statistics plugin?

Which event/sidebar plugins do you have installed?

Judebert: Autoincrementing of the ID should actually work properly in SQLite, I believe.

Regards,
Garvin
Sidebar:Calendar,search,archive,category,rss,license,Powered by
Event Plugin: Markup: Serendipity , Markup: Emoticate , Markup: NL2BR , Browser Compatibility , Spam Protector , Creative Commons License
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi carp!

Can you check your s9y configuration and see if "Track Referrers" is enabled? Please disable it, if it's enabled, to test if that changes your problem.

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/
carp3
Regular
Posts: 9
Joined: Tue Feb 07, 2006 9:18 am

Post by carp3 »

hmmm i think error_reporting(0); i s better solution :)
Post Reply