Error message
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '[db_prefix].css_injector_rule' doesn't exist: SELECT * FROM {css_injector_rule}; Array ( ) in _css_injector_load_rule() (line 153 of /some/web/path/sites/all/modules/css_injector/css_injector.module).

After I installed the module (via the ftp option) and enabled it, I got the following error. This made the site completely unuseable. I had to disable the module manually in the system table and delete the module code to get the site running again.

Comments

vegantriathlete’s picture

I don't know if this may be related to the fact that I was not able to uninstall it previously. But, I thought that I had properly done the uninstall process manually by reading through what the code intended to do.

rfay’s picture

Your module did *not* get successfully uninstalled before, but it did succeed in getting rid of the table.

Please, with the new code, do this:

* Disable the module
* Uninstall the module
* Enable the module

vegantriathlete’s picture

It hadn't even gotten rid of the table because the uninstall failed prior to dropping it. I manually dropped the table and removed the subdirectory (and all its contents) that had been added under sites/default/files.

Let me see what happens when I install it on a "clean" environment; that was a really unpleasant surprise taking down the production server ;-)

vegantriathlete’s picture

Status: Active » Closed (works as designed)

Okay. It installs fine in a clean environment. Now I've just got to make sure I've completely cleaned up the other one. And I'll see whether the uninstall works.

vegantriathlete’s picture

Issue summary: View changes

change the information to be more generic regarding the server information