I've just installed the new 4.7.4 on a new site and have just gone and added the image module (4.7 version from 25/10/06), however when i go to the image settings page under admin i'm getting the following error come up and no form:

warning: Missing argument 2 for drupal_get_form() in /homepages/44/d176613683/htdocs/includes/form.inc on line 61.

I'm running php 4 and mysql5 on 1and1. I've got another site on 1and1 but running drupal 4.7.3 and i've never had any problems with the image module.

Anyone got any ideas or come across the same thing? I've seen a few error floating round associated with form.inc on line 61 but for different modules.

Comments

toptom1’s picture

I am getting this error too.

I have the same code running different sites, each have their own database, let'scall these site A and site B. When I activate the image module on site B I get the error 'missing argument 2 drupal_get_form()' under the image settings. There are these noticable differences between the sites (both using box_grey theme) with regards to the image module:

Site A has the image, image_gallery and image_attach descriptions under the module page but Site B does not.
Under Settings on Site A the link to the image settings is 'image' on Site B the link is 'image settings'.

I am going to try to reinstall the database and insert the relevant data I need back into the tables - then test image again - this may confirm if it is a database issue (which i think it must be).

toptom1’s picture

This even happens with a fresh database. No extra modules activated. Version is 4.7.3 - Help?!

Could a file have been currupted?- How can this have happened?

stanbroughl’s picture

i tried an earlier version of the image module and still have the same error so perhaps its a problem with the new 4.7.4 code somewhere. I had a look through the form.inc file and can't see any differences but i'm no coder so i may have missed something!

Anyone got any other ideas on what it could be causing the problem?

toptom1’s picture

Yeh I tried an earlier version of image too - still same prob. - I am using 4.7.3 though so i don't think it's a 7.4.4 problem.

Could it be a module that we have activated recently, here is a list of some of the modules I recently tried and did not try on my other site:
Flexinode (activated then deactivated)
Content <- had a few problems with activating content and deactivating flexinode but sorted it out in the database. (activated)
Nodereference (cck) (activated)
Fieldgroup (cck) (activated)
Text (cck) (activated)
jstools (activated)
jscalendar (activated)
contemplate (activated)
Simple_access <- got a feeling it could be this but I don't know why (activated then deactivated)

Have you installed any of these modules since haveing image working on one site and then breaking on the other? - maybe we can ascertain how this has happened this way.

toptom1’s picture

[Don't know what happened to the rest of my post but it was this:]

Nodereference (activated)
Text (activated)
simple_access (activated then deactivated) <- got a feeling it could be this but don't know why
contemplate

Have you installed any of these modules since your last site and your new one?

toptom1’s picture

[Don't know what happened to the rest of my post but it was this:] am i missing something here? most of my post is being deleted?!
simple_access (activated then deacivated)
contemplate (activated)

Have you installed any of these too since your last site and your new one?

stanbroughl’s picture

i don't have simple access but i've got everything else activated - i've got a long list of modules but i've not had any problems before the 4.7.4 version so can't pin down what it could be.

I've submitted an issue to the drupal projec thread, hopefully one of the module maintainers will see it there

toptom1’s picture

The fault is with the phone cck module - if you've activated it get rid of it! it creates an image sub-directory and this overwrites the image module in your site. Pah!

akolahi’s picture

Yes, it is indeed the fault of the Phone module, just uninstalled it and it solved hours of pain :)

jdsaward’s picture

Not sure if this helps anyone, but...

I was having the same problem on a 4.7.4 installation. I had installed the Image CVS version of November 2, 2006 - 22:31. After reading this thread I uninstalled the CVS version and installed the 4.7.0 version of October 26, 2006 - 04:17. After that the error did not occur.

hyperlogos’s picture

Uninstalling the phone module did not help me. I have disabled and then even deleted phone.module and I'm still having the problem.

sun’s picture

Status: Active » Closed (won't fix)

Development and support for 4.7.x and 4.6.x has ended. You are strongly advised to upgrade to Drupal 5.x or 6.x.

Marking as won't fix.