Uploaded image for project: 'Support Team Tools'
  1. Support Team Tools
  2. STT-302

PHPBB_VERSION_NUMBER used before it's set

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Resolution: Fixed
    • Component/s: Support Toolkit
    • Labels:
      None

      Description

      PHPBB_VERSION_NUMBER is set in stk/index.php on line 48, but we use it when we set the language on line 32. The check for 3.0.2 in stk/includes/function.php on line 302 now fails since it's using "PHPBB_VERSION_NUMBER" as the value instead of an actual version number. This results in an incorrect language path being generated.

      Language file ./language/en/en/common.php couldn't be opened.
       
      BACKTRACE
       
      FILE: (not given by php)
      LINE: (not given by php)
      CALL: stk_msg_handler()
       
      FILE: [ROOT]/includes/session.php
      LINE: 2098
      CALL: trigger_error()
       
      FILE: [ROOT]/includes/session.php
      LINE: 2057
      CALL: user->set_lang()
       
      FILE: [ROOT]/stk/includes/functions.php
      LINE: 344
      CALL: user->add_lang()
       
      FILE: [ROOT]/stk/index.php
      LINE: 32
      CALL: stk_add_lang()

        Attachments

          Activity

            People

            • Assignee:
              Erik Frèrejean Erik Frèrejean
              Reporter:
              Noxwizard Patrick Webster
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: