[wp-trac] [WordPress Trac] #23296: 3.6 - Edit Post, Invalid implode after Core-Update

WordPress Trac noreply at wordpress.org
Sat Jan 26 06:59:27 UTC 2013


#23296: 3.6 - Edit Post, Invalid implode after Core-Update
-------------------------------+------------------------------
 Reporter:  hovida             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Warnings/Notices   |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => reporter-feedback
 * component:  Upgrade/Install => Warnings/Notices


Old description:

> '''Error:''' implode(): Invalid arguments passed
> [[BR]][[BR]]
> The implode function have invalid Arguments.[[BR]]
> [[BR]]
> '''URL:''' /wp-admin/edit.php
> [[BR]]'''HTTP referrer:''' http://adrean-test.eatserver.nl/wp-admin
> /update-core.php
>
> '''FIX (wp-includes/compat.php - Line 32):'''[[BR]]
> return ($chars  ? implode( '', $chars ) : array());
> [[BR]][[BR]]
> '''Stacktrace:'''
> [[BR]]in implode called at /www/htdocs-test/wp-includes/compat.php (32)
> [[BR]]in _mb_substr called at /www/htdocs-test/wp-includes/compat.php
> (18)
> [[BR]]in mb_substr called at /www/htdocs-test/wp-includes/formatting.php
> (3096)
> [[BR]]in wp_html_excerpt called at /www/htdocs-test/wp-includes/admin-
> bar.php (230)
> [[BR]]in wp_admin_bar_site_menu called at ? (?)
> [[BR]]in call_user_func_array called at /www/htdocs-test/wp-
> includes/plugin.php (487)
> [[BR]]in do_action_ref_array called at /www/htdocs-test/wp-includes
> /admin-bar.php (58)
> [[BR]]in wp_admin_bar_render called at ? (?)
> [[BR]]in call_user_func_array called at /www/htdocs-test/wp-
> includes/plugin.php (406)
> [[BR]]in do_action called at /www/htdocs-test/wp-admin/admin-header.php
> (113)
> [[BR]]in require_once called at /www/htdocs-test/wp-admin/edit.php (220)

New description:

 '''Error:''' implode(): Invalid arguments passed

 The implode function have invalid Arguments.

 '''URL:''' /wp-admin/edit.php
 [[BR]]'''HTTP referrer:''' http://adrean-test.eatserver.nl/wp-admin
 /update-core.php

 '''FIX (wp-includes/compat.php - Line 32):'''
 {{{
 return ($chars  ? implode( '', $chars ) : array());
 }}}
 '''Stacktrace:'''
 {{{
 in implode called at /www/htdocs-test/wp-includes/compat.php (32)
 in _mb_substr called at /www/htdocs-test/wp-includes/compat.php (18)
 in mb_substr called at /www/htdocs-test/wp-includes/formatting.php (3096)
 in wp_html_excerpt called at /www/htdocs-test/wp-includes/admin-bar.php
 (230)
 in wp_admin_bar_site_menu called at ? (?)
 in call_user_func_array called at /www/htdocs-test/wp-includes/plugin.php
 (487)
 in do_action_ref_array called at /www/htdocs-test/wp-includes/admin-
 bar.php (58)
 in wp_admin_bar_render called at ? (?)
 in call_user_func_array called at /www/htdocs-test/wp-includes/plugin.php
 (406)
 in do_action called at /www/htdocs-test/wp-admin/admin-header.php (113)
 in require_once called at /www/htdocs-test/wp-admin/edit.php (220)
 }}}

--

Comment:

 I've disabled the mbstring extension on my install to force the compat
 version to run instead, but still could not reproduce the issue.

 `mb_substr()` is called via `wp_html_excerpt()` for the blog name in
 Toolbar. If the blog name is empty, the host name is used instead: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/admin-
 bar.php#L219

 What's the value of `$blogname` in your case?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23296#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list