[wp-trac] [WordPress Trac] #56709: Encountered a problem that no one has ever met Please help me
WordPress Trac
noreply at wordpress.org
Sat Oct 1 13:05:00 UTC 2022
#56709: Encountered a problem that no one has ever met Please help me
--------------------------+------------------------------
Reporter: qq2094629698 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Changes (by davidbaumwald):
* focuses: ui, accessibility, javascript, coding-standards =>
* component: Bootstrap/Load => Formatting
* version: 6.0.2 =>
* keywords: => dev-feedback
* severity: major => normal
Old description:
> As usual, I used the element to update the page. After clicking the
> update button, I clicked the update button for a few more times, and this
> problem occurred. The contents of my page were all gone, leaving only one
> line of errors, (Warning: count(): Parameter must be an array or an
> object that implements Countable in/www/wwwroot/www.xxxx.com/wp-
> includes/formatting php on line 3415
>
> )And the same is true for publishing new pages. Please help me, thank
> you!
>
> I used to update the page several times every month. It used to be
> normal, but the problem didn't appear until today
New description:
As usual, I used the element to update the page. After clicking the update
button, I clicked the update button for a few more times, and this problem
occurred. The contents of my page were all gone, leaving only one line of
errors, (`Warning: count(): Parameter must be an array or an object that
implements Countable in/www/wwwroot/www.xxxx.com/wp-
includes/formatting.php on line 3415`)And the same is true for publishing
new pages. Please help me, thank you!
I used to update the page several times every month. It used to be normal,
but the problem didn't appear until today
--
Comment:
Hi @qq2094629698 and welcome to WordPress Trac! I did a search for this
specific report, and I cannot find one that matches up exactly. So, thank
you for reporting this! I am updating the ticket details for better
discoverability for other contributors and users who may experience the
same issue.
Tracing this in the 6.0 branch, this seems to point to
https://core.trac.wordpress.org/browser/branches/6.0/src/wp-
includes/formatting.php#L3415 which does implement `count` on a variable
that could indeed be `false`.
Paging @jrf to see if this should be treated any differently than other
type validation fixes(e.g. #54827) or attempt to track down at the source
of where `convert_smilies` is being called.
If this requires a similar solution to #54827, we can also tag this with
`good-first-bug` and `needs-patch`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56709#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list