Good evening all

I have just installed Drupal and various contribs, all from CVS (on 15 November).

The two I am most interested in throw up the above error:

* theme editor when I try to config
* gallery module when I try to config

I've tried to find a solution for the past couple of days, in the forums here and via google, without much luck and, as you can probably guess from my login name, I have no idea where to start looking on my own.

Any pointers in the right direction would be much appreciated :)
____________
Linux
Apache
PHP 4.4.0
MySql 4.0.25

Comments

praseodym’s picture

This is probably because of the newly introduced forms API. Try enabling legacy.module for compatibility with older code.

no_idea_yet’s picture

Hi there

Thanks for the tip, unfortunately it didn't fix the problem.

Just read in another thread something about modules in CVS may have been rewritten for Drupal 4.7. Does that sound about right and if so could that be the issue?

no_idea_yet’s picture

Still struggling to figure out what the deal is with this, any pointers much appreciated.

no_idea_yet’s picture

Have started from scratch 3 times now and would appreciate some help. Still same error as above and the fun is wearing off rapidly. I can see the potential in Drupal but not a promising start so far.

Installed Drupal and the contributions via CVS.

Can someone at least confirm whether or not there is an issue with the latest CVS version of Drupal and form_textfield() please.

Thanks

no_idea_yet’s picture

OK

Deleted my Drupal install . . . yet again!

Installed, via CVS, Drupal 4.6.3 in case it was an issue with using head - still stuffed.

Would really appreciate some help here or I'll have to head back to Joomla :(

Dublin Drupaller’s picture

I just tried the latest downoad of Drupal 4.6.3 and it worked perfectly out of the box...installed the Image.module (4.6) and a different theme (4.6) and all worked swimmingly...

I tried configuring the gallery after following the install.txt instructions with image.module...worked first time I didn't get any errors.

Also tried configuring a different theme (4.6) to the out-of-the-box default..again no errors reported and it worked perfectly.

Are you mixing CVS modules with 4.6 modules by any chance?

The CVS downloads are essentially "Work in progress" versions. If you are loooking at building a Drupal site, I recommend you use the latest 4.6.x released version...(today that is Drupal 4.6.3) and ditto for the modules and themes.

And remember to download 4.6 modules for use with Drupal 4.6.x and CVS modules/themes for use with Drupal CVS.

I hope that makes sense..tyhe ponly people downloading Drupal CVS at the moment are developers, people helping out with testing & reporting issues and Drupallers who can't resist a quick peek at (what will become) the next version of Drupal.

It would be useful if you could post the precise error mesages you are getting for others to help on here....or if you want someone to give you a leg up and just get up and running let us know...

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

no_idea_yet’s picture

G'day Dub

How's things in the Emerald Isle? Thanks for replying, I've noticed a lot of your posts while looking around here trying to figure out this problem so your advice would be much appreciated.

I've tried it with both the latest version (wanted to see what else was going to be in the next version) and the install I have now should be 4.6.3 stable I thinkt (installed via cvs: cvs -z3 -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal -q checkout -d DRUPAL-4-6 drupal)

The contribs also via cvs, again what I assume are stable versions (cvs -d:pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-4-6 contributions).

I installed the latest Gallery2 in the root of Drupal and it works fine stand alone. I then installed the gallery module to integrate it into Drupal. When I click on settings/gallery I get this error message:

Fatal error: Call to undefined function: form_textfield() in /home/cfalscom/public_html/connect/modules/gallery/gallery.module on line 35

I also wanted to try the lincolns_revenge theme. Installed the theme_editor module, when I click on configure I get this error message:

Fatal error: Call to undefined function: form_textfield() in /home/cfalscom/public_html/connect/modules/theme_editor/theme_editor.module on line 212

Thinking I must be missing something obvious but going round in circles.

Dublin Drupaller’s picture

I'll be jumping out of here soon to watch Ireland on telly hammer the Australians in Landsdowne Road (kick off is 2:30...2:00 here now).

