Erro ao ler a base de dados' - Tema Enlight

Erro ao ler a base de dados' - Tema Enlight

por Jonatas Soares -
Número de respostas: 0

Olá. Baixei e instalei o tema Enlightlite e funcionou perfeitamente. Comprei a versão paga - Enlight- e também instalou certinho, porém, na hora da seleção do tema, dá a informação 'Erro ao ler a base de dados':

Debug info: ERROR: function rand() does not exist
LINE 5: order by rand()) as a
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
SELECT a.category , a.cnt from (
SELECT category , count(category) as cnt FROM mdl_course
WHERE category != '0' and visible = $1
group by category
order by rand()) as a
order by a.cnt desc LIMIT 4
[array (
0 => '1',
)]
Error code: dmlreadexception
Stack trace:
  • line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
  • line 920 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
  • line 192 of /theme/enlight/classes/output/core_renderer.php: call to pgsql_native_moodle_database->get_records_sql()
  • line 144 of /theme/enlight/classes/output/core_renderer.php: call to theme_enlight\output\core_renderer->top_course_menu()
  • line 89 of /theme/enlight/classes/output/core_renderer.php: call to theme_enlight\output\core_renderer->course_menu()
  • line 49 of /theme/enlight/classes/output/core_renderer.php: call to theme_enlight\output\core_renderer->custom_menu_render()
  • line 49 of /theme/enlight/layout/includes/header.php: call to theme_enlight\output\core_renderer->primarymenu()
  • line 26 of /theme/enlight/layout/columns2.php: call to require_once()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 51 of /theme/index.php: call to core_renderer->header()
Alguém consegue me ajudar? Eu preciso muito que esse tema funcione!! =(

Desde já agradeço!
Contagem das avaliações:  -