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

extension.php script cannot disable/remove broken extensions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Invalid
    • 3.1.0-dev
    • 3.1.3-RC1
    • None
    • None

    Description

      I created an extension called index-page-title. I suspected
      this might cause problems as I used dashes instead of underscores
      in the extension name, but I did it anyway.

      Then I proceeded to install the extension:

      athena% ~/opt/php54/bin/php extensions.php list
      Enabled:

      • phpbb3-ext-overall-header-addition
      • phpbb3-ext-prosilver-overall-header-addition
      • phpbb3-ext-subsilver-overall-header-addition

      Disabled:

      Available:

      • index-page-title
        athena% ~/opt/php54/bin/php extensions.php enable index-page-title
        athena% ~/opt/php54/bin/php extensions.php list

      Fatal error: Class 'phpbb_ext_index-page-title_event_index_page_title_subscriber' not found in /var/www/qi/boards/x3/includes/event/extension_subscriber_loader.php on line 39
      athena% ~/opt/php54/bin/php extensions.php disable index-page-title

      Fatal error: Class 'phpbb_ext_index-page-title_event_index_page_title_subscriber' not found in /var/www/qi/boards/x3/includes/event/extension_subscriber_loader.php on line 39
      athena%

      Now I am stuck as I cannot remove the problematic extension.

      After rm -rf'ing the extension directory I was able to disable it.

      The issue here is all code from extensions is loaded when I am trying
      to manage extensions. Therefore if there is a fatal error in any of that code
      I lose the ability to manage extensions.

      common.php should be split to have a extension-load-less version for
      extension management perhaps?

      Attachments

        Activity

          People

            nickvergessen Joas Schilling
            Oleg Oleg [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: