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

Undefined $CFG in mod_book pluginfile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Book
    • Labels:

      Description

      While testing MDLQA-6258, I found this notice in my logs:

      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP Notice:  Undefined variable: CFG in /home/fred/www/repositories/im/moodle/mod/book/lib.php on line 446, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP Stack trace:, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP   1. {main}() /home/fred/www/repositories/im/moodle/pluginfile.php:0, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP   2. file_pluginfile() /home/fred/www/repositories/im/moodle/pluginfile.php:37, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP   3. book_pluginfile() /home/fred/www/repositories/im/moodle/lib/filelib.php:4569, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP Notice:  Trying to get property of non-object in /home/fred/www/repositories/im/moodle/mod/book/lib.php on line 446, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP Stack trace:, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP   1. {main}() /home/fred/www/repositories/im/moodle/pluginfile.php:0, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP   2. file_pluginfile() /home/fred/www/repositories/im/moodle/pluginfile.php:37, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      [Tue Nov 05 13:10:23 2013] [error] [client 192.168.100.54] PHP   3. book_pluginfile() /home/fred/www/repositories/im/moodle/lib/filelib.php:4569, referer: https://fred.moodle.local/im/mod/book/view.php?id=3658
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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