Title: Errors displayed for phpFlickr.php
Last modified: December 14, 2017

---

# Errors displayed for phpFlickr.php

 *  [kwikrj](https://wordpress.org/support/users/kwikrj/)
 * (@kwikrj)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/errors-displayed-for-phpflickr-php/)
 * I’ve just tried to add another gallery to our website, working on on staging 
   site, but above the page content and gallery I’m seeing 3 error messages:
 *     ```
       Warning: fopen(/76c1610af0313daf65f660537013ddaf.cache): failed to open stream: Permission denied in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/phpFlickr.php on line 188
   
       Warning: fwrite() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/phpFlickr.php on line 189
   
       Warning: fclose() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/phpFlickr.php on line 190
       ```
   
 * The Plugin is 3.4.2
 * I’ve opened phpFlickr.php and lines 188, 189 and 190 are as follows:
 *     ```
       $fstream = fopen($file, "w");
   
       $result = fwrite($fstream,$response);
   
       fclose($fstream);
       ```
   
 * Any ideas on how to fix this? I’m not sure how recent an issues this is for us…
 * TIA
 * Rob.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-displayed-for-phpflickr-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [xachman](https://wordpress.org/support/users/xachman/)
 * (@xachman)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/errors-displayed-for-phpflickr-php/#post-9792978)
 * I had to create the directory at wp-content/uploads/phpFlickrCache. Seems that
   realpath is returning false when the folder is not there.
 * [http://php.net/manual/en/function.realpath.php](http://php.net/manual/en/function.realpath.php)
 *  Thread Starter [kwikrj](https://wordpress.org/support/users/kwikrj/)
 * (@kwikrj)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/errors-displayed-for-phpflickr-php/#post-9796805)
 * Thanks for the help [@xachman](https://wordpress.org/support/users/xachman/).
 * I’ve created a phpFlickrCache folder in wp-content/uploads/ but still seem to
   have errors 🙁 This time:
 *     ```
       Warning: fopen(/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/phpFlickrCache/fccd13c02c3fead14c4f2e3229f4c65d.cache): failed to open stream: Permission denied in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/phpFlickr.php on line 188
   
       Warning: fwrite() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/phpFlickr.php on line 189
   
       Warning: fclose() expects parameter 1 to be resource, boolean given in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/phpFlickr.php on line 190
       ```
   
 * Any thougths?
 * Also – I’m now working on a previous year’s post at [http://staged01.keeresources.co.uk/fla-christmas-drinks/](http://staged01.keeresources.co.uk/fla-christmas-drinks/)
 *  [xachman](https://wordpress.org/support/users/xachman/)
 * (@xachman)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/errors-displayed-for-phpflickr-php/#post-9798385)
 * The problem, as described in the warning message, is the permissions of the folder
   you created are not allowing the writing of the cache file. If you used ftp to
   create the folder the webserver that is serving the application, probably apache,
   is not allowed to write to folders created by the ftp user. You can see file 
   permissions in ftp clients like filezilla. The problem should be fixed when you
   correct the permissions on the folder that was created.
    -  This reply was modified 8 years, 5 months ago by [xachman](https://wordpress.org/support/users/xachman/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Errors displayed for phpFlickr.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/flickr-justified-gallery_7b786b.svg)
 * [Flickr Justified Gallery](https://wordpress.org/plugins/flickr-justified-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flickr-justified-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flickr-justified-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/flickr-justified-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flickr-justified-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flickr-justified-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [xachman](https://wordpress.org/support/users/xachman/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/errors-displayed-for-phpflickr-php/#post-9798385)
 * Status: not resolved