Not sure what is causing this to happen. I see this notice when looking at admin/config/group/fields.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shushu’s picture

Status: Active » Postponed (maintainer needs more info)

Please elaborate.

alamp’s picture

This might happens due to the following steps.
but I'm not sure of this.

Steps:

  1. Install og
  2. Install og_quiz

do something..
then

  1. uninstall og_quiz

Then If I click admin/config/group/fields
All of sudden, it shows the following.

Error message:

. (Array, 8 elements)
     7: og_ui_field_settings() (Array, 2 elements)
        file (String, 47 characters ) sites/all/modules/og/og_ui/og_ui.admin.inc:1020
        args (Array, 2 elements)
            0 (Array, 0 elements)
            $...[' 7: og_ui_field_settings()']['args'][0]
            1 (Array, 14 elements)
                build_info (Array, 3 elements)
                    args (Array, 0 elements)
                    $...[' 7: og_ui_field_settings()']['args'][1]['build_info']['args']
                    form_id (String, 20 characters ) og_ui_field_settings | (Callback) og_ui_field_settings();
                    $...[' 7: og_ui_field_settings()']['args'][1]['build_info']['form_id']
                    files (Array, 1 element)
                    $...[' 7: og_ui_field_settings()']['args'][1]['build_info']['files']
                        menu (String, 42 characters ) sites/all/modules/og/og_ui/og_ui.admin.inc
                rebuild (Boolean) FALSE
                $...[' 7: og_ui_field_settings()']['args'][1]['rebuild']
                rebuild_info (Array, 0 elements)
                $...[' 7: og_ui_field_settings()']['args'][1]['rebuild_info']
                redirect (NULL)
                $...[' 7: og_ui_field_settings()']['args'][1]['redirect']
                temporary (Array, 0 elements)
                $...[' 7: og_ui_field_settings()']['args'][1]['temporary']
                submitted (Boolean) FALSE
                $...[' 7: og_ui_field_settings()']['args'][1]['submitted']
                executed (Boolean) FALSE
                $...[' 7: og_ui_field_settings()']['args'][1]['executed']
                programmed (Boolean) FALSE
                $...[' 7: og_ui_field_settings()']['args'][1]['programmed']
                programmed_bypass_access_check (Boolean) TRUE
                $...[' 7: og_ui_field_settings()']['args'][1]['programmed_bypass_access_check']
                cache (Boolean) FALSE
                $...[' 7: og_ui_field_settings()']['args'][1]['cache']
                method (String, 4 characters ) post
                $...[' 7: og_ui_field_settings()']['args'][1]['method']
                groups (Array, 0 elements)
                $...[' 7: og_ui_field_settings()']['args'][1]['groups']
                buttons (Array, 0 elements)
                $...[' 7: og_ui_field_settings()']['args'][1]['buttons']
                input (Array, 0 elements)
                $...[' 7: og_ui_field_settings()']['args'][1]['input']

These are my modules related to fabulous og:

 Organic groups                       OG Forum (og_forum)                                                                  Module  Enabled        7.x-2.0-alpha1
 Organic groups                       Organic groups (og)                                                                  Module  Enabled        7.x-2.6
 Organic groups                       Organic groups access control (og_access)                                            Module  Enabled        7.x-2.6
 Organic groups                       Organic groups context (og_context)                                                  Module  Enabled        7.x-2.6
 Organic groups                       Organic Groups Mass Add (og_massadd)                                                 Module  Enabled        7.x-1.0-beta2
 Organic groups                       Organic groups UI (og_ui)                                                            Module  Enabled        7.x-2.6
shushu’s picture

Which og_quiz did you install, and what exactly is the "do something" sentence means ?

alamp’s picture

@shushu

>Which og_quiz did you install

og_quiz : version = "7.x-1.1" (located at /sites/all/modules/og_quiz)

>"do something" sentence means ?

I did some common activities such as configures in UI, installing other modules.
After a while, I came back to "admin/config/group/fields", it started showing the errors.

alamp’s picture

I'm attaching the patch for this issue, based on og 7.x-2.6

shushu’s picture

Title: Undefined index: group_content in og_ui_field_settings() » Proper uninstallation
Project: Organic groups » Quiz
Version: 7.x-2.4 » 7.x-4.0-beta2
Component: og.module » Code - other
Status: Postponed (maintainer needs more info) » Needs work

@alamp, I did some actions and then uninstalled og_quiz and quiz. Accordingly I got some similar error messages.
Thanks for the patch, but as I see it we can't take every situation into consideration, and other modules which uses OG (or any other module) should "behave" accordingly.
As I see it, the uninstallation procedure for quiz and og_quiz seems to miss some steps, and leave the database in a bad situation.
This issue should be fixed in the origin.

alamp’s picture

@shushu, thanks!, I can't agree with you more!

djdevin’s picture

Component: Code - other » Code - Quiz core
Status: Needs work » Closed (outdated)

This issue is being closed because it was filed against a Beta version of Quiz 4 that is no longer supported.

Quiz 4 is now in RC status.

If the issue still persists in the latest RC of Quiz 4, please open a new issue.