Support » Plugin: W3 Total Cache » Undefined offset: 1 (Cache_Memcached.php:74)

  • Resolved c0ns0l3

    (@c0ns0l3)


    Hello, at my hosting server for memcached is use linux socket.. server address like “/home/[user_account]/.system/memcache/socket”

    Query monitor say that at line 74 error of file Cache_Memcached.php

    foreach ( (array)$config['servers'] as $server ) {
    			if ( substr( $server, 0, 5 ) == 'unix:' )
    				$this->_memcache->addServer( trim( $server ), 0 );
    			else {
    				list( $ip, $port ) = explode( ':', $server );
    				$this->_memcache->addServer( trim( $ip ), (integer) trim( $port ) );
    			}
    		}

    74 line is eplode server address string which want to have a port number…

    can u add expression strpos ‘:’?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello,
    You can use:
    unix:/home/[user_account]/.system/memcache/socket
    for that case.
    Your pasted block clarifies that.

    Marko thx alot, but after i saw code.. i try it.. but test is failed
    just simple expression on strpos ‘:’.. if false then all string is server address…

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello,
    Thanks for the information and for bringing this to our attention.
    We added this as an issue and we’ll fix this in future releases.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined offset: 1 (Cache_Memcached.php:74)’ is closed to new replies.