Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14472

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 3.1.7-pl1
    • Sessions
    • None
    • Nginx 1.9.10~jessie, HHVM 3.11.1, MySQL 10.0.23-MariaDB-0+deb8u1, Chrome 48.0

      _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('./'));
      

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

              Created:
              Updated:
              Resolved: