[Imc-drupal-dev] Anonymous posts get error.
Erisian St. Vinge
esvinge at yahoo.com
Wed Oct 26 12:10:14 PDT 2005
I fixed this by realizing that the subscription module
was causing the problem. It was calling the user_save
function even when people were'nt logged in, thus
causing the error. There is a bug in the subscription
module and I guess there is a new version.
The moral is always test modules after installing them
and look for errors, with drupal its really easy to
just click modules and then woalah they work but weird
bugs can crop up like this.
I've been working on the moderation of comments
recently after we've had a lot of problems with
racists after covering the toledo protests of the
nazis. It can be pretty useful so far.
Later,
Vinge
--- "Erisian St. Vinge" <esvinge at yahoo.com> wrote:
> Hey everybody. I'm the main admin for Cbusimc.org
> and
> I'm having a problem where anonymous users are
> getting
> this error whenever they post instead of a
> confirmation. Everything is still posted but it has
> resulted in people reposting a lot of stuff. It also
> doesn't happen when people are logged in.
>
> I posted it on Drupal.org with no responses yet, any
> help is welcome although I guess I'll just keep
> looking into it myself.
>
> user error: Duplicate entry '' for key 2
> query: INSERT INTO users (created, changed, uid)
> VALUES ('1130284968', '1130284968', '100') in
>
/home2/website/public_html/drupal/includes/database.mysql.inc
> on line 66.
>
> warning: Invalid argument supplied for foreach() in
>
/home2/website/public_html/drupal/modules/user.module
> on line 174.
>
> warning: Cannot modify header information - headers
> already sent by (output started at
>
/home2/website/public_html/drupal/includes/common.inc:384)
> in
>
/home2/website/public_html/drupal/includes/common.inc
> on line 192.
>
> This doesn't happen when people post Flexinode
> content
> while they are logged in, but only when they are a
> anonymous user, or not logged in.
>
> I saw some references too this but I couldn't figure
> it out. Some comments say that the changed column
> was
> fazed out after drupal 4.6.1, but I'm using 4.6.3
> and
> the whole site uptodate. Any kind of recommendations
> would be appreciated.
>
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
>
> http://www.yahoo.com/r/hs
> _______________________________________________
> Imc-drupal-dev mailing list
> Imc-drupal-dev at lists.indymedia.org
>
http://lists.indymedia.org/mailman/listinfo/imc-drupal-dev
>
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
More information about the Imc-drupal-dev
mailing list