#24492 closed defect (bug) (invalid)
Memcached plugin version 2.0.2
| Reported by: | toddlahman | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
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
Change History (3)
#1
@
13 years ago
- Component Cache → General
- Keywords has-patch removed
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
- Version 3.5.1
#2
@
13 years ago
I've gone ahead and committed http://plugins.trac.wordpress.org/changeset/722615. We won't trigger a new release for just this, though; it probably won't actually get released until the next major change to core's API.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Maybe, but the trac is not the correct venue for this.