Error al iniciar - Plugins solicitando atención

Error al iniciar - Plugins solicitando atención

de Jorge Casali -
Número de respuestas: 1

Buenas soy Jorge este es mi primer post, desde ya agradesco a cualquiera que me pueda ayudar.

Cuando inicio mi sitio moodle como admin, me sale un cartel que me dice COMPRANDO PLUGINS , pongo imagen abajo.Error Plugin

Abajo aparece un boton que dice ACTUALIZAR BASE DE DATOS DE MOODLE AHORA, y no tengo mas opciones, si pico ahi me da un error que dice

tool_usertours

Error de ejecución DDL sql

Alguno sabes como hacer para solucionar este.

Agrego que la pagina para los usuarios sigue funcionando.


Saludos.

Promedio de valoraciones: -
En respuesta a Jorge Casali

Re: Error al iniciar - Plugins solicitando atención

de Alejandro Orviz -

Hola,

Tengo un error parecido, a ver si alguien nos puede echar una mano.

Actualizando de Moodle 3.0 (en la cual no tenía instalado usertours) a 3.3 me da el siguiente error:

Actualizando la versión

tool_usertours

Error de ejecución DDL sql

Más información sobre este error

Debug info: Table 'mdl_tool_usertours_tours' already exists
CREATE TABLE mdl_tool_usertours_tours (
id BIGINT(10) NOT NULL auto_increment,
name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
description LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
pathmatch VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci,
enabled TINYINT(1) NOT NULL DEFAULT 0,
sortorder BIGINT(10) NOT NULL DEFAULT 0,
configdata LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
CONSTRAINT PRIMARY KEY (id)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE = utf8_general_ci 
COMMENT='List of tours'
;
CREATE TABLE mdl_tool_usertours_steps (
id BIGINT(10) NOT NULL auto_increment,
tourid BIGINT(10) NOT NULL,
title LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
content LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
targettype TINYINT(2) NOT NULL,
targetvalue LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
sortorder BIGINT(10) NOT NULL DEFAULT 0,
configdata LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_tooluserstep_tousor2_ix (tourid, sortorder)
, KEY mdl_tooluserstep_tou2_ix (tourid)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE = utf8_general_ci 
COMMENT='Steps in an tour'
Error code: ddlexecuteerror
×Stack trace:
  • line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
  • line 1000 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
  • line 425 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
  • line 370 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
  • line 526 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
  • line 1754 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 699 of /admin/index.php: call to upgrade_noncore()

He probado a renombrar las tablas a las que hace mención, pero entonces al pulsar el botón CONTINUAR me da el siguiente error:

Error al leer de la base de datos 

Más información sobre este error

× Debug info: Table 'tcaula.mdl_tool_usertours_tours' doesn't exist
SELECT t.*
FROM mdl_tool_usertours_tours t
WHERE t.enabled = 1
AND t.id IN (SELECT s.tourid FROM mdl_tool_usertours_steps s GROUP BY s.tourid)
ORDER BY t.sortorder ASC
[array (
)]
Error code: dmlreadexception
× Stack trace:
  • line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 1175 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 69 of /admin/tool/usertours/classes/cache.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 82 of /admin/tool/usertours/classes/cache.php: call to tool_usertours\cache::get_enabled_tourdata()
  • line 580 of /admin/tool/usertours/classes/manager.php: call to tool_usertours\cache::get_matching_tourdata()
  • line 565 of /admin/tool/usertours/classes/manager.php: call to tool_usertours\manager::get_matching_tours()
  • line 505 of /admin/tool/usertours/classes/helper.php: call to tool_usertours\manager::get_current_tour()
  • line 75 of /admin/tool/usertours/lib.php: call to tool_usertours\helper::bootstrap()
  • line 1180 of /lib/outputrenderers.php: call to tool_usertours_before_footer()
  • line 437 of /lib/outputrenderers.php: call to core_renderer->footer()
  • line 226 of /admin/renderer.php: call to plugin_renderer_base->__call()
  • line 684 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()

De manera temporal he borrado el directorio usertours del directorio /admin/tool y en principio funciona, pero como ahora usertours forma parte del core de moodle no se hasta que punto me va a dar algún error en algún sitio. 


A Alguien se le ocurre alguna solución?


Muchas gracias