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

Migrator module tool does not add the needed module language file

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 3.1.2-RC1
    • 3.1.3-RC1
    • ACP
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: