DrupalStream doesn't implement streamWrapper::stream_stat:
http://php.net/manual/en/streamwrapper.stream-stat.php

Results in this error message:

file_get_contents() [function.file-get-contents]: DrupalStream::stream_stat is not implemented! in /srv/www/115/web/sites/all/modules/jsonrpc_server/jsonrpc_server.module on line 35.

<?php
          // We'll use the inputstream module if it's installed because
          // otherwise it's only possible to read the input stream once.
          // And other parts of services or drupal might want to access it.
          if (module_exists('inputstream')) {
            $body = file_get_contents('drupal://input');
          }
?>

I'll disable the inputstream for the time being.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

solipsist’s picture

Clarification: Thrown by JSON-RPC module... the code above is taken from json_rpc.module.

kylebrowning’s picture

Im also getting this thrown in PLIST REST Server module.

james.williams’s picture

Status: Active » Needs review
FileSize
970 bytes

I hit this problem when using the JSON-RPC module (with services) too. The attached patch adds an implementation of stream_stat() that I *think* does what it should. Someone that understands stream wrappers more than I do might want to confirm this!

voxpelli’s picture

Subscribe - should fix this.

geerlingguy’s picture

Version: 6.x-1.0 » 7.x-1.0-rc1
FileSize
676 bytes

Getting same error on Drupal 7 branch (the current rc posted to the project page). Patch above applies with an offset, so I'm reposting the patch for the 7.x branch. I'm having unrelated problems, but at least this fixes the stream_stat problem...

Telem’s picture

also an issue in version 6.x with PHP 5.3

sheldonkreger’s picture

Issue summary: View changes

Has this module been abandoned?

alinikkhah’s picture

Patch #5 is good, but improperly formatted. Re-rolling this against 7.x-1.x dev.

alinikkhah’s picture

Patch #5 is good, but improperly formatted. Re-rolling this against 7.x-1.x dev.

alinikkhah’s picture