Title: Wpforo bug functions php file
Last modified: June 3, 2017

---

# Wpforo bug functions php file

 *  Resolved [contentologue](https://wordpress.org/support/users/contentologue/)
 * (@contentologue)
 * [9 years ago](https://wordpress.org/support/topic/wpforo-bug-functions-php-file/)
 * Hi,
 * I was trying to fix a problem I have with redirection of pagination in Wpforo.
   And a developper has fixed it.
 * But since the last update, functions.php has changed completely, and it doesn’t
   work properly anymore.
 * The developper said : “There is a bug in wpforo – it forms links using ‘SERVER_NAME’
   variable, which is not correct. I have change it to HTTP_HOST. If you use this
   plugin in any other site of yours I will suggest you how to fix this bug. Or 
   simply replace the wpforo/wpf-includes/functions.php file in plugins folder.”
 * Since I replaced the functions php file, the problem was solved. But now it doesn’t
   work anymore. How could I reach you and send you the modified functions.php file
   so you could have a look and tell me how to solve this in the new version ?
 * My pagination is actually redirecting to the membership option page of my membership
   plugin.
 * Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [9 years ago](https://wordpress.org/support/topic/wpforo-bug-functions-php-file/#post-9194032)
 * This is already fixed in upcoming version. you just need to find this line:
 * `return $protocol . "://" . $_SERVER['SERVER_NAME'] . ($with_port ? $port : '').
   $_SERVER['REQUEST_URI'];`
 * and change to this:
    `return $protocol . "://" . $_SERVER['HTTP_HOST'] . ($with_port?
   $port : '') . $_SERVER['REQUEST_URI'];`
 *  Thread Starter [contentologue](https://wordpress.org/support/users/contentologue/)
 * (@contentologue)
 * [9 years ago](https://wordpress.org/support/topic/wpforo-bug-functions-php-file/#post-9194456)
 * It works, thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wpforo bug functions php file’ is closed to new replies.

 * ![](https://ps.w.org/wpforo/assets/icon-256x256.png?rev=2121644)
 * [wpForo Forum](https://wordpress.org/plugins/wpforo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforo/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforo/reviews/)

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [pagination](https://wordpress.org/support/topic-tag/pagination/)
 * [redirecting](https://wordpress.org/support/topic-tag/redirecting/)

 * 2 replies
 * 2 participants
 * Last reply from: [contentologue](https://wordpress.org/support/users/contentologue/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/wpforo-bug-functions-php-file/#post-9194456)
 * Status: resolved