get_page_permastruct() fatal error
-
I have been all over Google and noone seems to have an answer. I get the following error:
Fatal error: Call to a member function get_page_permastruct() on a non-object in /home/********/public_html/wp-includes/link-template.php on line 274
I have done a clean install and it happens after I make a call to wp_insert_post( $my_post ) where $my_post is as follows:
$my_post = array();
$my_post[‘post_title’] = “test”;
$my_post[‘post_content’] = “content”;
$my_post[‘post_status’] = ‘publish’;
$my_post[‘post_author’] = 1;
$my_post[‘post_type’] = ‘page’;
$my_post[‘post_category’] = array(1);It correctly posts this page and I can access it, but it won’t insert the other 7 pages at all.
- The topic ‘get_page_permastruct() fatal error’ is closed to new replies.