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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | inputstream-fstat-fix-714884-8-D7.patch | 762 bytes | alinikkhah |
| #5 | stream_fstat_fix-714884-5.patch | 676 bytes | geerlingguy |
| #3 | inputstream-714884.patch | 970 bytes | james.williams |
Comments
Comment #1
solipsist commentedClarification: Thrown by JSON-RPC module... the code above is taken from json_rpc.module.
Comment #2
kylebrowning commentedIm also getting this thrown in PLIST REST Server module.
Comment #3
james.williamsI 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!
Comment #4
voxpelli commentedSubscribe - should fix this.
Comment #5
geerlingguy commentedGetting 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...
Comment #6
Telem commentedalso an issue in version 6.x with PHP 5.3
Comment #7
sheldonkreger commentedHas this module been abandoned?
Comment #8
alinikkhah commentedPatch #5 is good, but improperly formatted. Re-rolling this against 7.x-1.x dev.
Comment #9
alinikkhah commentedPatch #5 is good, but improperly formatted. Re-rolling this against 7.x-1.x dev.
Comment #10
alinikkhah commented