Title: Plugin error Call to a member function get_page_permastruct()
Last modified: August 19, 2016

---

# Plugin error Call to a member function get_page_permastruct()

 *  [iquchint](https://wordpress.org/support/users/iquchint/)
 * (@iquchint)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-call-to-a-member-function-get_page_permastruct/)
 * I am developing plug-in for extracting all links of posts/category/tag/archive
   with admin demand its working fine with guid href of post.
    but now i want it
   with activated permalinks so i have addeded one simple line
 * `$post_array[0][$i]=get_permalink($post['ID']);`
    so it gives fatal error
 * **Call to a member function get_page_permastruct() on a non-object in D:\www\
   wp_new\wp-includes\link-template.php on line 275**
 * want all that links with permalinks need solutions.
    Thanks.

The topic ‘Plugin error Call to a member function get_page_permastruct()’ is closed
to new replies.

## Tags

 * [get_page_permastruct](https://wordpress.org/support/topic-tag/get_page_permastruct/)

 * 0 replies
 * 1 participant
 * Last reply from: [iquchint](https://wordpress.org/support/users/iquchint/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-call-to-a-member-function-get_page_permastruct/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
