When checking or unchecking the "Enable XMLRPC API" checkbox, (http://www.example.com/admin/settings/prod-check) the following error pops up:

An HTTP error 403 occurred.
/admin/settings/prod-check/xmlrpc

If you cancel the error and try to save the configuration, this warning appears:
"When enabling the XPLRPC API, you must enter an API key!"

No API Key field is visible during this process.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paulrooney’s picture

Reverting to 6.x-1.6 and clearing caches enables you to generate the API key.

artofeclipse’s picture

I managed to get this issue fixed after some debugging, I found that Drupal 6 version have some missing menu items definitions missing some elements and some times the pagecallback set to function doesn't exist on the same scope/file, attached is a patch to fix this issue at least for xmlrpc checkbox.

Thanks.

malc0mn’s picture

Seems to me that I forgot this:

diff --git a/prod_check.module b/prod_check.module
index acb5e0d..814d931 100755
--- a/prod_check.module
+++ b/prod_check.module
@@ -117,11 +117,11 @@ function prod_check_menu() {
   $items['admin/settings/prod-check/xmlrpc'] = array(
     'title' => 'Production check Xmlrpc settings',
     'page callback' => 'prod_check_enable_xmlrpc',
-  );
+  ) + $admin_defaults;
   $items['admin/settings/prod-check/nagios'] = array(
     'title' => 'Production check Nagios settings',
     'page callback' => 'prod_check_enable_nagios',
-  );
+  ) + $admin_defaults;
 
   $items['admin/reports/status/database'] = array(
     'title' => 'Database',

Added to the 6.x-1.x-dev branch.

malc0mn’s picture

Status: Active » Closed (fixed)