{"action":"created","issue":{"url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius/issues/42","repository_url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius","labels_url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius/issues/42/comments","events_url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius/issues/42/events","html_url":"https://github.com/dmuneras/moodle-theme_archaius/issues/42","id":150550774,"number":42,"title":"Moodle 3.0.3: Error installing","user":{"login":"rosa2","id":1841507,"avatar_url":"https://avatars.githubusercontent.com/u/1841507?v=3","gravatar_id":"","url":"https://api.github.com/users/rosa2","html_url":"https://github.com/rosa2","followers_url":"https://api.github.com/users/rosa2/followers","following_url":"https://api.github.com/users/rosa2/following{/other_user}","gists_url":"https://api.github.com/users/rosa2/gists{/gist_id}","starred_url":"https://api.github.com/users/rosa2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosa2/subscriptions","organizations_url":"https://api.github.com/users/rosa2/orgs","repos_url":"https://api.github.com/users/rosa2/repos","events_url":"https://api.github.com/users/rosa2/events{/privacy}","received_events_url":"https://api.github.com/users/rosa2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-23T12:24:34Z","updated_at":"2016-04-23T12:38:14Z","closed_at":null,"body":"Hello and thanks for the theme\r\n\r\nI want to learn how you made the javascript field in the theme. When I try to install your theme in a moodle 3.0.3 I get this errors\r\n\r\n```\r\nNotice: Trying to get property of non-object in /var/www/html/moodle/lib/outputlib.php on line 542\r\n\r\nWarning: Invalid argument supplied for foreach() in /var/www/html/moodle/lib/outputlib.php on line 542\r\nInvalid page layout specified: maintenance\r\n\r\n    line 1846 of /lib/outputlib.php: call to debugging()\r\n    line 1910 of /lib/outputlib.php: call to theme_config->layout_info_for_page()\r\n    line 1514 of /lib/pagelib.php: call to theme_config->setup_blocks()\r\n    line 637 of /lib/pagelib.php: call to moodle_page->initialise_theme_and_output()\r\n    line 812 of /lib/pagelib.php: call to moodle_page->magic_get_theme()\r\n    line 527 of /admin/index.php: call to moodle_page->get_renderer()\r\n\r\n\r\nNotice: Undefined index: standard in /var/www/html/moodle/lib/outputlib.php on line 1847\r\nInvalid page layout specified: maintenance\r\n\r\n    line 1846 of /lib/outputlib.php: call to debugging()\r\n    line 1863 of /lib/outputlib.php: call to theme_config->layout_info_for_page()\r\n    line 946 of /lib/outputrenderers.php: call to theme_config->layout_file()\r\n    line ? of unknownfile: call to core_renderer->header()\r\n    line 355 of /lib/outputrenderers.php: call to call_user_func_array()\r\n    line 208 of /admin/renderer.php: call to plugin_renderer_base->__call()\r\n    line 208 of /admin/renderer.php: call to core_admin_renderer->header()\r\n    line 662 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()\r\n\r\n\r\nNotice: Undefined index: standard in /var/www/html/moodle/lib/outputlib.php on line 1847\r\n\r\nWarning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/moodle/lib/outputlib.php on line 1866\r\nCoding error detected, it must be fixed by a programmer: page layout file [dirroot]/theme/intermedia/layout/ does not contain the main content placeholder, please include \"<?php echo $OUTPUT->main_content() ?>\" in theme layout file.\r\nDebug info:\r\nError code: codingerror\r\nStack trace:\r\n\r\n    line 960 of /lib/outputrenderers.php: coding_exception thrown\r\n    line ? of unknownfile: call to core_renderer->header()\r\n    line 355 of /lib/outputrenderers.php: call to call_user_func_array()\r\n    line 208 of /admin/renderer.php: call to plugin_renderer_base->__call()\r\n    line 208 of /admin/renderer.php: call to core_admin_renderer->header()\r\n    line 662 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()\r\n```\r\n\r\nIf I check with git, I see that after installation\r\n        ```\r\ndeleted:    blocks/badges/block_badges.php\r\n\tdeleted:    blocks/badges/db/access.php\r\n\tdeleted:    blocks/badges/db/upgrade.php\r\n\tdeleted:    blocks/badges/edit_form.php\r\n\tdeleted:    blocks/badges/lang/en/block_badges.php\r\n\tdeleted:    blocks/badges/version.php\r\n\tdeleted:    theme/base/cli/svgtool.php\r\n\tdeleted:    theme/base/config.php\r\n\tdeleted:    theme/base/lang/en/theme_base.php\r\n\tdeleted:    theme/base/layout/embedded.php\r\n\tdeleted:    theme/base/layout/frontpage.php\r\n\tdeleted:    theme/base/layout/general.php\r\n\tdeleted:    theme/base/layout/report.php\r\n\tdeleted:    theme/base/pix/favicon.ico\r\n\tdeleted:    theme/base/pix/fp/add_file.png\r\n\tdeleted:    theme/base/pix/fp/add_file.svg\r\n\tdeleted:    theme/base/pix/fp/alias.png\r\n\tdeleted:    theme/base/pix/fp/alias_sm.png\r\n\tdeleted:    theme/base/pix/fp/check.png\r\n\tdeleted:    theme/base/pix/fp/create_folder.png\r\n\tdeleted:    theme/base/pix/fp/create_folder.svg\r\n\tdeleted:    theme/base/pix/fp/cross.png\r\n\tdeleted:    theme/base/pix/fp/dnd_arrow.gif\r\n\tdeleted:    theme/base/pix/fp/download_all.png\r\n\tdeleted:    theme/base/pix/fp/download_all.svg\r\n\tdeleted:    theme/base/pix/fp/help.png\r\n\tdeleted:    theme/base/pix/fp/help.svg\r\n\tdeleted:    theme/base/pix/fp/link.png\r\n\tdeleted:    theme/base/pix/fp/link_sm.png\r\n\tdeleted:    theme/base/pix/fp/logout.png\r\n\tdeleted:    theme/base/pix/fp/logout.svg\r\n\tdeleted:    theme/base/pix/fp/path_folder.png\r\n\tdeleted:    theme/base/pix/fp/path_folder_rtl.png\r\n\tdeleted:    theme/base/pix/fp/refresh.png\r\n\tdeleted:    theme/base/pix/fp/refresh.svg\r\n\tdeleted:    theme/base/pix/fp/search.png\r\n\tdeleted:    theme/base/pix/fp/search.svg\r\n\tdeleted:    theme/base/pix/fp/setting.png\r\n\tdeleted:    theme/base/pix/fp/setting.svg\r\n\tdeleted:    theme/base/pix/fp/view_icon_active.png\r\n\tdeleted:    theme/base/pix/fp/view_icon_active.svg\r\n\tdeleted:    theme/base/pix/fp/view_list_active.png\r\n\tdeleted:    theme/base/pix/fp/view_list_active.svg\r\n\tdeleted:    theme/base/pix/fp/view_tree_active.png\r\n\tdeleted:    theme/base/pix/fp/view_tree_active.svg\r\n\tdeleted:    theme/base/pix/horizontal-menu-submenu-indicator.png\r\n\tdeleted:    theme/base/pix/progress.gif\r\n\tdeleted:    theme/base/pix/screenshot.png\r\n\tdeleted:    theme/base/pix/sprite.png\r\n\tdeleted:    theme/base/pix/vertical-menu-submenu-indicator.png\r\n\tdeleted:    theme/base/pix/yui2-treeview-sprite-rtl.gif\r\n\tdeleted:    theme/base/style/admin.css\r\n\tdeleted:    theme/base/style/autocomplete.css\r\n\tdeleted:    theme/base/style/blocks.css\r\n\tdeleted:    theme/base/style/calendar.css\r\n\tdeleted:    theme/base/style/core.css\r\n\tdeleted:    theme/base/style/course.css\r\n\tdeleted:    theme/base/style/dock.css\r\n\tdeleted:    theme/base/style/editor.css\r\n\tdeleted:    theme/base/style/filemanager.css\r\n\tdeleted:    theme/base/style/grade.css\r\n\tdeleted:    theme/base/style/message.css\r\n\tdeleted:    theme/base/style/pagelayout.css\r\n\tdeleted:    theme/base/style/question.css\r\n\tdeleted:    theme/base/style/tabs.css\r\n\tdeleted:    theme/base/style/templates.css\r\n\tdeleted:    theme/base/style/user.css\r\n\tdeleted:    theme/base/templates/core/notification_message.mustache\r\n\tdeleted:    theme/base/templates/core/notification_problem.mustache\r\n\tdeleted:    theme/base/templates/core/notification_redirect.mustache\r\n\tdeleted:    theme/base/templates/core/notification_success.mustache\r\n\tdeleted:    theme/base/version.php\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius/issues/comments/213733551","html_url":"https://github.com/dmuneras/moodle-theme_archaius/issues/42#issuecomment-213733551","issue_url":"https://api.github.com/repos/dmuneras/moodle-theme_archaius/issues/42","id":213733551,"user":{"login":"rosa2","id":1841507,"avatar_url":"https://avatars.githubusercontent.com/u/1841507?v=3","gravatar_id":"","url":"https://api.github.com/users/rosa2","html_url":"https://github.com/rosa2","followers_url":"https://api.github.com/users/rosa2/followers","following_url":"https://api.github.com/users/rosa2/following{/other_user}","gists_url":"https://api.github.com/users/rosa2/gists{/gist_id}","starred_url":"https://api.github.com/users/rosa2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosa2/subscriptions","organizations_url":"https://api.github.com/users/rosa2/orgs","repos_url":"https://api.github.com/users/rosa2/repos","events_url":"https://api.github.com/users/rosa2/events{/privacy}","received_events_url":"https://api.github.com/users/rosa2/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T12:38:14Z","updated_at":"2016-04-23T12:38:14Z","body":"I changed the version in version.php \r\n\r\n```\r\n// Requires this Moodle version\r\n$plugin->requires  = 2015111000;\r\n```\r\n\r\nand now it works :)"}}