Closed (fixed)
Project:
Commerce Fieldgroup Panes
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2011 at 10:59 UTC
Updated:
7 Sep 2011 at 18:01 UTC
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
Comment #1
hunziker commentedI need some more information, because I cannot reproduce the problem:
Btw: It helps when you post your error message in English.
Comment #2
WilliamV commentedI'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.
Comment #3
WilliamV commentedI 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!
Comment #4
hunziker commentedI'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.
Comment #5
hunziker commentedI set the status field wrong -> reset it as closed...
Comment #6
WilliamV commentedOne more remark (read: compliment): this module is a very good approach within the commerce-system!
Comment #7
anitap0322 commentedI 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)
Comment #8
WilliamV commentedSee #3.
Comment #9
m_wiking commentedWe 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
Comment #10
m_wiking commentedI 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.
Comment #11
hunziker commentedThe 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?
Comment #12
hunziker commentedComment #13
m_wiking commentedThis 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.
Comment #14
jantoine commentedI 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
Comment #15
hunziker commentedSee #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.
Comment #16
Dipo commentedI 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.
Comment #17
jantoine commented@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