After installing fieldgroup tabs and tabs, I get the following warnings and the form for the fieldgroup will not display:

* warning: Missing argument 1 for drupal_get_form() in C:\xampp\htdocs\mysite\includes\form.inc on line 69.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in C:\xampp\htdocs\mysite\includes\form.inc on line 358.

Thank you for any help fixing this!

CommentFileSizeAuthor
#17 cck_fieldgroup_tabs_update.patch2.24 KBnedjo

Comments

bomarmonk’s picture

Project: CCK Fieldgroup Tabs » Content Construction Kit (CCK)
Component: Code » fieldgroup.module

Nope: I guess this is a problem with the development version of CCK, not the fieldgroup tabs modules. After disabling the fieldgroup tabs modules, I still have the same problem.

yched’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

Unable to reproduce on a config without fieldgroup tabs - fieldgroups by themselves work OK.
Please make sure you have the latest CCK 6.x-2.x, and provide more info :
- content type / fieldgroups configuration : which fields, which widgets...
- when exactly does the error occur (which page, after doing what, etc...)

bomarmonk’s picture

Okay (sorry about the rather general report): I have created a custom content type with 10 field groups and 74 fields, including the title. Most of these fields are text areas with a row set to 10, but I also have some smaller text fields included (nothing too fancy). My input filters are set to user input. I installed the fieldgroups tab module after creating the content type, most of the fields and all of the field groups. The error occurs when selecting "configure" for the field group from the "manage fields" screen. The next screen after clicking the "configure" fieldgroup button gives me only the warnings and the title "Edit Group." No options are available, only the warning. I am using the latest development version of CCK, dated June 20th. I did try going back to the beta version, but received the same warnings when using that version. I am running this with XAMPP on a Windows Vista machine (I'm not sure that would affect anything). Let me know if you have any other questions that can help with this issue. It may be a configuration issue on my side, but my Drupal setup is pretty simple. The only additional modules I have installed: content template, IMCE, IMCE image, TinyMCE, Field group tabs, and Tabs. Everything else is core or in the core of CCK.

bomarmonk’s picture

Status: Postponed (maintainer needs more info) » Active

Changing status, as more information has now been provided.

yched’s picture

Priority: Critical » Normal

I cannot reproduce on my setup (where 'fieldgroup tabs' has never been enabled - dunno whether it's related or not).
I'd recommend your clear your site's various caches, using either devel.module's 'clear cache' or the 'clear cached data' button on admin/settings/performance.

Raising [edit : er, lowering] priority anyway, as fieldgroup doesn't seem to be actually broken.

bomarmonk’s picture

After disabling and uninstalling tabs and fieldgroup tabs, the problem remains. I can no longer edit fieldgroups :(

yched’s picture

What other modules are enabled on your site ?
You should try disabling all modules except core + CCK modules, see if the error still occurs.

bomarmonk’s picture

I disabled everything except the suite of CCK modules that come with the content construction kit. Everything else comes standard (as part of Drupal 6's core). I think installing the fieldgroup tabs and tabs modules triggered these problems, as I was able to edit and configure fieldgroups before I tried those modules (they are both now completely removed from my installation). Strange stuff. I also had TinyMCE. IMCE, and IMCE image field installed. They were disabled and the problem persists.

yched’s picture

http://drupal.org/node/277259 was marked as duplicate.

Not much I can say, except :
- I can't see it on my local install (on which 'fieldroup tabs' was never installed)
- The only reports for this come from people that have used (and disabled too, which does make this confusing) fieldgroup tabs.
Don't want to point fingers :-), but to me this does look related to fieldgroup tabs.

This could look like stale hook_forms() data, though.
giuseppe.minnella, bomarmonk : can you confirm that you did empty all drupal caches ?
You need to use either devel.module's 'clear cache' or the 'clear cached data' button on admin/settings/performance.

nedjo’s picture

Looks like this may be a fieldgroup tabs issue, since it's twice been reported by users who installed fieldgroup tabs (see http://drupal.org/node/277259, dupe).

Moving back to CCK Fieldgroup Tabs.

nedjo’s picture

Project: Content Construction Kit (CCK) » CCK Fieldgroup Tabs
Version: 6.x-2.x-dev » 6.x-1.x-dev
Component: fieldgroup.module » Code

Conflicting with CCK 6.2 dev?

I haven't yet tested with 6.2 dev. Looks like maybe changes there require updates to CCK Fieldgroup Tabs.

bomarmonk’s picture

Priority: Normal » Critical

Changing to critical, as this essentially prevents me from editing fieldgroups, whether I uninstall fieldgroup tabs or not.

bomarmonk’s picture

Ah, and I should add that I have upgraded to CCK's release candidate for Drupal 6 and the problem persists. Thanks for any help on this.

giuseppe.minnella’s picture

cached data clear, nothing new.

B_u_f_o’s picture

Assigned: Unassigned » B_u_f_o
Priority: Critical » Normal

I have the same problem. Clearing data didn´t help me.

B_u_f_o’s picture

Priority: Normal » Critical
nedjo’s picture

StatusFileSize
new2.24 KB

I've put a note on the module page that the D6 version shouldn't be used until this issue is resolved.

Here's an untested patch that follows the new code in content.admin.inc.

I don't know why this should continue to affect fieldgroups after CCK Fieldset Tabs is turned off.

B_u_f_o’s picture

I had this problem when I had a lot of values in a select list - about of 3000

bomarmonk’s picture

I tested the above patch (#17), and it applied cleanly, However, I am now getting warning messages on every page of my site:

* warning: include_once(./sites/all/modules/cck_fieldgroup_tabs/cck_fieldgroup_tabs.module) [function.include-once]: failed to open stream: Permission denied in C:\xampp\htdocs\mysite\includes\bootstrap.inc on line 558.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/cck_fieldgroup_tabs/cck_fieldgroup_tabs.module' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\mysite\includes\bootstrap.inc on line 558.

And when I select "Edit group" from the manage fields screen, I get more of the same:

* warning: include_once(./sites/all/modules/cck_fieldgroup_tabs/cck_fieldgroup_tabs.module) [function.include-once]: failed to open stream: Permission denied in C:\xampp\htdocs\mysite\includes\bootstrap.inc on line 558.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/cck_fieldgroup_tabs/cck_fieldgroup_tabs.module' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\mysite\includes\bootstrap.inc on line 558.
* warning: Missing argument 1 for drupal_get_form() in C:\xampp\htdocs\mysite\includes\form.inc on line 69.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in C:\xampp\htdocs\mysite\includes\form.inc on line 358.

nedjo’s picture

Those new warnings appear to be merely a permissions error. Please check permissions on the file.

nedjo’s picture

Status: Active » Fixed

Tested and applied the patch. The module now seems to work with CCK's D6 release candidate.

I don't know what the original issue was or why an error persists. The reported errors seem to be on Windows; don't know if that's pertinent.

roberto.ch’s picture

after this patch (#17) i get following error:

warning: Invalid argument supplied for foreach() in /opt/www/drupdev.axnet.ch/htdocs/sites/all/modules/cck_fieldgroup_tabs/cck_fieldgroup_tabs.module on line 104.

by selecting/clicking "display fields"

saluti
roberto

nedjo’s picture

Right you are. I was testing in the wrong place. Applied another tweak, shd work now.

bomarmonk’s picture

Updated to latest development version of Fieldgroup Tabs in CVS and updated to Drupal 6.3-dev and CCK 6.x dev. I get the following errors when editing a fieldgroup (this may have to do somewhat with the development version of Drupal itself, but there is supposed to be a fix in 6.3 that irons things out for CCK):

* notice: Undefined variable: node in C:\xampp\htdocs\mysite\sites\all\themes\pixture\page.tpl.php on line 63.
* notice: unserialize() [function.unserialize]: Error at offset 65537 of 65535 bytes in C:\xampp\htdocs\mysite\includes\menu.inc on line 257.
* warning: Missing argument 1 for drupal_get_form() in C:\xampp\htdocs\mysite\includes\form.inc on line 69.
* notice: Undefined variable: form_id in C:\xampp\htdocs\mysite\includes\form.inc on line 100.
* notice: Undefined index: in C:\xampp\htdocs\mysite\includes\form.inc on line 345.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in C:\xampp\htdocs\mysite\includes\form.inc on line 359.
* notice: Undefined variable: form_id in C:\xampp\htdocs\mysite\includes\form.inc on line 105.
* notice: Undefined variable: form_id in C:\xampp\htdocs\mysite\includes\form.inc on line 119.
* notice: Undefined variable: form_id in C:\xampp\htdocs\mysite\includes\form.inc on line 148.

nedjo’s picture

Does it work on a clean install?

bomarmonk’s picture

Using a clean install of Drupal 6.3-dev and CCK release candidate 3, I am happy to report that fieldgroup tabs 6.x-dev seems to be working rather well! I am still getting a few little notices, due to Drupal 6.3-dev's sensitive notice reporting, but nothing major:

* notice: Undefined index: #contexts_selector in C:\xampp\htdocs\drupal\sites\all\modules\cck_fieldgroup_tabs\cck_fieldgroup_tabs.module on line 103.

I get these notices for a number of other things, in addition to the fieldgroup tabs module (apparently a development level of reporting).

roberto.ch’s picture

with following components:

Drupal 6.3
Content Construction Kit (CCK) 6.x-2.0-rc4
Views 6.x-2.0-rc1

is

CCK Fieldgroup Tabs 6.x-1.x-dev (2008-Jun-20)

without the patch (#17) functionally :-)

saluti
roberto

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.