WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5284 closed defect (bug) (wontfix)

Editing & Posting Comments Causes Errors

Reported by: asiah Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: 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 (4)

comment:1 in reply to: ↑ description foolswisdom6 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

What version of WordPress are you running?

Replying to asiah:

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

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.

comment:2 follow-up: DD326 years ago

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.

comment:3 in reply to: ↑ 2 asiah6 years ago

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. :)

comment:4 Nazgul6 years ago

  • Milestone 2.5 deleted
Note: See TracTickets for help on using tickets.