• Resolved John Beckmann

    (@johnbeckmann)


    Hello Guys,

    Thank you very much for this great plugin! It really looks like you’re already Flickr.
    I have it running on my wp-multisite. On the english site its working absolute perfectly, on the german site I get a lot of php errors. The errors repeat themself. Bellow you find the three repeating php-error-lines.
    You can see it yourself:
    English (no errors): http://john-beckmann.de/flickr-justgallery/
    German (with errors): http://john-beckmann.de/de/flickr-justgallery/
    I use wordpress version 4.3.1. In case you’d like to know more (e.g. chmod, php version, API) I’d really to provide it.

    Warning: fopen(/514f049767278e966d2afa1d41921f5c.cache): failed to open stream: Read-only file system in /homepages/0/d405176519/htdocs/clickandbuilds/Timelapsesandmore/wp-content/plugins/flickr-justified-gallery/phpFlickr/phpFlickr.php on line 195
    
    Warning: fwrite() expects parameter 1 to be resource, boolean given in /homepages/0/d405176519/htdocs/clickandbuilds/Timelapsesandmore/wp-content/plugins/flickr-justified-gallery/phpFlickr/phpFlickr.php on line 196
    
    Warning: fclose() expects parameter 1 to be resource, boolean given in /homepages/0/d405176519/htdocs/clickandbuilds/Timelapsesandmore/wp-content/plugins/flickr-justified-gallery/phpFlickr/phpFlickr.php on line 197

    Is there any possibility how to fix this strange thing? It works on the one site but not on the other site – although they use the same files

    https://ww.wp.xz.cn/plugins/flickr-justified-gallery/

Viewing 1 replies (of 1 total)
  • Thread Starter John Beckmann

    (@johnbeckmann)

    After a lot of tries I found the point of origin of the problem.

    First of all: the phpFlickr.php looks for storage of the cache. Storing the cache on the database doesn’t work for me for some reason. It tries to store it on the webserver.

    Multisite main page [the english one]
    phpFlickr.php knows where the storage on the webserver is:
    “/homepages/0/d405176519/htdocs/clickandbuilds/Timelapsesandmore/wp-content/uploads/phpFlickrCache”

    Multisite second page [the german one]
    phpFlickr.php does NOT know where the storage is, it presumes it is here:
    “/” [which is then homepages]

    Since I get from my webhoster access after /clickandbuilds/ I cannot make a chmod 777 folder in homepages. And the plugin needs a chmod of 777 to write the cache.
    (The stuff until htdocs is from my webhoster, probably their internal routing between their hundreds of servers. )

    How to solve it:
    Change the directory in phpFlickr.php!

    elseif ($this->cache == 'fs') {
    				$file = $this->cache_dir . '/homepages/0/d405176519/htdocs/clickandbuilds/Timelapsesandmore/wp-content/uploads/phpFlickrCache/chmod777/flickr-cache' . $reqhash . '.cache';
    				if (file_exists($file)) {

    I changed it in the line 120, 156 & 194.

    I don’t know if it works for you, but maybe it gives the right hint to solve the problem.

Viewing 1 replies (of 1 total)

The topic ‘Multisite: 1 site PHP errors, 1 site perfect’ is closed to new replies.