after installing module i get following error message:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'abc.flags' doesn't exist: SELECT f.fid AS fid, f.content_type AS content_type, f.name AS name, f.title AS title, f.global AS global, f.options AS options, fn.type AS type FROM {flags} f LEFT OUTER JOIN {flag_types} fn ON fn.fid = f.fid; Array ( ) in flag_get_flags() (line 1665 of /Applications/MAMP/htdocs/abc/sites/all/modules/flag/flag.module).

Comments

bsandor’s picture

i use
drupal 7.26
panels 7.3.3
ctools 7.1.3

bsandor’s picture

Version: 7.x-2.1 » 7.x-3.3
Component: Miscellaneous » Flag core

originally i used flag 3.3 that didn't work with panels 7.3.3. That's why i tried flag 7.2.1.
AS later one collapsed i went back to flag7.3.3 now I get following error message:

DatabaseSchemaObjectExistsException: Table flag already exists. in DatabaseSchema->createTable() (line 657 of /Applications/MAMP/htdocs/abc/includes/database/schema.inc).

The flag7.3.3 misscompatibility is described here: https://drupal.org/node/2188591

joachim’s picture

Category: Bug report » Support request
Status: Active » Fixed

> originally i used flag 3.3 that didn't work with panels 7.3.3. That's why i tried flag 7.2.1.
AS later one collapsed i went back to flag7.3.3 now I get following error message:

You can't go back a version. If you do that anyway, you then can't go forward again. You've now got your DB in an unstable state. You need to manually remove all the tables that BOTH versions have created, and start again.

bsandor’s picture

Hi,

Thanks for your answer.

Do you mean even after uninstalling the module? Tables stay there? If that's the case it would be definitely great getting rid of tables.

Anyways i have a critical issue for wich i might open another ticket maybe..

Thanks.

joachim’s picture

> Do you mean even after uninstalling the module? Tables stay there? If that's the case it would be definitely great getting rid of tables.

Running the proper uninstall procedure will delete tables.

However, if you uninstall Flag 2 having previously installed Flag 3, then that won't work, because their tables do not have the same names.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.