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

Undefined $CFG in mod_book pluginfile

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6
    • 2.6
    • Book

    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

              fred Frédéric Massart
              fred Frédéric Massart
              Petr Skoda Petr Skoda
              Marina Glancy Marina Glancy
              Rossiani Wijaya Rossiani Wijaya
              David Jones, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13