Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14472

HHVM: Wrong URLs created by session.php/extract_current_page()

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.7-pl1
    • Fix Version/s: None
    • Component/s: Sessions
    • Labels:
      None
    • Environment:
      Nginx 1.9.10~jessie, HHVM 3.11.1, MySQL 10.0.23-MariaDB-0+deb8u1, Chrome 48.0

      Description

      _Note: While I filed this under 3.1.7-pl1, the same issue existed in 3.0.
      _
      So, running phpBB on HHVM results in wrong URL paths. For example, when trying to change profile info, instead of being redirected to example.com/ucp.php, I get redirected to example.com/home/<user>/www/ucp.php.

      I have forced server settings in the ACP, but no luck.

      Temporarily I have patched this with the following code:

      Find and comment in session.php:

      $page_dir = str_repeat('../', sizeof($root_dirs)) . implode('/', $page_dirs);"
      

      Add:

      $page_dir = str_replace(phpbb_realpath($root_path), '', phpbb_realpath('./'));
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Marc Marc
                Reporter:
                stathisch stathisch [X] (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: