dmuneras / moodle-theme_archaius

Moodle theme
5 stars 9 forks source link

Moodle 3.0.3: Error installing #42

Closed rosa2 closed 8 years ago

rosa2 commented 8 years ago

Hello and thanks for the theme

I 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

Notice: Trying to get property of non-object in /var/www/html/moodle/lib/outputlib.php on line 542

Warning: Invalid argument supplied for foreach() in /var/www/html/moodle/lib/outputlib.php on line 542
Invalid page layout specified: maintenance

    line 1846 of /lib/outputlib.php: call to debugging()
    line 1910 of /lib/outputlib.php: call to theme_config->layout_info_for_page()
    line 1514 of /lib/pagelib.php: call to theme_config->setup_blocks()
    line 637 of /lib/pagelib.php: call to moodle_page->initialise_theme_and_output()
    line 812 of /lib/pagelib.php: call to moodle_page->magic_get_theme()
    line 527 of /admin/index.php: call to moodle_page->get_renderer()

Notice: Undefined index: standard in /var/www/html/moodle/lib/outputlib.php on line 1847
Invalid page layout specified: maintenance

    line 1846 of /lib/outputlib.php: call to debugging()
    line 1863 of /lib/outputlib.php: call to theme_config->layout_info_for_page()
    line 946 of /lib/outputrenderers.php: call to theme_config->layout_file()
    line ? of unknownfile: call to core_renderer->header()
    line 355 of /lib/outputrenderers.php: call to call_user_func_array()
    line 208 of /admin/renderer.php: call to plugin_renderer_base->__call()
    line 208 of /admin/renderer.php: call to core_admin_renderer->header()
    line 662 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()

Notice: Undefined index: standard in /var/www/html/moodle/lib/outputlib.php on line 1847

Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/moodle/lib/outputlib.php on line 1866
Coding 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.
Debug info:
Error code: codingerror
Stack trace:

    line 960 of /lib/outputrenderers.php: coding_exception thrown
    line ? of unknownfile: call to core_renderer->header()
    line 355 of /lib/outputrenderers.php: call to call_user_func_array()
    line 208 of /admin/renderer.php: call to plugin_renderer_base->__call()
    line 208 of /admin/renderer.php: call to core_admin_renderer->header()
    line 662 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()

If I check with git, I see that after installation


        deleted:    blocks/badges/block_badges.php
    deleted:    blocks/badges/db/access.php
    deleted:    blocks/badges/db/upgrade.php
    deleted:    blocks/badges/edit_form.php
    deleted:    blocks/badges/lang/en/block_badges.php
    deleted:    blocks/badges/version.php
    deleted:    theme/base/cli/svgtool.php
    deleted:    theme/base/config.php
    deleted:    theme/base/lang/en/theme_base.php
    deleted:    theme/base/layout/embedded.php
    deleted:    theme/base/layout/frontpage.php
    deleted:    theme/base/layout/general.php
    deleted:    theme/base/layout/report.php
    deleted:    theme/base/pix/favicon.ico
    deleted:    theme/base/pix/fp/add_file.png
    deleted:    theme/base/pix/fp/add_file.svg
    deleted:    theme/base/pix/fp/alias.png
    deleted:    theme/base/pix/fp/alias_sm.png
    deleted:    theme/base/pix/fp/check.png
    deleted:    theme/base/pix/fp/create_folder.png
    deleted:    theme/base/pix/fp/create_folder.svg
    deleted:    theme/base/pix/fp/cross.png
    deleted:    theme/base/pix/fp/dnd_arrow.gif
    deleted:    theme/base/pix/fp/download_all.png
    deleted:    theme/base/pix/fp/download_all.svg
    deleted:    theme/base/pix/fp/help.png
    deleted:    theme/base/pix/fp/help.svg
    deleted:    theme/base/pix/fp/link.png
    deleted:    theme/base/pix/fp/link_sm.png
    deleted:    theme/base/pix/fp/logout.png
    deleted:    theme/base/pix/fp/logout.svg
    deleted:    theme/base/pix/fp/path_folder.png
    deleted:    theme/base/pix/fp/path_folder_rtl.png
    deleted:    theme/base/pix/fp/refresh.png
    deleted:    theme/base/pix/fp/refresh.svg
    deleted:    theme/base/pix/fp/search.png
    deleted:    theme/base/pix/fp/search.svg
    deleted:    theme/base/pix/fp/setting.png
    deleted:    theme/base/pix/fp/setting.svg
    deleted:    theme/base/pix/fp/view_icon_active.png
    deleted:    theme/base/pix/fp/view_icon_active.svg
    deleted:    theme/base/pix/fp/view_list_active.png
    deleted:    theme/base/pix/fp/view_list_active.svg
    deleted:    theme/base/pix/fp/view_tree_active.png
    deleted:    theme/base/pix/fp/view_tree_active.svg
    deleted:    theme/base/pix/horizontal-menu-submenu-indicator.png
    deleted:    theme/base/pix/progress.gif
    deleted:    theme/base/pix/screenshot.png
    deleted:    theme/base/pix/sprite.png
    deleted:    theme/base/pix/vertical-menu-submenu-indicator.png
    deleted:    theme/base/pix/yui2-treeview-sprite-rtl.gif
    deleted:    theme/base/style/admin.css
    deleted:    theme/base/style/autocomplete.css
    deleted:    theme/base/style/blocks.css
    deleted:    theme/base/style/calendar.css
    deleted:    theme/base/style/core.css
    deleted:    theme/base/style/course.css
    deleted:    theme/base/style/dock.css
    deleted:    theme/base/style/editor.css
    deleted:    theme/base/style/filemanager.css
    deleted:    theme/base/style/grade.css
    deleted:    theme/base/style/message.css
    deleted:    theme/base/style/pagelayout.css
    deleted:    theme/base/style/question.css
    deleted:    theme/base/style/tabs.css
    deleted:    theme/base/style/templates.css
    deleted:    theme/base/style/user.css
    deleted:    theme/base/templates/core/notification_message.mustache
    deleted:    theme/base/templates/core/notification_problem.mustache
    deleted:    theme/base/templates/core/notification_redirect.mustache
    deleted:    theme/base/templates/core/notification_success.mustache
    deleted:    theme/base/version.php
rosa2 commented 8 years ago

I changed the version in version.php

// Requires this Moodle version
$plugin->requires  = 2015111000;

and now it works :)

dmuneras commented 8 years ago

Glad to hear you fix your problem.

Regards, Daniel.

rosa2 commented 8 years ago

Your theme is unbelievable. Very good to learn. Thanks a lot to make it public :)

dmuneras commented 8 years ago

Thanks a lot @rosa2, if you want to can start the repo, :P

dmuneras commented 8 years ago

Por cierto, puedes escribirme en español también. :D

rosa2 commented 8 years ago

Gracias. Una pregunta, veo que en tu tema tienes el Gruntfile.js Para instalarlo, ¿vas a la carpeta del tema y haces allí "npm install"? Si es así, las rutas han de ser relativas de esa carpeta y no la de moodle ¿entiendo bien? Gracias :)