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

undefined property error when adding a memcache(d) store

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Caching
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a memcache store without clustering enabled.
      2. Edit the store and make sure the settings are still the same as entered.
      3. Create a memcached store without clustering enabled.
      4. Edit the store and make sure the settings are still the same as entered.
      5. Create a memcache store with clustering enabled and a set server value.
      6. Edit the store and make sure the settings are still the same as entered.
      7. Create a memcached store with clustering enabled and a set server value.
      8. Edit the store and make sure the settings are still the same as entered.

      If you are feeling really ambitious, the test instructions for MDL-42071 could be run.

      Show
      Create a memcache store without clustering enabled. Edit the store and make sure the settings are still the same as entered. Create a memcached store without clustering enabled. Edit the store and make sure the settings are still the same as entered. Create a memcache store with clustering enabled and a set server value. Edit the store and make sure the settings are still the same as entered. Create a memcached store with clustering enabled and a set server value. Edit the store and make sure the settings are still the same as entered. If you are feeling really ambitious, the test instructions for MDL-42071 could be run.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-46796-master

      Description

      This is a regression from MDL-42071.

      When creating a memcache store that does not use a cluster of servers - this warning is shown:

      Notice: Undefined property: stdClass::$setservers in /home/damyonw/Documents/Moodle/integration/master/moodle/cache/stores/memcache/lib.php on line 442
      Call Stack

      1. Time Memory Function Location
        1 0.0001 241608 {main}

        ( ) ../admin.php:0
        2 0.5059 14796408 cache_administration_helper::get_store_configuration_from_data( ) ../admin.php:74
        3 0.5059 14796808 cachestore_memcache::config_get_configuration_array( )

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14