Laptop Overheated Now No site just error Msg. Help ME!
PermalinkFatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1062: Duplicate entry '3657' for key 'PRIMARY'] in EXECUTE("insert into PageStatistics (cID, uID, date) values ('1', '1', NOW())") ' in C:\xampp\htdocs\concrete5.3.3.1\concrete\libraries\3rdparty\adodb\adodb-exceptions.inc.php:78 Stack trace: #0 C:\xampp\htdocs\concrete5.3.3.1\concrete\libraries\3rdparty\adodb\adodb.inc.php(1042): adodb_throw('mysql', 'EXECUTE', 1062, 'Duplicate entry...', 'insert into Pag...', false, Object(ADODB_mysql)) #1 C:\xampp\htdocs\concrete5.3.3.1\concrete\libraries\3rdparty\adodb\adodb.inc.php(998): ADOConnection->_Execute('insert into Pag...') #2 C:\xampp\htdocs\concrete5.3.3.1\concrete\libraries\3rdparty\adodb\adodb.inc.php(766): ADOConnection->Execute('insert into Pag...', Array) #3 C:\xampp\htdocs\concrete5.3.3.1\concrete\libraries\database.php(73): ADOConnection->Query('insert into Pag...', Array) #4 [internal function]: Database->__call(Array, Array) #5 C:\xampp\htdocs\concrete5.3.3.1\concrete\models\user.php(168 in C:\xampp\htdocs\concrete5.3.3.1\concrete\libraries\3rdparty\adodb\adodb-exceptions.inc.php on line 78
PageStatistics
then go to row
3657
delete the row, thats it
If you don't care about the page statistics, you can also delete all entries. Not the first thing I recommend, but if nothing else helps.
Page statistics are used by the dicussion addon as far as I know but otherwise you're just going to have a flat graph when you log into the dashboard.
Have you made sure there is nothing wrong with the MySQL server itself?
If concrete5, that's fine, but in order to edit the table, you'll either need to do it manually(difficult for someone not familiar with command line), or use something like PHPMyAdmin(Graphic interface to MySQL).
Your host should give you access to that. If you need more info on that, let us know who your host is, and we can probably figure out where your PHPMyAdmin is, and then it's similar to editing in excel.
-Phil
add
define(‘STATISTICS_TRACK_PAGE_VIEWS’, false);
to your config/site.php
Should get you back up and running.
In PHPMyAdmin there’s the option to manually increase the auto_increment value. I would increased it by one to the error number you were getting and the site may work again with statistics (comment the line you just inserted in the config/site.php)
Worked for me today :)
-Phil