Title: [Plugin: WP-FFPC] Errors
Last modified: August 20, 2016

---

# [Plugin: WP-FFPC] Errors

 *  Resolved [athalas](https://wordpress.org/support/users/athalas/)
 * (@athalas)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/)
 * Hi,
 * Haven’t been able to get the plugin working.
 * WordPress 3.3.1
    Nginx-1.0.12 (with config for nginx to utilize the data entries)
   Memcached 1.4.13 PHP 5.3.10 with memcache 3.0.6 extension APC 3.1.9
 * with ‘use memcached server with Memcache extension’, wsod is returned the following
   php error:
 * PHP Fatal error: Call to a member function get() on a non-object in ../wp-content/
   plugins/wp-ffpc/wp-ffpc-common.php on line 182
 * Back-end status message “Memcached server status: down” – although the Host and
   port is configured correct)
 * [http://wordpress.org/extend/plugins/wp-ffpc/](http://wordpress.org/extend/plugins/wp-ffpc/)

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

 *  Plugin Author [petermolnar](https://wordpress.org/support/users/cadeyrn/)
 * (@cadeyrn)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582509)
 * Hi athalas,
 * I’ve commited some bigfixes a few minutes ago, please give a try if it solved
   the problem.
 * Thanks,
    Peter
 *  Thread Starter [athalas](https://wordpress.org/support/users/athalas/)
 * (@athalas)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582518)
 * Hi Peter,
 * Thanks for the reply!
 * I’ve network enabled it on one of my test sites, the above issues appears to 
   have been resolved, but when I reload the page to load the cached page my images
   break, do you have an example WordPress MS Nginx config available.
 * Here is mine for your reference:
 * location / {
    try_files $uri $uri/ @memcached; }
 * location @memcached {
    default_type text/html;
 *  set $memcached_key data-$host$request_uri;
    memcached_pass 127.0.0.1:11211; 
   error_page 404 = @rewrites; }
 * location @rewrites {
    rewrite ^(.*)$ /index.php?q=$1 last; }
 * rewrite /wp-admin$ $scheme://$host$uri/ permanent;
 * rewrite /files/$ /index.php last;
 * location ^~ /files/ {
    rewrite ^.*/files/(.+)$ /wp-includes/ms-files.php?file
   =$1 last; }
 * if (!-e $request_filename) {
    rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last; rewrite
   ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last; rewrite ^/[_0-9a-zA-Z-]+(/.*\.
   php)$ $1 last; }
 * location ~ \.php$ {
    try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.
   +)$; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME
   $document_root$fastcgi_script_name; fastcgi_pass php; }
 *  Thread Starter [athalas](https://wordpress.org/support/users/athalas/)
 * (@athalas)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582519)
 * Doesn’t appear to be limited to the images, when I reload a page it simply outputs
   a full screen of random characters, example:
 * xœí}ksÛ8²èg»jþF©9gCIÔ[v¬9Žãd²›×ÚžÍÎ™™rA$$1¡H V”œTÝ¿qÿÞý%·»¾$êe1™ÙÍIv'”ýF
   h4}ÿäõùõÏo.Ø8˜ØìÍO_ýprx0bh>L@ŽY› a¡…5Ç¬KEÙ’4.#Ï ÁÁ·&|JG…{\Ô¶_5Å‡v@
   Ø`TYÃòX'ž³‹[ôýµsnÃ ØüË‹ð½`?º3aÛì®­ÙP2¦œ/þÆ`‚Æ~¹¬°—g/þv¦ê£=1© ½ßÍq©ã—
   à½3ËºÞ„T˜ñ€Åš êÙPcÓ¦æÇlƒFT« &ÕçOÎ®Ï~9<@ † Úñé3°~Â@ OïþNc†ãž»Î Ip4ä¶/P
   ªÕß~ëCG‰ADˆ/µ- ¥±[+ðÚj*§é08°[ùZN¨7Ø“sGXêIc²Ñ¹O=x bõžµ`jß,%Ëð’‡~àN€
   ÷s—1 ˆÊ>pÍ9û´¤œ¨›U\9õqÒ^«êõêåÛ›ÇÏ*ï¦£’©êà· ËÒ/¦®\¾=Ü)
 *  Plugin Author [petermolnar](https://wordpress.org/support/users/cadeyrn/)
 * (@cadeyrn)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582520)
 * Hi athlas,
 * This was the problem why only the [Memcache extension](http://php.net/manual/en/book.memcache.php)
   was able to work with nginx. By default, memcache stores the values compressed
   by zlib functions which make the entries inaccessable for nginx.
    I’ve tried 
   turning of compression by setting server parameters with the [Memcached extension](http://php.net/manual/en/book.memcached.php)
   using SetOption function ([params here](http://www.php.net/manual/en/memcached.constants.php)),
   yet without success.
 * With the memcache ext. [there’s a possibility to set the compression](http://www.php.net/manual/en/memcache.set.php)
   off but it may have been forced back somehow. The output you see is very likely
   the compressed entry in memcached.
 * (_I’d also like to add that the multisite files will not be stored and cached
   by the plugin, they can easily be too large and make suprisinly bad performance
   with that.
    Instead, I’d recommend [the map module of nginx, just what I used as well](http://petermolnar.eu/linux-tech-coding/nginx-config-for-wordpress-network/).
   )
 * Anyway, to solve the problem: either somehow you’re using the Memcached plugin
   or even if the compression is turned off by the plugin, it somehow gets turned
   on again from a different source.
    Please take a look at php config memcache.
   ini file it there’s anything in it that may cause a problem like this.
 *  Plugin Author [petermolnar](https://wordpress.org/support/users/cadeyrn/)
 * (@cadeyrn)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582625)
 * Hi athalas,
 * Could you get the plugin working at last?
 * Peter
 *  [yolabingo](https://wordpress.org/support/users/yolabingo/)
 * (@yolabingo)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582747)
 * I had similar trouble with the Memcache extension, but it was intermittent.
    
   It seems memcache automatically compresses data once it hits a certain size –
   default is 20000 (units unknown – assume bytes?). I added a “SetCompressThreshold”
   value in line 62 of wp-ffpc-common.php and that solved the problem. Not very 
   elegant, but worked in a pinch.
 *     ```
       54       case 'memcache':
        55          /* Memcache class does not exist, Memcache extension is not available */
        56          if (!class_exists('Memcache'))
        57                  return false;
        58          if ( $wp_ffpc_backend == NULL )
        59          {
        60                  $wp_ffpc_backend = new Memcache();
        61                  $wp_ffpc_backend->addServer( $wp_ffpc_config['host'] , $wp_ffpc_config['port'] );
        62                  $wp_ffpc_backend->setCompressThreshold(9999999, 0);
        63          }
       ```
   
 * You may also specify a large threshold in php.ini
    `memcache.compress_threshold
   =999999999`
 *  [yolabingo](https://wordpress.org/support/users/yolabingo/)
 * (@yolabingo)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582748)
 * [http://www.php.net/manual/en/memcache.setcompressthreshold.php](http://www.php.net/manual/en/memcache.setcompressthreshold.php)

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

The topic ‘[Plugin: WP-FFPC] Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ffpc_ffffff.svg)
 * [WP-FFPC](https://wordpress.org/plugins/wp-ffpc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ffpc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ffpc/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ffpc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ffpc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ffpc/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [yolabingo](https://wordpress.org/support/users/yolabingo/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-ffpc-errors/#post-2582748)
 * Status: resolved