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

Coding error when a portfolio is insane and visible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.6, 2.5
    • Fix Version/s: BACKEND
    • Component/s: Portfolio
    • Labels:
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE

      Description

      I don't know in what circumstances this could happen, but if edit the entry of box.net in mdl_portfolio_instances, and then remove all the portfolio config associated to it in mdl_portfolio_instances_config... this happens once (and only once) for any user visiting a forum for instance:

      Invalid get_string() identifier: 'someinstancesdisabled' or component 'portfolio'. Perhaps you are missing $string['someinstancesdisabled'] = ''; in lang/en/portfolio.php?
      line 6923 of /lib/moodlelib.php: call to debugging()
      line 7615 of /lib/moodlelib.php: call to core_string_manager->get_string()
      line 895 of /lib/portfoliolib.php: call to get_string()
      line 1092 of /lib/portfoliolib.php: call to portfolio_report_insane()
      line 872 of /lib/portfoliolib.php: call to portfolio_insane_notify_admins()
      line 309 of /lib/portfoliolib.php: call to portfolio_instance_sanity_check()
      line 185 of /mod/forum/discuss.php: call to portfolio_add_button->to_html()
       
      Coding error detected, it must be fixed by a programmer: Could not load preference popup_provider_portfolio_notices_permitted. Make sure the component and name you supplied to message_send() are valid.
       
      More information about this error
       
      Debug info: 
      Error code: codingerror
      Stack trace:
      line 162 of /lib/messagelib.php: coding_exception thrown
      line 1120 of /lib/portfoliolib.php: call to message_send()
      line 872 of /lib/portfoliolib.php: call to portfolio_insane_notify_admins()
      line 309 of /lib/portfoliolib.php: call to portfolio_instance_sanity_check()
      line 185 of /mod/forum/discuss.php: call to portfolio_add_button->to_html()
      

      Portfolios need to be enabled obviously.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fred Frédéric Massart
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: