Hi,

I had the following problem on my website:

After enabling then disabling Redirect, there was still the redirect table in the MySQL database but no uninstall option in admin/modules. This created a problem with trying to reinstall the module:

"Error messageDatabaseSchemaObjectExistsException: Table redirect already exists. in DatabaseSchema->createTable() (line 657 of /home/(user)/(site)/public/includes/database/schema.inc).
The website encountered an unexpected error. Please try again later."

After this, the the module was listed as active, but clicking on Configure redirected to Search settings. Simply disabling it, manually deleting the redirect table from the database, then re-enabling it did the trick.

Comments

dave reid’s picture

Status: Active » Fixed

Yeah sounds like core's uninstall did not work properly. There's no reason it shouldn't have offered to uninstall cleanly. By disabling and enabling you cleared the menu router cache which made the menu links work again. Unless this can be reproduced, I'm just going to think this is one of those "random circumstances that we can never duplicate."

Status: Fixed » Closed (fixed)

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

Alek1983’s picture

totocol’s picture

Hi there,

Same issue here:

atabaseSchemaObjectExistsException: Table redirect already exists. in DatabaseSchema->createTable() (line 657 of /includes/database/schema.inc).

Would it be safe to delete it manually?

Cheers

dddbbb’s picture

I'm experiencing this exact same issue/error message under the same circumstances.

dddbbb’s picture

Issue summary: View changes
Priority: Minor » Normal
Status: Closed (fixed) » Active
dddbbb’s picture

Incidentally, I did have success dropping the redirect table before re-enabling the module.

sonobor1’s picture

DatabaseSchemaObjectExistsException: Table redirect already exists. in DatabaseSchema->createTable() (line 657 of /includes/database/schema.inc).
The website encountered an unexpected error. Please try again later.

No solution other than manually deleting the fields from the database? It worked but . . .

I don't see an uninstall option either.

pere orga’s picture

Status: Active » Closed (cannot reproduce)

To try to reproduce the problem we would like to have more details. By the way nodules can be uninstalled after they are disabled.