{"action":"created","issue":{"url":"https://api.github.com/repos/stefanscholz/moodle-block_dash/issues/46","repository_url":"https://api.github.com/repos/stefanscholz/moodle-block_dash","labels_url":"https://api.github.com/repos/stefanscholz/moodle-block_dash/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/stefanscholz/moodle-block_dash/issues/46/comments","events_url":"https://api.github.com/repos/stefanscholz/moodle-block_dash/issues/46/events","html_url":"https://github.com/stefanscholz/moodle-block_dash/issues/46","id":540589000,"node_id":"MDU6SXNzdWU1NDA1ODkwMDA=","number":46,"title":"Debug messages in dashboard with dashes with data source course completions","user":{"login":"stefanscholz","id":3414705,"node_id":"MDQ6VXNlcjM0MTQ3MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/3414705?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanscholz","html_url":"https://github.com/stefanscholz","followers_url":"https://api.github.com/users/stefanscholz/followers","following_url":"https://api.github.com/users/stefanscholz/following{/other_user}","gists_url":"https://api.github.com/users/stefanscholz/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanscholz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanscholz/subscriptions","organizations_url":"https://api.github.com/users/stefanscholz/orgs","repos_url":"https://api.github.com/users/stefanscholz/repos","events_url":"https://api.github.com/users/stefanscholz/events{/privacy}","received_events_url":"https://api.github.com/users/stefanscholz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-12-19T21:49:09Z","updated_at":"2019-12-30T21:18:35Z","closed_at":null,"author_association":"OWNER","body":"After adding another dash to the dashboard, this is shown:\r\n\r\nDid you remember to make the first column something unique in your call to get_records? Duplicate value '0' found in column 'ccp_total_activities'.\r\nline 1256 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()\r\nline 162 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to mysqli_native_moodle_database->get_records_sql()\r\nline 139 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to block_dash\\data_grid\\sql_data_grid->get_records()\r\nline 177 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\data_grid\\sql_data_grid->get_data()\r\nline 213 of /blocks/dash/classes/layout/abstract_layout.php: call to block_dash\\data_source\\abstract_data_source->get_data()\r\nline 243 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\layout\\abstract_layout->export_for_template()\r\nline 125 of /blocks/dash/classes/output/renderer.php: call to block_dash\\data_source\\abstract_data_source->export_for_template()\r\nline 73 of /blocks/dash/classes/block_builder.php: call to block_dash\\output\\renderer->render_data_source()\r\nline 75 of /blocks/dash/block_dash.php: call to block_dash\\block_builder->get_block_content()\r\nline 336 of /blocks/moodleblock.class.php: call to block_dash->get_content()\r\nline 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\r\nline 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()\r\nline 1233 of /lib/blocklib.php: call to block_manager->create_block_contents()\r\nline 643 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()\r\nline 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_head_html()\r\nline 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()\r\nline 31 of data/localcache/mustache/1576769611/boost/__Mustache_e8d8ae873a984614cbb0bd0c2a191036.php: call to Mustache_Context->findDot()\r\nline 13 of data/localcache/mustache/1576769611/boost/__Mustache_1c5088c2b2592d5b071229c5fbd20b21.php: call to __Mustache_e8d8ae873a984614cbb0bd0c2a191036->renderInternal()\r\nline 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_1c5088c2b2592d5b071229c5fbd20b21->renderInternal()\r\nline 195 of /lib/outputrenderers.php: call to Mustache_Template->render()\r\nline 59 of /theme/boost/layout/columns2.php: call to renderer_base->render_from_template()\r\nline 1374 of /lib/outputrenderers.php: call to include()\r\nline 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\r\nline 94 of /local/dash/dashboard.php: call to core_renderer->header()\r\nDid you remember to make the first column something unique in your call to get_records? Duplicate value '0' found in column 'ccp_total_activities'.\r\nline 1256 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()\r\nline 162 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to mysqli_native_moodle_database->get_records_sql()\r\nline 139 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to block_dash\\data_grid\\sql_data_grid->get_records()\r\nline 177 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\data_grid\\sql_data_grid->get_data()\r\nline 213 of /blocks/dash/classes/layout/abstract_layout.php: call to block_dash\\data_source\\abstract_data_source->get_data()\r\nline 243 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\layout\\abstract_layout->export_for_template()\r\nline 125 of /blocks/dash/classes/output/renderer.php: call to block_dash\\data_source\\abstract_data_source->export_for_template()\r\nline 73 of /blocks/dash/classes/block_builder.php: call to block_dash\\output\\renderer->render_data_source()\r\nline 75 of /blocks/dash/block_dash.php: call to block_dash\\block_builder->get_block_content()\r\nline 336 of /blocks/moodleblock.class.php: call to block_dash->get_content()\r\nline 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\r\nline 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()\r\nline 1233 of /lib/blocklib.php: call to block_manager->create_block_contents()\r\nline 643 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()\r\nline 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_head_html()\r\nline 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()\r\nline 31 of data/localcache/mustache/1576769611/boost/__Mustache_e8d8ae873a984614cbb0bd0c2a191036.php: call to Mustache_Context->findDot()\r\nline 13 of data/localcache/mustache/1576769611/boost/__Mustache_1c5088c2b2592d5b071229c5fbd20b21.php: call to __Mustache_e8d8ae873a984614cbb0bd0c2a191036->renderInternal()\r\nline 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_1c5088c2b2592d5b071229c5fbd20b21->renderInternal()\r\nline 195 of /lib/outputrenderers.php: call to Mustache_Template->render()\r\nline 59 of /theme/boost/layout/columns2.php: call to renderer_base->render_from_template()\r\nline 1374 of /lib/outputrenderers.php: call to include()\r\nline 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\r\nline 94 of /local/dash/dashboard.php: call to core_renderer->header()\r\nDid you remember to make the first column something unique in your call to get_records? Duplicate value '0' found in column 'ccp_total_activities'.\r\nline 1256 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()\r\nline 162 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to mysqli_native_moodle_database->get_records_sql()\r\nline 139 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to block_dash\\data_grid\\sql_data_grid->get_records()\r\nline 177 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\data_grid\\sql_data_grid->get_data()\r\nline 213 of /blocks/dash/classes/layout/abstract_layout.php: call to block_dash\\data_source\\abstract_data_source->get_data()\r\nline 243 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\layout\\abstract_layout->export_for_template()\r\nline 125 of /blocks/dash/classes/output/renderer.php: call to block_dash\\data_source\\abstract_data_source->export_for_template()\r\nline 73 of /blocks/dash/classes/block_builder.php: call to block_dash\\output\\renderer->render_data_source()\r\nline 75 of /blocks/dash/block_dash.php: call to block_dash\\block_builder->get_block_content()\r\nline 336 of /blocks/moodleblock.class.php: call to block_dash->get_content()\r\nline 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\r\nline 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()\r\nline 1233 of /lib/blocklib.php: call to block_manager->create_block_contents()\r\nline 643 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()\r\nline 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_head_html()\r\nline 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()\r\nline 31 of data/localcache/mustache/1576769611/boost/__Mustache_e8d8ae873a984614cbb0bd0c2a191036.php: call to Mustache_Context->findDot()\r\nline 13 of data/localcache/mustache/1576769611/boost/__Mustache_1c5088c2b2592d5b071229c5fbd20b21.php: call to __Mustache_e8d8ae873a984614cbb0bd0c2a191036->renderInternal()\r\nline 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_1c5088c2b2592d5b071229c5fbd20b21->renderInternal()\r\nline 195 of /lib/outputrenderers.php: call to Mustache_Template->render()\r\nline 59 of /theme/boost/layout/columns2.php: call to renderer_base->render_from_template()\r\nline 1374 of /lib/outputrenderers.php: call to include()\r\nline 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\r\nline 94 of /local/dash/dashboard.php: call to core_renderer->header()\r\nDid you remember to make the first column something unique in your call to get_records? Duplicate value '0' found in column 'ccp_total_activities'.\r\nline 1256 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()\r\nline 162 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to mysqli_native_moodle_database->get_records_sql()\r\nline 139 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to block_dash\\data_grid\\sql_data_grid->get_records()\r\nline 177 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\data_grid\\sql_data_grid->get_data()\r\nline 213 of /blocks/dash/classes/layout/abstract_layout.php: call to block_dash\\data_source\\abstract_data_source->get_data()\r\nline 243 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\layout\\abstract_layout->export_for_template()\r\nline 125 of /blocks/dash/classes/output/renderer.php: call to block_dash\\data_source\\abstract_data_source->export_for_template()\r\nline 73 of /blocks/dash/classes/block_builder.php: call to block_dash\\output\\renderer->render_data_source()\r\nline 75 of /blocks/dash/block_dash.php: call to block_dash\\block_builder->get_block_content()\r\nline 336 of /blocks/moodleblock.class.php: call to block_dash->get_content()\r\nline 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\r\nline 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()\r\nline 1233 of /lib/blocklib.php: call to block_manager->create_block_contents()\r\nline 643 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()\r\nline 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_head_html()\r\nline 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()\r\nline 31 of data/localcache/mustache/1576769611/boost/__Mustache_e8d8ae873a984614cbb0bd0c2a191036.php: call to Mustache_Context->findDot()\r\nline 13 of data/localcache/mustache/1576769611/boost/__Mustache_1c5088c2b2592d5b071229c5fbd20b21.php: call to __Mustache_e8d8ae873a984614cbb0bd0c2a191036->renderInternal()\r\nline 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_1c5088c2b2592d5b071229c5fbd20b21->renderInternal()\r\nline 195 of /lib/outputrenderers.php: call to Mustache_Template->render()\r\nline 59 of /theme/boost/layout/columns2.php: call to renderer_base->render_from_template()\r\nline 1374 of /lib/outputrenderers.php: call to include()\r\nline 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\r\nline 94 of /local/dash/dashboard.php: call to core_renderer->header()\r\nDid you remember to make the first column something unique in your call to get_records? Duplicate value '1' found in column 'ccp_total_activities'.\r\nline 1256 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()\r\nline 162 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to mysqli_native_moodle_database->get_records_sql()\r\nline 139 of /blocks/dash/classes/data_grid/sql_data_grid.php: call to block_dash\\data_grid\\sql_data_grid->get_records()\r\nline 177 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\data_grid\\sql_data_grid->get_data()\r\nline 213 of /blocks/dash/classes/layout/abstract_layout.php: call to block_dash\\data_source\\abstract_data_source->get_data()\r\nline 243 of /blocks/dash/classes/data_source/abstract_data_source.php: call to block_dash\\layout\\abstract_layout->export_for_template()\r\nline 125 of /blocks/dash/classes/output/renderer.php: call to block_dash\\data_source\\abstract_data_source->export_for_template()\r\nline 73 of /blocks/dash/classes/block_builder.php: call to block_dash\\output\\renderer->render_data_source()\r\nline 75 of /blocks/dash/block_dash.php: call to block_dash\\block_builder->get_block_content()\r\nline 336 of /blocks/moodleblock.class.php: call to block_dash->get_content()\r\nline 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\r\nline 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()\r\nline 1233 of /lib/blocklib.php: call to block_manager->create_block_contents()\r\nline 643 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()\r\nline 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_head_html()\r\nline 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()\r\nline 31 of data/localcache/mustache/1576769611/boost/__Mustache_e8d8ae873a984614cbb0bd0c2a191036.php: call to Mustache_Context->findDot()\r\nline 13 of data/localcache/mustache/1576769611/boost/__Mustache_1c5088c2b2592d5b071229c5fbd20b21.php: call to __Mustache_e8d8ae873a984614cbb0bd0c2a191036->renderInternal()\r\nline 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_1c5088c2b2592d5b071229c5fbd20b21->renderInternal()\r\nline 195 of /lib/outputrenderers.php: call to Mustache_Template->render()\r\nline 59 of /theme/boost/layout/columns2.php: call to renderer_base->render_from_template()\r\nline 1374 of /lib/outputrenderers.php: call to include()\r\nline 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\r\nline 94 of /local/dash/dashboard.php: call to core_renderer->header()"},"comment":{"url":"https://api.github.com/repos/stefanscholz/moodle-block_dash/issues/comments/569799272","html_url":"https://github.com/stefanscholz/moodle-block_dash/issues/46#issuecomment-569799272","issue_url":"https://api.github.com/repos/stefanscholz/moodle-block_dash/issues/46","id":569799272,"node_id":"MDEyOklzc3VlQ29tbWVudDU2OTc5OTI3Mg==","user":{"login":"moodledev","id":46829091,"node_id":"MDQ6VXNlcjQ2ODI5MDkx","avatar_url":"https://avatars1.githubusercontent.com/u/46829091?v=4","gravatar_id":"","url":"https://api.github.com/users/moodledev","html_url":"https://github.com/moodledev","followers_url":"https://api.github.com/users/moodledev/followers","following_url":"https://api.github.com/users/moodledev/following{/other_user}","gists_url":"https://api.github.com/users/moodledev/gists{/gist_id}","starred_url":"https://api.github.com/users/moodledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moodledev/subscriptions","organizations_url":"https://api.github.com/users/moodledev/orgs","repos_url":"https://api.github.com/users/moodledev/repos","events_url":"https://api.github.com/users/moodledev/events{/privacy}","received_events_url":"https://api.github.com/users/moodledev/received_events","type":"User","site_admin":false},"created_at":"2019-12-30T21:18:35Z","updated_at":"2019-12-30T21:18:35Z","author_association":"COLLABORATOR","body":"A committed a fix for this on the day you posted the issue. There's a related github issue for tracking this. Please let me know if the issue persists."}}
{"actor":{"display_login":"moodledev"}}