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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | services-settings-form.patch | 1.04 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedThis is a problem with the latest development commits for Services module. The error appears here:
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.
Comment #2
Anonymous (not verified) commentedHere'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.
Comment #3
Anonymous (not verified) commentedI 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.
Comment #4
marcingy commentedThanks for the patch - committed.
Comment #5
marcingy commented