Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API error: 'payment_type' is not a valid option for field option_group_id #38

Closed
deputt opened this issue Oct 13, 2017 · 6 comments
Closed

Comments

@deputt
Copy link

deputt commented Oct 13, 2017

I received the following error upon installing the extension:

  • API error: 'payment_type' is not a valid option for field option_group_id
    As such, the extension was downloaded and enabled but no options available.
    I'm using Joomla 3.8.1 with CiviCRM 4.7.25.
@eileenmcnaughton
Copy link
Owner

That should be created on install - try running the system.flush api from the api explorer

@deputt
Copy link
Author

deputt commented Oct 16, 2017 via email

@eileenmcnaughton
Copy link
Owner

It seems to be trying to create them in the wrong order for some reason?

Check civicrm_option_group - you want to have a row like
'title' => 'Payment Type',
'name' => 'payment_type',
'description' => 'Payment Processor Payment type (configured on processor)',
'is_reserved' => TRUE,
'is_active' => TRUE,

And a row in civicrm_managed pointing to it like

module, name, entity_type, entity_id, cleanup
'nz.co.fuzion.omnipaymultiprocessor', 'payment_type', 'option_group', #option group id from above, NULL);

@deputt
Copy link
Author

deputt commented Oct 16, 2017 via email

@eileenmcnaughton
Copy link
Owner

I can't see the screenshots - here are the entitie's it's trying to create

https://github.com/eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor/blob/master/Metadata/optiongroup.mgd.php

You could just muscle through with phpmyadmin if you want. Once if finds a row in civicrm_managed for each entity it will stop trying. (I have always intended this setting to go into core eventually)

@deputt
Copy link
Author

deputt commented Oct 16, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants