When I try to use get_page() function I get the error message:
Only variables can be passed by reference
But what doesn't make sense is that I can use a work around that blows my mind:
First test
$test1 = get_page(49);
Returns error message
Only variables can be passed by reference
Second test
$page = get_page_by_title( 'About' );
$test2 = get_page($page->ID);
echo 'ID:'.$page->ID.' Post title: '.$page->post_title;
Returns no error
ID:49 Post title: About
Can anyone shed some light on what I'm doing wrong?