Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade error on latest #357

Closed
x-iy opened this issue Sep 4, 2024 · 1 comment
Closed

Upgrade error on latest #357

x-iy opened this issue Sep 4, 2024 · 1 comment
Assignees

Comments

@x-iy
Copy link
Contributor

x-iy commented Sep 4, 2024

On mysql 8, php 7.4 get error on Moodle upgrade:

-->tool_excimer
!!! Error writing to database !!!
!! You can't specify target table 'mdl_tool_excimer_page_groups' for update in FROM clause
DELETE FROM mdl_tool_excimer_page_groups
                 WHERE id NOT IN (
                     SELECT MIN(id)
                       FROM mdl_tool_excimer_page_groups
                   GROUP BY LOWER(name), month
                 )
[array (
)]
Error code: dmlwriteexception !!
!! Stack trace: * line 497 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
* line 1181 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
* line 506 of /admin/tool/excimer/db/upgrade.php: call to mysqli_native_moodle_database->execute()
* line 789 of /lib/upgradelib.php: call to xmldb_tool_excimer_upgrade()
* line 1967 of /lib/upgradelib.php: call to upgrade_plugins()
* line 274 of /admin/cli/upgrade.php: call to upgrade_noncore()
 !!
@x-iy
Copy link
Contributor Author

x-iy commented Sep 6, 2024

Fixed with #358

@x-iy x-iy closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant