[wp-trac] [WordPress Trac] #24492: Memcached plugin version 2.0.2

WordPress Trac noreply at wordpress.org
Tue Jun 4 05:14:09 UTC 2013


#24492: Memcached plugin version 2.0.2
--------------------------+-----------------------------
 Reporter:  toddlahman    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache         |    Version:  3.5.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 Memcached Memcached plugin version 2.0.2 gives the following error
 message:

 Notice: Undefined offset: 1 in /var/www/html/wp-content/object-cache.php
 on line 374

 This results from only having the server listed as the default without a
 port:

 array(1) { [0]=> string(9) "127.0.0.1" }

 There is no port listed to populate the port variable in line 374
 resulting in the Undefined offset notice. Here is line 374:

 list ( $node, $port ) = explode(':', $server);

 The solution is modify line 365 from:

 $buckets = array('127.0.0.1');

 to:

 $buckets = array('127.0.0.1:11211');

 The WordPress forum for this plugin rarely gets a response, so I thought
 I'd also post it here since the authors are more likely to see it. Is this
 plugin on github?

 http://wordpress.org/support/topic/fix-for-notice-undefined-
 offset-1?replies=1#post-4268076

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24492>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list