Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
report from @gumdal
I am facing this error, but at a different location. I have just installed Services Views module today, which means that it contains the patch submitted by ygerasimov on November 18, 2012.
This is what I get:
Fatal error: Unsupported operand types in /home/....//sites/all/modules/services/auth/services_oauth/services_oauth.inc on line 25
Thanks for any suggestions / fixes.
Comments
Comment #1
gumdal CreditAttribution: gumdal commentedWith reference to the post: http://drupal.org/node/1672494
Comment #2
kylebrowning CreditAttribution: kylebrowning commentedCan i get an export of the endpoint?
I cannot seem to reproduce this error.
Comment #3
gumdal CreditAttribution: gumdal commentedThis is the export of my service endpoint which is created with Services Views. (EDIT:)When I disable OAuth, the webservice gives required output. But when OAuth is enabled I should ideally get "Request must be signed" response when the URL is hit directly, but I get back the Fatal error. Thanks.
This is the export which works, but of course without Consumer Key authentication:
Comment #4
gumdal CreditAttribution: gumdal commentedExtremely sorry, doing everything from scratch started working for me. Apologies for killing your time.
This is the final export:
I guess I was missing to mention the type of OAuth method.
Comment #5
kylebrowning CreditAttribution: kylebrowning commentedYeah im just trying to find the point where it fails since I cannot seem to recreate.
Glad it is working but gonna try and find the fatal error.
Comment #6
kylebrowning CreditAttribution: kylebrowning commentedComment #7
baselkhateeb CreditAttribution: baselkhateeb commentedHaving the same issue here, and I did recreate everything from the scratch with no luck :(
Comment #8
baselkhateeb CreditAttribution: baselkhateeb commentedthis line is making this issue.. I tried changing the operand to = instead, it worked but not saving the settings any more!!
Comment #9
marcingy CreditAttribution: marcingy commentedComment #10
marcingy CreditAttribution: marcingy commentedPlease provide steps to recreate.
Comment #11
marcingy CreditAttribution: marcingy commentedComment #12
snufkin CreditAttribution: snufkin commentedThis happens to me when I'm trying to expose a Views service over OAuth. I followed http://drupal.org/node/1871498 until the OAuth setup and it all worked fine. Then i set the authentication for the service to OAuth (https://www.evernote.com/shard/s136/sh/cdbf4918-5b81-44a3-b794-d8b24c971...). The context selector can't be used and accessing the endpoint (which worked without OAuth) gives me this trace (for the resource (admin/structure/services/list/profiles/resources) the default authentication is set, which is OAuth):
Fatal error: Unsupported operand types in [...]/sites/all/modules/services/auth/services_oauth/services_oauth.inc on line 25
Call Stack
# Time Memory Function Location
1 0.0000 328584 {main}( ) ../index.php:0
2 0.0355 3013552 menu_execute_active_handler( ) ../index.php:21
3 0.0358 3014260 call_user_func_array ( ) ../menu.inc:517
4 0.0358 3014480 services_endpoint_callback( ) ../menu.inc:517
5 0.0465 3690168 call_user_func ( ) ../services.module:204
6 0.0465 3690168 rest_server_server( ) ../services.module:204
7 0.0471 3711012 RESTServer->handle( ) ../rest_server.module:34
8 0.0556 3805720 services_controller_execute( ) ../RESTServer.inc:152
9 0.0577 3807316 services_auth_invoke( ) ../services.runtime.inc:119
10 0.0579 3809332 call_user_func_array ( ) ../services.runtime.inc:249
11 0.0579 3809600 _services_oauth_authenticate_call( ) ../services.runtime.inc:249
I dont have much time to debug at the moment, I hope this gives you a good starting point.
The issue is both with stable and dev.
Comment #13
trimbletodd CreditAttribution: trimbletodd commentedI ran into this issue as well, and it looks like it happens when the $controller['endpoint'] variable doesn't have the 'oauth2_server' key defined.
So I monkey patched it. Not saying it's pretty. But it got me past the problem.
Comment #14
kylebrowning CreditAttribution: kylebrowning commentedI believe i fixed an issue related to this in dev.
Can you verify the dev branch continues with this error?
Comment #15
kylebrowning CreditAttribution: kylebrowning commented