XOOPS/XoopsCore25

Error in upgrade file 2.4.x-to-2.5.0

Closed this issue · 1 comments

I recently attempted to migrate a small Xoops site from version 2.0.16 to 2.5.11.

However, I found an issue in an upgrade script.

The issue is with the file upgrade/upd-2.4.x-to-2.5.0/index.php, starting from line 145:

public function apply_templates() { include_once __DIR__ . '/../modules/system/xoops_version.php';

The include line needs to be replaced with:

include_once __DIR__ . '/../../modules/system/xoops_version.php';

Otherwise, the script looks for the modules folder within the upgrade directory, where it normally isn’t present. As a result, $modversion is not defined, the rest of the function does not execute, and the upgrade process loops indefinitely on the upd-2.4.x-to-2.5.0 step.

This issue seems to be present in the 2.5.11 stable release, as well as in the following beta versions.

Thank you so much for reporting, I'll change it to:

include_once XOOPS_ROOT_PATH . '/modules/system/xoops_version.php';

mambax7@b945094