Closed sushicodeur closed 11 years ago
Ok, it looks like in "/home/sushi/pymod/openphoto-python/openphoto/openphoto_http.py", line 178, the response is :
{'status': '200', 'transfer-encoding': 'chunked', 'set-cookie': 'PHPSESSID=hf6pgjfk6sbilcfku38nlihsjnfpldgh; path=/', 'expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'server': 'Apache/2.2', 'pragma': 'no-cache', 'cache-control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'date': 'Wed, 01 May 2013 13:31:53 GMT', 'content-type': 'application/json'}
and the content is
{"message":"Invalid mime type","code":500,"result":false}
Getting closer... any idea ?
Ok, looks like it's a problem with writing temporary files
<b>Warning</b>: file_put_contents(/tmp/openphoto-cache/oauthTimestamps) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in <b>/home/sushi/sites/mysite.com/openphoto/src/libraries/external/epi/EpiCache_File.php</b> on line <b>57</b><br />
{"message":"Invalid mime type","code":500,"result":false}
You've got a couple options. I'd suggest using APC instead of the file cache. You can do this by creating a file named src/configs/override.ini
with the following contents in your OpenPhoto installation.
[epi]
cache=EpiCache_Apc
Hello, I'm trying to import my flickr photo using this script and I'm facing the following error :
The JSON comes from the flickr export script.
Do you have any idea ?