• Resolved hostingnuggets

    (@hostingnuggets)


    I configured the plugin to use PHP memcache backend with “unix:///var/www/mywebsite.com/tmp/memcached.sock” as host but unfortunately it does not work. Here is the PHP error output:

    2014/06/18 17:09:59 [error] 2003#0: *52986 FastCGI sent in stderr: "PHP message: PHP Warning: MemcachePool::getserverstatus() expects parameter 2 to be long, string given in /var/www/mywebsite.com/htdocs/wp-content/plugins/wp-ffpc/wp-ffpc-backend.php on line 921" while reading upstream, client: XXX.XXX.XXX.XXX, server: mywebsite.com, request: "GET /wp-admin/options-general.php?page=wp-ffpc-settings&saved=true HTTP/1.1", upstream: "fastcgi://unix:/var/lib/nginx/fastcgi/wptest.ch.sock:", host: "mywebsite.com", referrer: "https://mywebsite.com/wp-admin/options-general.php?page=wp-ffpc-settings&saved=true"

    https://www.ads-software.com/plugins/wp-ffpc/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author petermolnar

    (@cadeyrn)

    Hey,

    I’m sorry, I was not able to fix this earlier; I’ll definitely look into it soon.

    Plugin Author petermolnar

    (@cadeyrn)

    ah.

    It seems there is no way to use that function with the Memcache extension just with the Memcached one.

    Please try using PHP-Memcached with unix socket setup.

    Thread Starter hostingnuggets

    (@hostingnuggets)

    Thanks for your feedback! As suggested I have now changed the backend to PHP Memcached but now I see the following error message in my PHP error log:

    2014/09/19 17:38:28 [error] 27647#0: *327 FastCGI sent in stderr: “PHP message: PHP Warning: Memcached::addServer() expects parameter 2 to be long, string given in /var/www/mywebsite.com/htdocs/wp-content/plugins/wp-ffpc/wp-ffpc-backend.php on line 799” while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: mywebsite.com, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/var/lib/nginx/fastcgi/mywebsite.com.sock:”, host: “mywebsite.com”, referrer: “https://mywebsite.com/wp-admin/options-general.php?page=wp-ffpc-settings&saved=true”

    In the “Hosts” parameter under the “Memcache(d)” I have the following parameter:

    unix:///var/www/mywebsite.com/tmp/memcached.sock

    I am using version 1.6.4 of your plugin with WP 3.9.2

    Any ideas what is wrong this time?

    Plugin Author petermolnar

    (@cadeyrn)

    try /var/www/mywebsite.com/tmp/memcached.sock.

    Thread Starter hostingnuggets

    (@hostingnuggets)

    I now tried with /var/www/mywebsite.com/tmp/memcached.sock but I still get exactly the same error message.

    Btw: I am using PHP 5.5.17 and the memcached.so extension for PHP

    Thread Starter hostingnuggets

    (@hostingnuggets)

    And that would be the phpinfo() part regarding memcached:

    memcached

    memcached support enabled
    Version 2.2.0
    libmemcached version 1.0.16
    SASL support yes
    Session support yes
    igbinary support no
    json support yes
    msgpack support no

    Thread Starter hostingnuggets

    (@hostingnuggets)

    On line 799 of your plugin, do you really pass 0 as 2nd argument to memcached’s addServer() method?

    I read in the following PHP memcached documentation (https://php.net/manual/de/memcached.addserver.php) the following:

    port
    The port on which memcache is running. Usually, this is 11211. As of version 2.0.0b1, set this parameter to 0 when using UNIX domain sockets.

    Hope that helps.

    Thread Starter hostingnuggets

    (@hostingnuggets)

    @petermolnar any news regarding this issue?

    Why this is tagged as “resolved”, I am getting the same error and no fix here!

    Thread Starter hostingnuggets

    (@hostingnuggets)

    @bml13 thanks for noticing this

    I confirm this problem is NOT resolved! @petermolnar please remove the resolved tag and fix this issue asap

    The plugin expects to give it also the port number, that is why it is not working with unix sockets which does not use ports, so I set it like this:
    /tmp/memcached.sock:0
    and it seems that it is working for me and the error is disappeared now.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘memcache unix socket not working’ is closed to new replies.