A few quick tips:

  1. If you want to check out the next version of Drupal..you'll have to wait a week or two at least. The CVS version is a "work in progress" version. Which means that developers are in the process of working on it. I tried it a few times this week and it installs fine and you're able to get an idea of what the new features are like, but, that's as far as it goes at the mo.
  2. if you want to help spotting errors with Drupal CVS, feel free to download it and install it and report errors that haven't been already reported to here:
    http://drupal.org/project/issues/3060
  3. if you want to help spotting and fixing errors with CVS versions of Modules...feel free to download CVS modules (which are also work in progress versions) and report errors that haven't already been reported to the appropriate bugs and errors page for each module
  4. I recommend you download the latest version of Drupal 4.6.3 from this link.
  5. If you are using Drupal 4.6.3 I also recommend you *ONLY* use modules for version 4.6. CVS versions of modules won't work
  6. the error message Fatal error: Call to undefined function: form_textfield() is a Drupal CVS related error. i.e. you re either using a CVS module with 4.6.3 or the module has not yet been upgraded properly yet. Repeat: CVS essentially means the "work in progress" version.

Thinking I must be missing something obvious but going round in circles.

Try getting used to using the Search form at the top right of the screen...

A quick search for that form_textfield error would have helped guide to to what's going on...or clicking through to the bugs and errors page for Drupal CVS might have given you some indication to same..

The bottom line is if you're new to Drupal...I recommend you go with the Drupal 4.6.3 version until the Drupal CVS and contributed modules are cleaned up and ready for release. which is soon...but, best to wait if you are new to it..

And if you're "having a quick look" at Drupal CVS..by all means do so. But remember to clear out everything, database included and just stick with the core. Downloading a work in progress version of Drupal...and then adding work in progress contributed modules on top of that, is asking for trouble if you're not a developer.

Hope that helps....kick off is coming up soon...

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

no_idea_yet’s picture

Will check all this out at half time . . . problem being that originally coming from Scotland I'm a bit torn on who I want to win . . . the Wallabies where getting too cocky but considering the run they'e having over there at the moment I think they'll be a bit more humble :)

I did search before posting originally but wasn't too sure what I was looking at in the results. Also thought that going for a stable cvs install was kosher hence deleting the first install (I use CVS for Moodle and Gallery2 and love the way it makes updating so easy).

But, you live and learn, will try the old download and upload and see what the deal is. Also hope to be of some use even if it's just testing and filing bug reports if/when I get my head around Drupal.

Damn, kicked off . . . good luck and thanks for taking the time to get back to me.

H

puregin’s picture

I'm getting the same error - with a CVS install, and a PHPTemplate theme, trying to configure the theme in admin/themes/settings/

This behaviour was not present a couple of weeks ago, so this seems like a CVS HEAD instability issue.

I'd suggest installing 4.6.3 from a tarball, rather than CVS.

Hopefully we'll sort out what is going on in HEAD :)

--
puregin

puregin’s picture

In my case, my PHPTemplate theme engine was not current. The latest version from CVS has been upgraded to use the new forms API, and the error message about function 'form_textfield' not being found went away.

For some reason, I had to manually do a 'CVS checkout' to get the new theme engine (cvs update didn't know about the engine)

As far as gallery module goes, you'll need to wait until it is upgraded to the new forms API (or tackle the upgrade yourself :)

Good luck...

--
puregin

no_idea_yet’s picture

Hi puregin

Think you pinpointed the issue there - cvs update being blind :)

Ended up just going with the tarball to at least get something to play with and get my head around. Doing this allowed me to get Gallery in but still a few kinks ... I'd love to do the upgrade on it but to do so would mean having a clue at what I'm looking at! (on a bit of a steep learning curve here). Hopefully one day.

Figure I'll have a play around for a couple of weeks and then ditch it and go with cvs again (manual upgrades a bit too much hassle). Looks like an excellent CMS with an even better community of developers/users to take it forward.

Thanks for the info re the theme engine.

H

PS Dub, if you're reading this ... bummer about the final score ;)