Title: next_posts_link() error in search.php
Last modified: August 19, 2016

---

# next_posts_link() error in search.php

 *  [capzman](https://wordpress.org/support/users/capzman/)
 * (@capzman)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/next_posts_link-error-in-searchphp/)
 * Hi guys,
    I’m having problem with next_posts_link() and previous_posts_link()
   function in search result page (search.php), which will cause Fatal error: Call
   to undefined function get_header() in blabla/page.php on line 1. this is only
   happened if i use custom permalink structure instead of default one. anyone have
   similar problem?thanks in advance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [capzman](https://wordpress.org/support/users/capzman/)
 * (@capzman)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/next_posts_link-error-in-searchphp/#post-1043284)
 * anyone?

Viewing 1 replies (of 1 total)

The topic ‘next_posts_link() error in search.php’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [next_posts_link](https://wordpress.org/support/topic-tag/next_posts_link/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [capzman](https://wordpress.org/support/users/capzman/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/next_posts_link-error-in-searchphp/#post-1043284)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
