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

CLI Installation throws up some PHP Notices about Undefined properties.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Installation
    • Labels:
      None
    • Environment:
      Linux command line
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      During the command line installation I get these errors (i've included the full cli output just to show that 99% installs correctly)

      The site is also viewable after installation, so I'm not 100% sure if this actually breaks anything, and I haven't got time to have a look today. If the OU does another moodle monday I'll revisit this if it's not fixed by then.

      Hopefully this should be a trivial fix.

      Have you read these conditions and understood them?
      type y (means yes) or n (means no)
      : y
      -------------------------------------------------------------------------------
      == Setting up database ==
      -->System
      PHP Notice: Undefined property: stdClass::$docroot in /fs2/www/html/jecb5/cli-core-moodle/lib/weblib.php on line 2789
      PHP Stack trace:
      PHP 1.

      {main}() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:0
      PHP 2. install_cli_database() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:632
      PHP 3. install_core() /fs2/www/html/jecb5/cli-core-moodle/lib/installlib.php:555
      PHP 4. admin_apply_default_settings() /fs2/www/html/jecb5/cli-core-moodle/lib/upgradelib.php:1264
      PHP 5. admin_get_root() /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5659
      PHP 6. require() /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5639
      PHP 7. get_docs_url() /fs2/www/html/jecb5/cli-core-moodle/admin/settings/plugins.php:338

      Notice: Undefined property: stdClass::$docroot in /fs2/www/html/jecb5/cli-core-moodle/lib/weblib.php on line 2789

      Call Stack:
      0.0020 921536 1. {main}

      () /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:0
      139.7608 31495064 2. install_cli_database() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:632
      139.7803 32974640 3. install_core() /fs2/www/html/jecb5/cli-core-moodle/lib/installlib.php:555
      148.7226 34268944 4. admin_apply_default_settings() /fs2/www/html/jecb5/cli-core-moodle/lib/upgradelib.php:1264
      148.7226 34269040 5. admin_get_root() /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5659
      148.7336 34833720 6. require('/fs2/www/html/jecb5/cli-core-moodle/admin/settings/plugins.php') /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5639
      148.7365 34899640 7. get_docs_url() /fs2/www/html/jecb5/cli-core-moodle/admin/settings/plugins.php:338

      ++ Success ++
      PHP Notice: Undefined property: stdClass::$extramemorylimit in /fs2/www/html/jecb5/cli-core-moodle/lib/setuplib.php on line 818
      PHP Stack trace:
      PHP 1.

      {main}() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:0
      PHP 2. install_cli_database() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:632
      PHP 3. upgrade_noncore() /fs2/www/html/jecb5/cli-core-moodle/lib/installlib.php:560
      PHP 4. raise_memory_limit() /fs2/www/html/jecb5/cli-core-moodle/lib/upgradelib.php:1346

      Notice: Undefined property: stdClass::$extramemorylimit in /fs2/www/html/jecb5/cli-core-moodle/lib/setuplib.php on line 818

      Call Stack:
      0.0020 921536 1. {main}

      () /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:0
      139.7608 31495064 2. install_cli_database() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:632
      148.7596 34617336 3. upgrade_noncore() /fs2/www/html/jecb5/cli-core-moodle/lib/installlib.php:560
      148.7596 34617384 4. raise_memory_limit() /fs2/www/html/jecb5/cli-core-moodle/lib/upgradelib.php:1346

      -->mod_assignment
      ++ Success ++
      -->mod_chat
      ++ Success ++
      -->mod_choice
      ++ Success ++
      -->mod_data
      ++ Success ++
      -->mod_feedback
      ++ Success ++
      -->mod_folder
      ++ Success ++
      -->mod_forum
      ++ Success ++
      -->mod_glossary
      ++ Success ++
      -->mod_imscp
      ++ Success ++
      -->mod_label
      ++ Success ++
      -->mod_lesson
      ++ Success ++
      -->mod_page
      ++ Success ++
      -->mod_quiz
      ++ Success ++
      -->mod_resource
      ++ Success ++
      -->mod_scorm
      ++ Success ++
      -->mod_survey
      ++ Success ++
      -->mod_url
      ++ Success ++
      -->mod_wiki
      ++ Success ++
      -->mod_workshop
      ++ Success ++
      -->auth_cas
      ++ Success ++
      -->auth_db
      ++ Success ++
      -->auth_fc
      ++ Success ++
      -->auth_imap
      ++ Success ++
      -->auth_ldap
      ++ Success ++
      -->auth_mnet
      ++ Success ++
      -->auth_nntp
      ++ Success ++
      -->auth_pam
      ++ Success ++
      -->auth_pop3
      ++ Success ++
      -->auth_radius
      ++ Success ++
      -->auth_shibboleth
      ++ Success ++
      -->enrol_authorize
      ++ Success ++
      -->enrol_category
      ++ Success ++
      -->enrol_cohort
      ++ Success ++
      -->enrol_database
      ++ Success ++
      -->enrol_flatfile
      ++ Success ++
      -->enrol_guest
      ++ Success ++
      -->enrol_imsenterprise
      ++ Success ++
      -->enrol_ldap
      ++ Success ++
      -->enrol_manual
      ++ Success ++
      -->enrol_meta
      ++ Success ++
      -->enrol_mnet
      ++ Success ++
      -->enrol_paypal
      ++ Success ++
      -->enrol_self
      ++ Success ++
      -->message_email
      ++ Success ++
      -->message_jabber
      ++ Success ++
      -->message_popup
      ++ Success ++
      -->block_activity_modules
      ++ Success ++
      -->block_admin_bookmarks
      ++ Success ++
      -->block_blog_menu
      ++ Success ++
      -->block_blog_recent
      ++ Success ++
      -->block_blog_tags
      ++ Success ++
      -->block_calendar_month
      ++ Success ++
      -->block_calendar_upcoming
      ++ Success ++
      -->block_comments
      ++ Success ++
      -->block_community
      ++ Success ++
      -->block_completionstatus
      ++ Success ++
      -->block_course_list
      ++ Success ++
      -->block_course_overview
      ++ Success ++
      -->block_course_summary
      ++ Success ++
      -->block_feedback
      ++ Success ++
      -->block_glossary_random
      ++ Success ++
      -->block_html
      ++ Success ++
      -->block_login
      ++ Success ++
      -->block_mentees
      ++ Success ++
      -->block_messages
      ++ Success ++
      -->block_mnet_hosts
      ++ Success ++
      -->block_myprofile
      ++ Success ++
      -->block_navigation
      ++ Success ++
      -->block_news_items
      ++ Success ++
      -->block_online_users
      ++ Success ++
      -->block_participants
      ++ Success ++
      -->block_private_files
      ++ Success ++
      -->block_quiz_results
      ++ Success ++
      -->block_recent_activity
      ++ Success ++
      -->block_rss_client
      ++ Success ++
      -->block_search
      ++ Success ++
      -->block_search_forums
      ++ Success ++
      -->block_section_links
      ++ Success ++
      -->block_selfcompletion
      ++ Success ++
      -->block_settings
      ++ Success ++
      -->block_site_main_menu
      ++ Success ++
      -->block_social_activities
      ++ Success ++
      -->block_tag_flickr
      ++ Success ++
      -->block_tag_youtube
      ++ Success ++
      -->block_tags
      ++ Success ++
      -->filter_emoticon
      ++ Success ++
      -->filter_mediaplugin
      ++ Success ++
      -->filter_tex
      ++ Success ++
      -->filter_urltolink
      ++ Success ++
      -->editor_textarea
      ++ Success ++
      -->editor_tinymce
      ++ Success ++
      -->report_courseoverview
      ++ Success ++
      -->report_customlang
      ++ Success ++
      -->report_questioninstances
      ++ Success ++
      -->report_security
      ++ Success ++
      -->report_unittest
      ++ Success ++
      -->report_unsuproles
      ++ Success ++
      -->coursereport_completion
      ++ Success ++
      -->coursereport_log
      ++ Success ++
      -->coursereport_outline
      ++ Success ++
      -->coursereport_participation
      ++ Success ++
      -->coursereport_progress
      ++ Success ++
      -->coursereport_stats
      ++ Success ++
      -->gradeexport_ods
      ++ Success ++
      -->gradeexport_txt
      ++ Success ++
      -->gradeexport_xls
      ++ Success ++
      -->gradeexport_xml
      ++ Success ++
      -->gradeimport_csv
      ++ Success ++
      -->gradeimport_xml
      ++ Success ++
      -->gradereport_grader
      ++ Success ++
      -->gradereport_outcomes
      ++ Success ++
      -->gradereport_overview
      ++ Success ++
      -->gradereport_user
      ++ Success ++
      -->mnetservice_enrol
      ++ Success ++
      -->webservice_amf
      ++ Success ++
      -->webservice_rest
      ++ Success ++
      -->webservice_soap
      ++ Success ++
      -->webservice_xmlrpc
      ++ Success ++
      -->repository_alfresco
      ++ Success ++
      -->repository_boxnet
      ++ Success ++
      -->repository_coursefiles
      ++ Success ++
      -->repository_dropbox
      ++ Success ++
      -->repository_filesystem
      ++ Success ++
      -->repository_flickr
      ++ Success ++
      -->repository_flickr_public
      ++ Success ++
      -->repository_googledocs
      ++ Success ++
      -->repository_local
      ++ Success ++
      -->repository_merlot
      ++ Success ++
      -->repository_picasa
      ++ Success ++
      -->repository_recent
      ++ Success ++
      -->repository_s3
      ++ Success ++
      -->repository_upload
      ++ Success ++
      -->repository_url
      ++ Success ++
      -->repository_user
      ++ Success ++
      -->repository_webdav
      ++ Success ++
      -->repository_wikimedia
      ++ Success ++
      -->repository_youtube
      ++ Success ++
      -->portfolio_boxnet
      ++ Success ++
      -->portfolio_download
      ++ Success ++
      -->portfolio_flickr
      ++ Success ++
      -->portfolio_googledocs
      ++ Success ++
      -->portfolio_mahara
      ++ Success ++
      -->portfolio_picasa
      ++ Success ++
      -->qtype_calculated
      ++ Success ++
      -->qtype_essay
      ++ Success ++
      -->qtype_match
      ++ Success ++
      -->qtype_multianswer
      ++ Success ++
      -->qtype_multichoice
      ++ Success ++
      -->qtype_numerical
      ++ Success ++
      -->qtype_randomsamatch
      ++ Success ++
      -->qtype_shortanswer
      ++ Success ++
      -->qtype_truefalse
      ++ Success ++
      -->assignment_online
      ++ Success ++
      -->quiz_overview
      ++ Success ++
      -->quiz_statistics
      ++ Success ++
      -->workshopform_accumulative
      ++ Success ++
      -->workshopform_comments
      ++ Success ++
      -->workshopform_numerrors
      ++ Success ++
      -->workshopform_rubric
      ++ Success ++
      -->workshopeval_best
      ++ Success ++
      PHP Notice: Undefined property: stdClass::$docroot in /fs2/www/html/jecb5/cli-core-moodle/lib/weblib.php on line 2789
      PHP Stack trace:
      PHP 1.

      {main}() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:0
      PHP 2. install_cli_database() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:632
      PHP 3. admin_apply_default_settings() /fs2/www/html/jecb5/cli-core-moodle/lib/installlib.php:581
      PHP 4. admin_get_root() /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5659
      PHP 5. require() /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5639
      PHP 6. get_docs_url() /fs2/www/html/jecb5/cli-core-moodle/admin/settings/plugins.php:338

      Notice: Undefined property: stdClass::$docroot in /fs2/www/html/jecb5/cli-core-moodle/lib/weblib.php on line 2789

      Call Stack:
      0.0020 921536 1. {main}

      () /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:0
      139.7608 31495064 2. install_cli_database() /fs2/www/html/jecb5/cli-core-moodle/admin/cli/install.php:632
      174.7872 54921568 3. admin_apply_default_settings() /fs2/www/html/jecb5/cli-core-moodle/lib/installlib.php:581
      174.7872 54921664 4. admin_get_root() /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5659
      174.9555 60573664 5. require('/fs2/www/html/jecb5/cli-core-moodle/admin/settings/plugins.php') /fs2/www/html/jecb5/cli-core-moodle/lib/adminlib.php:5639
      175.2006 74755144 6. get_docs_url() /fs2/www/html/jecb5/cli-core-moodle/admin/settings/plugins.php:338

      Installation completed successfully.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            mrbriz James Brisland
            Tester:
            Nobody
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10