Results 1 to 5 of 5

Thread: page failure on user typing duplicate tag

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default page failure on user typing duplicate tag

    I had a page failure when a user apparently typed a duplicate tag that resulted in a white screen with two error lines and this email sent to the admin:

    SQL query:
    INSERT INTO hotaru_tags SET tags_post_id = 61, tags_date = CURRENT_TIMESTAMP, tags_word = 'newt_gingrich', tags_updateby = 2

    PHP error log:
    Duplicate entry '61-newt_gingrich' for key 1

    Wondering if there is/should be logic to check the tags entered instead of resulting in a page failure?

    Thanks. :-)

  2. #2
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Try to repair the table.

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i have this same issue.. then again i also receive emails regarding sql errors

  4. #4
    Junior Member alfbrand's Avatar
    Join Date
    Dec 2009
    Location
    Bay Area, CA
    Posts
    17
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    I get these duplicate tag errors all the time too. Has anyone found a fix?

  5. #5
    Junior Member alfbrand's Avatar
    Join Date
    Dec 2009
    Location
    Bay Area, CA
    Posts
    17
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    I found a great little jQuery script that makes entering tags a bit more elegant and Bonus - it checks for duplicates. I've got it running on my hotaru site - Awesome Cream - if you want to give it a try.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User page with all their posts
    By echocron in forum How-To and Troubleshooting
    Replies: 5
    Last Post: 12-07-2010, 04:43 PM
  2. Redirect a user to login page if hes trying to submit without loggin in.
    By netnuvo in forum How-To and Troubleshooting
    Replies: 5
    Last Post: 07-20-2010, 03:27 AM
  3. Duplicate entry error when changing Username to an existing one
    By nothingman in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 01-17-2010, 03:18 AM
  4. After Logging-in User is always redirected to the front/home page
    By nothingman in forum How-To and Troubleshooting
    Replies: 2
    Last Post: 12-03-2009, 08:26 AM
  5. [Docs] Display Success and Failure Messages
    By Nick in forum Developing Plugins
    Replies: 0
    Last Post: 07-17-2009, 03:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •