Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, jluster
I really like your flickr module but when I tested it. I got the following error message:
warning: fopen("drupal/files/temp/http%3A%2F%2Fwww.flickr.com%2Fservices%2Frest%2F%3Fmethod%3Dflickr.photosets.getList%26api_key%3D57db23d93dfcee677939da5504e8994f%26user_id%3D11866541%40N00.cached", "w+") - No such file or directory in /usr/local/psa/home/vhosts/kzeng.info/httpdocs/drupal/modules/flickr.module on line 168.
warning: fwrite(): supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/kzeng.info/httpdocs/drupal/modules/flickr.module on line 171.
warning: fclose(): supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/kzeng.info/httpdocs/drupal/modules/flickr.module on line 173.
Fatal error: Call to undefined function: file_get_contents() in /usr/local/psa/home/vhosts/kzeng.info/httpdocs/drupal/modules/flickr.module on line 176
could you help me to fix it? Thanks a lot !
--------------------------
http://www.kzeng.info
Comments
Comment #1
jluster CreditAttribution: jluster commentedMake sure the cache directory you enter in settings is absolute, exists, and is read-writable by the server. This seems to be the most common issue. Try setting it to /tmp for a spell, and see what happens.
Comment #2
jluster CreditAttribution: jluster commentedAssigning to me.
Comment #3
kzeng CreditAttribution: kzeng commentedHi, Jluster
Thank you very much! After using absolute path for the cache location, I get rid of those warning message. But there is still a fatal error as following:
Could you please give me some suggestion about how to fix it? Thanks again for your kind help!
Comment #4
jluster CreditAttribution: jluster commentedfile_get_contents() is (PHP 4 >= 4.3.0, PHP 5) according to php.net. What version of PHP are you running?
Comment #5
kzeng CreditAttribution: kzeng commentedYes, you're right. I'm using PHP 4.2.2. So the error must be caused by this. Is there anyway to fix the problem? Thanks!