I created a website using a database prefix and node style threw errors. I reinstalled using another prefix, but without deleting the existing tables. Again, I had errors. Before I started from scratch again, I looked at the database tables and they were all prefixed (twice, with both prefixes) except node_style which only was present once, and with no prefix.

CommentFileSizeAuthor
#1 install_24.patch1.58 KBhass

Comments

hass’s picture

Status: Active » Needs review
StatusFileSize
new1.58 KB

I checked the code and yes, the .install file have some bugs inside... i have created the attached patch for fixing this. please try out.

arzajac’s picture

I tried it out and it works for me.

Thank you.

How do I apply the patch and fix this on an installed site? I could only test it out by starting out fresh on a test LAMP server.

hass’s picture

never done this yet... therefor on your own risk.

1. delete the not correctly created node_style tables.
2. remove "sites/all/modules/node_style/node_style.module" entry from "system" table - if exists
3. try out activating the module again... should work.

arzajac’s picture

Thanks, that worked.

hass’s picture

Status: Needs review » Reviewed & tested by the community

sound good, let's set the case to RTBC.

Zen’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Dupe of http://drupal.org/node/117319 . Fixed with today's sync with HEAD.

Thanks,
-K