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

"Call to a member function xyz() on a non-object" when ommiting ext_name in acp_extensions.php

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.1.0-a1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Fatal error: Call to a member function validate_enable() on a non-object in ...\includes\acp\acp_extensions.php on line 86

      One of the translators got this error, I then had a look at the source code and found that the $md_manager is only created, when an ext_name is given. However the object is used later without any previous checking.

      Basically the actions: details, enable and enable_pre should check for existance of the object. So:

      if (!$md_manager->validate_enable())

      should be:

      if (!isset($md_manager) || !$md_manager->validate_enable())

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nicofuma nicofuma
                Reporter:
                nickvergessen Joas Schilling [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: