Activating Statistics module produced following:
"Error message. DatabaseSchemaObjectExistsException: Table accesslog already exists. in DatabaseSchema->createTable() (line 660 of ___includes/database/schema.inc)."
I manually deleted it and tried again and:
"DatabaseSchemaObjectExistsException: Table node_counter already exists. in DatabaseSchema->createTable() (line 660 of..."
Delete and:
"DatabaseSchemaObjectExistsException: Table accesslog already exists. in DatabaseSchema->createTable() (line 660..."
Delete and... wow, it works.
It seems that problem raised because I'm usually trying something in testsite and then overwriting live site (files and databases copied, setting-php changed). First, there was statistics activated in live site. Then I upgraded testsite (core 7.41 etc etc) and statistics was in some point deactivated. So I overwrote live site, where statistics was activated, with testsite, where it was not.
The question actually is -- must statistics module activating script be so dumb and misanthropic? No offense...
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedThis is a duplicate of an old Drupal7 problem, #1551132: When trying to create a table that already exists but is empty, recreate the table rather than throwing a DatabaseSchemaObjectExistsException.