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

Search areas admin page ugly error when no search engine is selected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Global search
    • Labels:
    • Testing Instructions:
      Hide
      1. Unset CFG->searchengine (to hack the DB + purge caches may be the fastest choice)
      2. Go to admin/searchareas.php
      3. You should see a warning stating "You have not selected any search engine"
      4. Go to admin/settings.php?section=manageglobalsearch
      5. Save changes so solr is stored as CFG->searchengine value
      6. (only if you have php solr extension enabled) Disable your solr extension and restart apache
      7. Go to admin/searchareas.php
      8. You should see a warning stating "Engine solr is not installed"
      Show
      Unset CFG->searchengine (to hack the DB + purge caches may be the fastest choice) Go to admin/searchareas.php You should see a warning stating "You have not selected any search engine" Go to admin/settings.php?section=manageglobalsearch Save changes so solr is stored as CFG->searchengine value (only if you have php solr extension enabled) Disable your solr extension and restart apache Go to admin/searchareas.php You should see a warning stating "Engine solr is not installed"
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55287_master

      Description

      I've accessed admin/searchareas.php before selecting any search engine and I've seen the following error:

      {$a} not installed.
      

      We should not show any error if no search engine is selected just disable the index/delete buttons.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmonllao David Monllaó
                Reporter:
                dmonllao David Monllaó
                Peer reviewer:
                Jun Pataleta
                Integrator:
                Dan Poltawski
                Tester:
                Rajesh Taneja
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16