[wp-testers] is this an error in codex, beta, or my error?

Danny G Smith dgs at riskiii.com
Sun May 23 02:26:25 UTC 2010


It is the latest via svn from trunk.


Danny G Smith
dgs at riskiii.com




On May 22, 2010, at 9:24 PM, Dion Hulse (dd32) wrote:

> Are you running 2.9 or 3.0?
> 
> On Sun, 23 May 2010 12:21:53 +1000, Danny G Smith <dgs at riskiii.com> wrote:
> 
>> This is not verbatim, from the codex, page http://codex.wordpress.org/Template_Tags/wp_list_pages but very close to what I added to the functions.php file:
>> 
>> 
>> $parent = 19;
>> $myArgs=array(
>>  'child_of' => $parent
>> );
>> $pages = get_pages($myArgs);
>> if ($pages) {
>>  $pageids = array();
>>  foreach ($pages as $page) {
>>    $pageids[] = $page->ID;
>>  }
>> }
>> 
>> echo "<pre>";
>> print_r ($pageids);
>> echo "</pre>";
>> 
>> It prints out the array ok, but I get the following error.
>> 
>> Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/mockup/htdocs/wp-includes/classes.php on line 277
>> 
>> 
>> 
>> Danny G Smith
>> dgs at riskiii.com
>> 
>> 
>> 
>> 
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>> 
> 
> 
> -- 
> Dion Hulse / dd32
> Contact:
> e: contact at dd32.id.au
> Web: http://dd32.id.au/
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers



More information about the wp-testers mailing list