• Resolved contentologue

    (@contentologue)


    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

    (@gvectors-team)

    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

    (@contentologue)

    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.