Ticket #5284 (closed defect (bug): wontfix)
Editing & Posting Comments Causes Errors
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When attempting to edit a comment, I get the following error:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'sanitize_url' was given in /home/evitaen/public_html/blog/wp-includes/plugin.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/evitaen/public_html/blog/wp-includes/plugin.php:59) in /home/evitaen/public_html/blog/wp-includes/pluggable.php on line 391
Even in spite of the error, changes appear to go through, at least in the comment field, but changes to the URL do not appear to work.
Furthermore, posting a comment to the blog causes similar errors as follows.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'sanitize_url' was given in /home/evitaen/public_html/blog/wp-includes/plugin.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/evitaen/public_html/blog/wp-includes/plugin.php:59) in /home/evitaen/public_html/blog/wp-comments-post.php on line 67
Warning: Cannot modify header information - headers already sent by (output started at /home/evitaen/public_html/blog/wp-includes/plugin.php:59) in /home/evitaen/public_html/blog/wp-comments-post.php on line 68
Warning: Cannot modify header information - headers already sent by (output started at /home/evitaen/public_html/blog/wp-includes/plugin.php:59) in /home/evitaen/public_html/blog/wp-comments-post.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /home/evitaen/public_html/blog/wp-includes/plugin.php:59) in /home/evitaen/public_html/blog/wp-includes/pluggable.php on line 391
In spite of the security risk, I am going to downgrade to the previous version until this issue is fixed. Thanks.
Change History
comment:1
in reply to:
↑ description
foolswisdom — 4 years ago
- Status changed from new to closed
- Resolution set to wontfix
I think its likely to be an incomplete upload of the wp-includes/formatting.php file(Or another one of them).
'sanitize_url' is indeed a valid callback, Assuming the function is defined at the time, which it would be in normal use, unless an error has occured with the uploading of files.
Replying to DD32:
I think its likely to be an incomplete upload of the wp-includes/formatting.php file(Or another one of them).
'sanitize_url' is indeed a valid callback, Assuming the function is defined at the time, which it would be in normal use, unless an error has occured with the uploading of files.
Thank you so much! I re-uploaded the same exact folder I had on the desktop, and the error was in fact the result of an incomplete upload. I simply forgot to click Overwrite All instead of Overwrite If New. Thanks for the quick feedback, guys! This is why I love WordPress. :)

What version of WordPress are you running?
Replying to asiah:
That looks like it is in apply_filters. Did you experience this problem with all your plugins disabled / default theme?
I don't see any other similar reports, so for now marking this as invalid pending additional info.