When enabling the module, following message appears in front and backend:

Notice: Undefined variable: checkout_panes in commerce_fieldgroup_panes_commerce_checkout_pane_info() (regel 20 van /var/www/sites/site1/subdomains/www/html/sites/all/modules/commerce_fieldgroup_panes/commerce_fieldgroup_panes.module).
Warning: Invalid argument supplied for foreach() in commerce_checkout_panes() (regel 441 van /var/www/sites/site1/subdomains/www/html/sites/all/modules/commerce/modules/checkout/commerce_checkout.module).

Using the latest commerce-version (beta3).

Please advise.

Comments

hunziker’s picture

Status: Active » Postponed (maintainer needs more info)

I need some more information, because I cannot reproduce the problem:

  1. Can you tell which version of field_group and which version of drupal 7 you are using?
  2. This is only a Notice, so it would be interesting if the module does work or not?

Btw: It helps when you post your error message in English.

WilliamV’s picture

I'm using Fieldgroup 7.x-1.0-rc2 and drupal 7 v 1.396.

I did not yet test the module, will do that later on the evening.

WilliamV’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I just tested and the module works well. As i have created a fi eldgroup and activated the pane the notice just disappeared.

I won't discuss this further as everything now seems to work.

Would it be possible the notice was due to the lack of an activated field group pane?

Grtz and thank you for your quick follow up!

hunziker’s picture

Status: Closed (works as designed) » Postponed (maintainer needs more info)

I'm not sure, but thats possible. I test it with no field group defined for the order entity, but then I got no Notice.

I add some additional checks in hope to prevent others from getting such Notices.

hunziker’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I set the status field wrong -> reset it as closed...

WilliamV’s picture

One more remark (read: compliment): this module is a very good approach within the commerce-system!

anitap0322’s picture

I get this error - so I wanted to know what you did to get rid of it?

Notice: Undefined variable: checkout_panes in commerce_fieldgroup_panes_commerce_checkout_pane_info() (line 20 of /home/anitamp9/public_html/testdrupal/990club/sites/all/modules/commerce_fieldgroup_panes/commerce_fieldgroup_panes.module).

Warning: Invalid argument supplied for foreach() in commerce_checkout_panes() (line 441 of /home/anitamp9/public_html/testdrupal/990club/sites/all/modules/commerce/modules/checkout/commerce_checkout.module)

WilliamV’s picture

See #3.

I just tested and the module works well. As i have created a fieldgroup and activated the pane the notice just disappeared.

m_wiking’s picture

We are using features and drush make to do builds. So every time we do a automatic build we get this message. Then we have to go in and re-save the order content type to get it away. So it's not really true that you only need to give it a field group to get rid of this error.

Dojan

m_wiking’s picture

I think this one should be opened again. It's not proper to get error messages when the module is turned on and it can't be used with features.

hunziker’s picture

The point is that the field group could not be loaded. Now the field group should be reset always when we set the checkout panes.

Any way the notice message will not be shown again, in any case. This is fixed since April 26. I forgot to update the rc release. Could you please give a feedback if the fix (in rc2) solve your problem?

hunziker’s picture

Status: Closed (works as designed) » Needs review
m_wiking’s picture

This is not the problem anymore. Now I get this error insted:

Notice: Undefined property: stdClass::$id in commerce_fieldgroup_panes_commerce_checkout_pane_info() (line 29 of /Users/mattias/NetBeansProjects/thmilk/profiles/commerce_kickstart/modules/contrib/commerce_fieldgroup_panes/commerce_fieldgroup_panes.module).

Then I go in to the order content type and update the field group and it's working again. I have not looked in to any solution yet.

jantoine’s picture

I am not seeing any errors when installing the latest from GIT. I did not have any custom fields associated with the order entity prior to enabling.

Cheers,

Antoine

hunziker’s picture

Status: Needs review » Fixed

See #1253574: Allow Exported Checkout Panes. This patch should fix your problems, because we use the id and not the identifier (machine name).
It is commit.

Dipo’s picture

I have installed both the Commerce Fieldgroup Panes module and the field group module. I don't see anywhere where I can access the UI for these modules. where should I be going to find the modules to use them?? I got an error at first but I thought is was due to not having installed both modules.

jantoine’s picture

@Dipo,

Without knowing what error you received, we can't verify that your problem is related to this issue. Currently this appears to be a support request that is unrelated to the existing issue. In the future, if you are unsure that your problem is directly related to an existing issue, please open a new one.

To view existing and add new fields/groups to the checkout process, you need to view/edit the order entity. You can get there via "Store > Configuration > Order Settings" (admin/commerce/config/order). From here you can click on the "Manage Fields" and "Manage Display" tabs.

If you have further questions, please open a separate support request issue.

Cheers,

Antoine

Status: Fixed » Closed (fixed)

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