Hi, I took a fresh Drupal 6.12 installation and the last Services module 6.x-1.x-dev, released on May 19th 2009 (I used the development branch as the module page recommends), but I'm having some serious issues.
When trying to access the settings page (admin/build/services/settings) all I get is a blank page.
In the webserver's logs I get entries like:

[error] [client ::1] PHP Fatal error: Unsupported operand types in /Users/as/Sites/drupal-test/includes/common.inc on line 2831

And going back to some other page, I get a long list of errors:

# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 886.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 887.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 890.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 902.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 905.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 910.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 859.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 878.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 881.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 886.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 887.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 890.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 902.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 905.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 910.
# warning: Cannot use a scalar value as an array in /Users/as/Sites/drupal-test/includes/form.inc on line 917.
# warning: uasort() [function.uasort]: The argument should be an array in /Users/as/Sites/drupal-test/includes/common.inc on line 2829

I really don't know what's going on. I tried a few times to install everything again from the beginning (drupal and module) but it always ends up like this.
This doesn't happen with the "stable" release of Services 6.x-0.13 (but I guess that one is quite obsolete).

Hope there's a solution and I'm not the only one stuck with this problem.
I'm new to drupal, I read lots of docs but I don't know where to start to figure out what's wrong.
I marked this issue as "support request" as I can't say if the problem's with me or the module :)
Thanks for your help

CommentFileSizeAuthor
#2 services-settings-form.patch1.04 KBAnonymous (not verified)

Comments

Anonymous’s picture

This is a problem with the latest development commits for Services module. The error appears here:

    $settings = services_auth_invoke('security_settings');
    if ($settings) {
      $form['security']['options']['settings'] = $settings;
    }

on line 251 of services_admin_browse.inc

$settings is coming in as "1" or TRUE. But it's supposed to be a form array.

Anonymous’s picture

StatusFileSize
new1.04 KB

Here's a patch. I don't fully understand the code, but this allowed me to make progress, select the right authentication module and get my services working again.

Anonymous’s picture

Category: support » bug
Status: Active » Needs review

I think this is a bug, but it wasn't noticed by the developers because they probably set up their authentication module variable while they were developing this new feature. When the variable isn't already set, it's a problem.

marcingy’s picture

Status: Needs review » Fixed

Thanks for the patch - committed.

marcingy’s picture

Status: Fixed » Closed (fixed)