• 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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter kwikrj

    (@kwikrj)

    Thanks for the help @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/

    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 6 years, 4 months ago by xachman.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Errors displayed for phpFlickr.php’ is closed to new replies.