Upgrading moodle 2.5 to 2.6 with subpage mod

Upgrading moodle 2.5 to 2.6 with subpage mod

Tony Neath གིས-
Number of replies: 4

I am using a test environment to see if it is possible to upgrade my existing Moodle 2.5 to Moodle 2.6

However I am having problems with courses that have the subpage module in use.

There are 2 versions of subpage available to me the one that is on our current Moodle and is shown as for moodle 2.4+ And the current one on GITHUB this is for Moodle 2.6+


I have tried 3 methods of upgrade

1. Upgrade subpage from 2.4+ to 2.6+ before upgrading moodle from 2.5 to 2.6

2. Upgrade subpage from 2.4+ to 2.6+ during the moodle upgrade process.

3. Upgrade subpage from 2.4+ to 2.6+ after upgrading moodle from 2.5 to 2.6

 After any of these methods or not upgrading subpage at all. When I try to access a course in Moodle 2.6 with subpage in use I get a message saying

Can not find data record in database table subpage.

Attachment subpage error.PNG
དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Tony Neath

Re: Upgrading moodle 2.5 to 2.6 with subpage mod

Howard Miller གིས-
Core developers གི་པར Documentation writers གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར

Are we talking about this - https://github.com/moodleou/moodle-mod_subpage ??

There are branches for every version of Moodle 2 (up to 2.7)

In reply to Howard Miller

Re: Upgrading moodle 2.5 to 2.6 with subpage mod

Tony Neath གིས-

I have had a look and it appears the version of subpage I have upgraded to is the latest 2.7 version. It shows as 2014092900 in the Moodle plugins page.

It also says in the readme that it works with Moodle 2.6+

so should I try this version of subpage and use Moodle 2.7 or should I try using the 2.6 version from github and moodle 2.6

I have no reason to use Moodle 2.6 other than it seemed more compatible with subpage.

In reply to Tony Neath

Re: Upgrading moodle 2.5 to 2.6 with subpage mod

Howard Miller གིས-
Core developers གི་པར Documentation writers གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར

Given that they appear to exist I would use the appropriate version (for your ideal Moodle version) from GitHub. If it fails, report the circumstances in the issues section in GitHub. 

In reply to Howard Miller

Re: Upgrading moodle 2.5 to 2.6 with subpage mod

Tony Neath གིས-

This problem has now been resolved. A row in mdl_course_modules contained a null. This was ignored by Moodle 2.5 but caused the subpage error in 2.6 and 2.7

Thanks to Sam Marshall who provided an SQL Query to find it.

See https://github.com/moodleou/moodle-mod_subpage/issues/9