Giter Club home page Giter Club logo

moodle-availability_coursetime's People

Contributors

danmarsden avatar vfremaux avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

danmarsden

moodle-availability_coursetime's Issues

Invalid dependency declaration

In version.php

$plugin->dependencies = array('block_use_stats' => '*');

is not suppported and may lead to unexpected results in the future. Please use the constant ANY_VERSION instead of the '*'.

Fails on PostgreSQL

Attempting to define the access rule on PostgreSQL, the plugin dies with:

Error reading from database

More information about this error

Debug info: ERROR: column "ue.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 3: ue.id,
^

SELECT
ue.id,
MIN(timestart) as timestart
FROM
mdl_enrol e,
mdl_user_enrolments ue
WHERE

e.id = ue.enrolid AND
(ue.timeend = 0 OR ue.timeend > 1475234392)
AND userid = 2 

[array (
)]
Error code: dmlreadexception
Stack trace:
line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 244 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 785 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1480 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
line 120 of /blocks/use_stats/locallib.php: call to moodle_database->get_record_sql()
line 83 of /availability/condition/coursetime/classes/condition.php: call to use_stats_extract_logs()
line 84 of /availability/classes/condition.php: call to availability_coursetime\condition->is_available()
line 265 of /availability/classes/tree.php: call to core_availability\condition->check_available()
line 197 of /availability/classes/info.php: call to core_availability\tree->check_available()
line 2647 of /lib/modinfolib.php: call to core_availability\info->is_available()
line 2610 of /lib/modinfolib.php: call to section_info->get_available()
line 1809 of /lib/modinfolib.php: call to section_info->__get()
line 1290 of /lib/modinfolib.php: call to cm_info->obtain_dynamic_data()
line 1162 of /lib/modinfolib.php: call to cm_info->get_name()
line 1885 of /lib/navigationlib.php: call to cm_info->__get()
line 1924 of /lib/navigationlib.php: call to global_navigation->generate_sections_and_activities()
line 465 of /course/format/lib.php: call to global_navigation->load_generic_course_sections()
line 165 of /course/format/topics/lib.php: call to format_base->extend_course_navigation()
line 1839 of /lib/navigationlib.php: call to format_topics->extend_course_navigation()
line 1204 of /lib/navigationlib.php: call to global_navigation->load_course_sections()
line 3425 of /lib/navigationlib.php: call to global_navigation->initialise()
line 718 of /lib/pagelib.php: call to settings_navigation->__construct()
line 768 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 84 of /course/renderer.php: call to moodle_page->__get()
line 61 of /course/renderer.php: call to core_course_renderer->add_modchoosertoggle()
line 415 of /lib/outputfactories.php: call to core_course_renderer->__construct()
line 1833 of /lib/outputlib.php: call to theme_overridden_renderer_factory->get_renderer()
line 812 of /lib/pagelib.php: call to theme_config->get_renderer()
line 52 of /course/format/renderer.php: call to moodle_page->get_renderer()
line 45 of /course/format/topics/renderer.php: call to format_section_renderer_base->__construct()
line 415 of /lib/outputfactories.php: call to format_topics_renderer->__construct()
line 1833 of /lib/outputlib.php: call to theme_overridden_renderer_factory->get_renderer()
line 812 of /lib/pagelib.php: call to theme_config->get_renderer()
line 134 of /course/view.php: call to moodle_page->get_renderer()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.