Make sure that 
A/ The data folder is writable
B/ url_fopen is allowed on the php server.