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

Migrator module tool does not add the needed module language file

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.1.2-RC1
    • Fix Version/s: 3.1.3-RC1
    • Component/s: ACP
    • Labels:
      None

      Description

      Deleting data of an extension that has incorrect modules set up will cause this error to appear:

      [phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_modules.php on line 975: Undefined index: CANNOT_REMOVE_MODULE

      The migrator module tool will instantiate the acp_modules class and use the delete_module() method. However, it does not always add the language file that is required by the acp_modules class for error messages which causes this PHP notice to appear. This is especially the case when more than one module gets removed. That way, the method get_module_info() gets called first. This method will include the file for the acp_modules class without adding the language files required for error messages.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              Marc Marc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: