After I enable votingapi, I get the following message:
Table 'kelp_drpl1.votingapi_vote' doesn't exist query: SELECT DISTINCT uid from votingapi_vote in /home/kelp/public_html/tutorialwhore/includes/database.mysql.inc on line 121.

Comments

AndyDoan’s picture

Version: 4.7.x-1.1 » 5.x-1.2

I'm having the same problem getting the DB to update.

thomasmuirhead’s picture

Assigned: Unassigned » thomasmuirhead

I have this very problem as well. The votingapi.install file does not seem to be running properly as the tables are missing from the database upon installation. I have also tried running update.php and this stalls so i am now stuck.

My first stab at fixing it was to try reinstalling using the devel module but this has not worked either.

Any thoughts on a solution?

Cheers

thomas

junyor’s picture

Title: Enabling the module votingapi gave me a MySQL error » MySQL tables not created during installation
Category: support » bug
Priority: Normal » Critical

I'm having this same problem when trying votingapi on 4.7.

klipseracer’s picture

again, same problem.... says its a warning.

zoon_unit’s picture

There is a workaround for this problem. Delete the voting api tables, then find any and all records in the system table that list voting api and delete them. This will force a fresh install of voting api and should fix your problem.

If this is an update from 4.7, I suspect the problem lies in the fact that the system table does not update the path of the voting api module. If you moved your module from 4.7's module directory to 5.0's sites/all/modules, this may be the cause.

costik’s picture

Yes, this work-around does the job. I'll note that I got the same error when trying to enable the Voting API at the same time as several other modules that depend on it (Five Star and the CRE). After deleting from the DB, I carefully turned on Voting API, and only then others dependent on it, and installation went smoothly. For the nonce, a simple fix might be to tell users to be sure to turn on Voting API before any dependent modules.

eaton’s picture

Status: Active » Closed (fixed)