vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Database error - New Reply and New Thread (https://vborg.vbsupport.ru/showthread.php?t=313811)

thetechgenius 08-19-2014 11:11 PM

Database error - New Reply and New Thread
 
Code:


Database error in vBulletin 4.1.4:

Invalid SQL:

                                INSERT INTO postlog
                                (postid, useragent, ip, dateline)
                                VALUES
                                (35, 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0', 1651769000, 1408496838);

MySQL Error  : Duplicate entry '35' for key 'PRIMARY'
Error Number  : 1062
Request Date  : Tuesday, August 19th 2014 @ 09:07:18 PM
Error Date    : Tuesday, August 19th 2014 @ 09:07:18 PM
Script        : http://thetechgenius.net/newthread.php?do=postthread&f=5
Referrer      : https://thetechgenius.net/newthread.php?do=newthread&f=5
IP Address    : *********
Username      : *********
Classname    : vB_Database
MySQL Version : 5.6.16


Any reason why I am getting this Database Error when I reply to a thread, or make a new thread? However, even when this error pops up, the thread/post still gets posted.

ozzy47 08-19-2014 11:18 PM

That may be from a mod, so lets try this.

Open your includes/config.php file and below<?php add this line:

PHP Code:

 define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Then see if the error still happens.

thetechgenius 08-19-2014 11:37 PM

Someone just told me to try and Repair/Optimize the Database Table "postlog" a couple of times. So thats what I did, and the errors stopped!!

Thank you for helping me though, you helped me a few times with my board.

ozzy47 08-19-2014 11:38 PM

Yeah that was my next step, after trying to verify if it was from a mod.


All times are GMT. The time now is 08:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02005 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete