After I install a module like mailhandler or theme_editor, I get errors when I go to the settings. Now I am a Drupal beginner and php novice so that's probably a very silly question but there are no further installation instructions in the module readmes.

Mailhandler issues

This is the warning I get when I select mailhandler in my administer menu.

user warning: Table 'smallpri_drpl2.mailhandler' doesn't exist query: SELECT * FROM mailhandler ORDER BY mail in /home/DRUPAL_INSTALLATION_PATH/includes/database.mysql.inc on line 120.

If I go into the settings and select the Add mailbox then I get this message.

Fatal error: Call to undefined function: form_textfield() in /home/DRUPAL_INSTALLATION_PATH/modules/addons/mailhandler/mailhandler.module on line 772

Steps I have tried

I copied the modules in my module folder as shown in the above paths. I checked in cPanel X My SQL Databases that there is a "smallpri_drpl2" but that's as far as I get.

Similar issue with Theme_editor

... in that I get a fatal error
Fatal error: Call to undefined function: form_select() in /home/DRUPAL_INSTALLATION_PATH/modules/addons/theme_editor/theme_editor.module on line 465

No idea where to begin.

Any help appreciated greatly!

Comments

StevenSokulski’s picture

I had a similar issue. The root of the problem appears to be in that the module_name.install file is not able to add excecute the necessary SQL to create the tables and insert the initial data. Anybody know why this is happening?

In the meanting I've been stripping the SQL out of the .install files for modules I want to use and running it manually via MyPHPAdmin. Thats fine for a module or maybe two, but when I installed both eCommerce and CCK I was ready to jump our my window.

Thanks for any advice on how to go about fixing whatever has gone wrong.

ryivhnn’s picture

What a mess.

Try playing around with the order of your input filters, last time I had similar looking problems that's what fixed it.

I don't know about the not working install files, it's possible that for some of the modules the install file isn't working, in which case hit up the module developers via the issues pages for the afflicted modules. Personally I've only ever encountered one module where the install file didn't work but that's been rectified.

works at bekandloz | plays at technonaturalist

StevenSokulski’s picture

I've got to believe that with the vast number of people that use CCK and eCommerce the .install files would have to work which is why I'm thinking its a problem with my system. Hmm...I'll keep prying and see what I can find.

d2x2’s picture

Nope, the input filters don't seem to play a part there.

StevenSokulski’s picture

So on my system whatever it was seems to have fixed itself. I was able to use several .install files last night. Oddly enough it started randomly and has now gone away randomly. Strange.

solimeno’s picture

After reading all of the previous posts, I checked the file permissions of the modules I uploaded. I had problems with all of the modules that had read only privileges for group and world.

THE FIX: $ chmod -R 755 modules

This reset privileges for everything in the modules subdirectory to read+execute, and then after re-enabling the troublesome modules, the install executed without any problems.

CAVEAT: I am unsure of any security issues when doing this - but it fixed the problem for me.

Bob

StevenSokulski’s picture

My thinking is that the .install file must be executable. The system has to be able to execute the script of that file to create the database tables. However, since there are no destructive commands in .install files (if a dropif command is present in a .install file that should be removed) there would be no harm in the .install file being executed maliciously as it would not do anything.

However, I'm unsure where this leaves us with the possibility of having an uninstall option for modules (and I'd assume and .uninstall file).

dyba’s picture

bookmarked.