Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#934 closed defect (bug) (fixed)

Strange pages bugs

Reported by: noderat Owned by: michel v
Milestone: Priority: normal
Severity: major Version: 1.5
Component: Administration Keywords:
Focuses: Cc:


Noticed a few bugs with pages.

When viewing a page the Pages list in the sidebar either is blank or displays:

Warning: Invalid argument supplied for foreach() in /var/www/chris.coggburn.us/wp-includes/template-functions-post.php on line 368

Example is at http://chris.coggburn.us

Change History (14)

#1 @noderat
13 years ago

  • Patch set to No

#2 @tuxp3
13 years ago

this possibly might be a copy of bug 912


fix there, try it out.


#3 @noderat
13 years ago

I tried that patch, and the issue is unrelated.

#4 @tuxp3
13 years ago

okay thanks, i will look more into it

#5 @noderat
13 years ago

The bug occurs because of SVN Revision 2354 on the file wp-includes/template-functions-post.php.

When up moved to revision 2353 the bug stopped completely.

#6 @ryan
13 years ago

Is it still a problem with rev 2360?


#7 @noderat
13 years ago

The bug is still a problem in the latest SVN code as well as 2360

#8 @anonymousbugger
13 years ago

Just noticed this, the default template does not have this problem but has the same wp_list_pages() tag as my template. The classic template, however, does suffer from this problem. Weird.

#9 @ryan
13 years ago

  • Owner changed from anonymous to michel v
  • Status changed from new to assigned

#10 @paulcook
13 years ago

This is almost certainly the same bug as 927; I've posted a fix there that worked for me. The problem is that the global variable $cache_pages is being used twice, for different purposes -- rename one of the uses, and everything works.

#11 @ryan
13 years ago

We need to use the same cache for both otherwise there is little point in having a page cache. I'm working on a patch to make the two play nicely together.

#13 @anonymousbugger
13 years ago

That fixed the problems. Yay.

#14 @ryan
13 years ago

  • fixed_in_version set to 1.5.1
  • Resolution changed from 10 to 20
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.