Hi,

I've got my main PHP script writing an image file out to vfs:// using the 
PHP GD lib function imagepng(image, filename)

Then I'm using Facebook's PHP SDK to try and post that. FB's SDK uses Curl 
internally to read the file, so I simply supply the vfs:// filename to it. 
I then get back an error saying it can't open the file:

PHP Fatal error: Uncaught exception 'Facebook\FacebookSDKException' with 
message 'couldn't open file "vfs://root/temp/T199952197c"' in 
/base/data/home/apps/s~My-App-ID/1.385481947954511984/fb/src/Facebook/HttpClients/FacebookCurlHttpClient.php:150
 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FHttpClients%2FFacebookCurlHttpClient.php&line=150>
 
Stack trace: #0 /base/data/home/apps/s~ 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FFacebookRequest.php&line=260>
My-App-ID 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FHttpClients%2FFacebookCurlHttpClient.php&line=150>
/1.385481947954511984/fb/src/Facebook/FacebookRequest.php(260) 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FFacebookRequest.php&line=260>
: Facebook\HttpClients\FacebookCurlHttpClient->send('https://graph.f...', 
'POST', Array)
#1 /base/data/home/apps/s~ 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Fpost.php&line=188>
My-App-ID 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FHttpClients%2FFacebookCurlHttpClient.php&line=150>
/1.385481947954511984/post.php(188) 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Fpost.php&line=188>
: Facebook\FacebookRequest->execute()
#2 {main} thrown in /base/data/home/apps/s~ 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FHttpClients%2FFacebookCurlHttpClient.php&line=150>
My-App-ID 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FHttpClients%2FFacebookCurlHttpClient.php&line=150>/1.385481947954511984/fb/src/Facebook/HttpClients/FacebookCurlHttpClient.php
 
on line 150 
<https://console.developers.google.com/project/richerposts/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1436032217899000000&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~richerposts%2F1.385481947954511984%2Ffb%2Fsrc%2FFacebook%2FHttpClients%2FFacebookCurlHttpClient.php&line=150>

My first thought was a permissions issue (i.e. FB script not allowed to 
read file my script created), but checking permissions of my image file in 
vfs:// - they are set to 0666 and I've tried changing them to both 0644 and 
0777 (and confirming they are set) and still get the error...

Any ideas please?

Many thanks!
Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c96c3cac-7f17-4eca-aee3-29de0d5dcb02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to