Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 9 years ago

#9565 closed defect (bug) (invalid)

Bizarre PHP Warnings - WP 2.8

Reported by: link2caro's profile link2caro Owned by:
Milestone: Priority: high
Severity: normal Version: 2.8
Component: Warnings/Notices Keywords: reporter-feedback
Focuses: Cc:

Description

I have a new installation of WP r10986, checked out from SVN, you can find the site here:

http://beta.wordpressvn.net/

I got some PHP warnings here:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/wpvn/public_html/beta/wp-includes/query.php on line 2305

Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/wpvn/public_html/beta/wp-includes/query.php on line 2321

Warning: implode() [function.implode]: Invalid arguments passed in /home/wpvn/public_html/beta/wp-includes/query.php on line 2321

Change History (7)

#2 @Denis-de-Bernardy
15 years ago

sounds like the kind of thing r10955 was meant for. I take it the option contains a string?

in wp-includes/query.php, please change the following, at line 2305:

$sticky_posts = get_option('sticky_posts');

with:

$sticky_posts = get_option('sticky_posts');
var_dump($sticky_posts);

#3 @Denis-de-Bernardy
15 years ago

  • Keywords reporter-feedback added

#4 @Denis-de-Bernardy
15 years ago

Tracing this back into the source, wondering how a string got in there in the first place.

r8546 seems to add an array out of the box. any odds you were using a plugin in the past that might have kept a string in there?

#5 @ryan
15 years ago

  • Component changed from General to Warnings/Notices
  • Owner anonymous deleted

#6 @Denis-de-Bernardy
15 years ago

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

please re-open with feedback

#7 @DrewAPicture
9 years ago

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