Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-54805

Uninstalling "Box" portfolio plugin breaks site

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.4, 3.1, 3.2
    • Fix Version/s: 3.0.5, 3.1.1
    • Component/s: Portfolio
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to the "Plugins overview" screen and find the portfolios section. Or go to

        [YOUR MOODLE URL]/admin/plugins.php#plugin_type_cell_portfolio

      2. Click the "Uninstall" link next to the "Box" portfolio.
      3. Confirm the uninstall by clicking on the Uninstall button.
      4. If your web server has file write restrictions in your Moodle installation and you see the following

        All data associated with the plugin portfolio_boxnet has been deleted from the database. To prevent the plugin re-installing itself, its folder /path/to/moodle/portfolio/boxnet must be manually removed from your server now. Moodle itself cannot remove the folder due to write permissions.
        

        manually delete the portfolio/boxnet folder.

      5. Click Continue.
      6. On the Plugins check page, click Upgrade Moodle database now.
        • Confirm that there is no fatal error displayed.
        • Confirm that you're back to the Portfolio section of the Plugins overview page.
        • Confirm that the Box portfolio is no longer listed in the list of portfolios.
      Show
      Go to the "Plugins overview" screen and find the portfolios section. Or go to [YOUR MOODLE URL]/admin/plugins.php#plugin_type_cell_portfolio Click the "Uninstall" link next to the "Box" portfolio. Confirm the uninstall by clicking on the Uninstall button. If your web server has file write restrictions in your Moodle installation and you see the following All data associated with the plugin portfolio_boxnet has been deleted from the database. To prevent the plugin re-installing itself, its folder /path/to/moodle/portfolio/boxnet must be manually removed from your server now. Moodle itself cannot remove the folder due to write permissions. manually delete the portfolio/boxnet folder. Click Continue . On the Plugins check page, click Upgrade Moodle database now . Confirm that there is no fatal error displayed. Confirm that you're back to the Portfolio section of the Plugins overview page. Confirm that the Box portfolio is no longer listed in the list of portfolios.
    • Workaround:
      Hide

      Don't uninstall the "Box" portfolio plugin.

      Show
      Don't uninstall the "Box" portfolio plugin.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-54805-master

      Description

      In the "Plugins overview" admin tool, many plugins are allowed to be uninstalled, including some that come with the core installation of Moodle.
      If the "Box" (portfolio_boxnet) portfolio plugin is uninstalled completely, Moodle can no longer function. This seems to be caused by a dependency on "Box" from the "File download" (portfolio_download) portfolio plugin.
      The error message that is displayed is as follows:
      Fatal error: Class 'portfolio_plugin_pull_base' not found in /[moodledirrroot]/portfolio/download/lib.php on line 5
      This prevents loading any page on the site after this has been done.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16