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

cm_info $cache issues when viewing someone's posts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as a teacher
      2. Create a new forum
      3. Via the navigation block, get to the page showing the forums posts of a participant
        • Make sure that the page displays correctly when the user has not posted yet
        • Make sure that the page displays correctly when the user has already posted on the forum
      4. Test the common functionality of the forum and make sure it works
        • CRUD discussion
        • CRUD post
      Show
      Login as a teacher Create a new forum Via the navigation block, get to the page showing the forums posts of a participant Make sure that the page displays correctly when the user has not posted yet Make sure that the page displays correctly when the user has already posted on the forum Test the common functionality of the forum and make sure it works CRUD discussion CRUD post
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42534-master-int

      Description

      On step 5 of MDLQA-5914, a bunch of notices a thrown:

      It is not allowed to set the property cm_info::$cache
      line 1249 of /lib/modinfolib.php: call to debugging()
      line 3257 of /mod/forum/lib.php: call to cm_info->__set()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3260 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3261 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3261 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293 Strict standards: Creating default object from empty value in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3261 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3262 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3262 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3263 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3263 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3264 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3264 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3265 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3265 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3266 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3266 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3267 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3267 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3268 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3268 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3269 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3269 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3270 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Indirect modification of overloaded property cm_info::$cache has no effect in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3270 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 5439 of /mod/forum/lib.php: call to cm_info->__get()
      line 3281 of /mod/forum/lib.php: call to forum_user_can_see_post()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3341 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Trying to get property of non-object in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3341 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3345 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3405 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Trying to get property of non-object in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3405 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3409 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Trying to get property of non-object in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3409 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3415 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Trying to get property of non-object in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3415 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      Invalid cm_info property accessed: cache
      line 1191 of /lib/modinfolib.php: call to debugging()
      line 3423 of /mod/forum/lib.php: call to cm_info->__get()
      line 293 of /mod/forum/user.php: call to forum_print_post()
      Notice: Trying to get property of non-object in /home/fred/www/repositories/im/moodle/mod/forum/lib.php on line 3423 Call Stack: 0.0011 821456 1. {main}() /home/fred/www/repositories/im/moodle/mod/forum/user.php:0 0.3079 60798872 2. forum_print_post() /home/fred/www/repositories/im/moodle/mod/forum/user.php:293
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13