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

Plugin crashes API 4 in CiviCRM 5.33.2 / Wordpress 5.6 #6

Open
skyslasher opened this issue Jan 27, 2021 · 1 comment
Open

Plugin crashes API 4 in CiviCRM 5.33.2 / Wordpress 5.6 #6

skyslasher opened this issue Jan 27, 2021 · 1 comment

Comments

@skyslasher
Copy link

When activated, all API4 calls including API Explorer v4 crash with the exception getFieldValue failed.

To reproduce:

  • Install plugin
  • Activate plugin
  • Start API Explorer v4

This leads to the error message

Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
getFieldValue failed

Backtrace:
$Fatal Error Details = array:3 [ "message" => "getFieldValue failed" "code" => null "exception" => CRM_Core_Exception {#17704 -errorData: array:1 [ "error_code" => 0 ] #cause: null -_trace: null #message: "getFieldValue failed" #code: 0 #file: "/var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php" #line: 1341 trace: { /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php:1341 { › // and hence we get the first value in the db › throw new CRM_Core_Exception('getFieldValue failed'); › } } /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Utils/CoreUtil.php:68 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Service/Schema/Joinable/Joinable.php:90 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php:95 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php:71 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php:53 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/uploads/civicrm/templates_c/CachedCiviContainer.7e47bdd9c9cf62262355ceac71859fc6.php:1115 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/Container.php:306 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Action/Entity/GetLinks.php:32 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/BasicGetAction.php:59 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Provider/ActionObjectProvider.php:68 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:150 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractAction.php:238 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/api/api.php:84 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Api4/Page/Api4Explorer.php:27 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:312 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:68 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-content/plugins/civicrm/civicrm.php:1172 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-includes/class-wp-hook.php:287 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-includes/class-wp-hook.php:311 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-includes/plugin.php:484 { …} /var/www/vhosts/upgrade-jetzt.de/httpdocs/wp-admin/admin.php:259 { …} } } ]

@kurund
Copy link

kurund commented Feb 3, 2021

@skyslasher I am checking on CiviCRM 5.33.2 and don't see any errors. Can you provide more details that might help to debug this.

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