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

Error on moodle 3.11 (php 8) #44

Open
Mikkeljeppesen1 opened this issue Mar 7, 2023 · 2 comments
Open

Error on moodle 3.11 (php 8) #44

Mikkeljeppesen1 opened this issue Mar 7, 2023 · 2 comments

Comments

@Mikkeljeppesen1
Copy link

We have trouble with the plugin on moodle 3.11.9 (2021051709) with the version of local_pages being 2021110400

We got the problem when we upgraded the php version to php 8.0. Now were not able to edit or add a page (see the image below for debug info)

debug

@leonstr
Copy link

leonstr commented Apr 29, 2023

Try editing local/pages/forms/edit.php changing line 237 from:

        $records = json_decode($this->_pagedata);

to:

        $records = empty($this->_pagedata) ? array() : json_decode($this->_pagedata);

@leonstr
Copy link

leonstr commented Apr 29, 2023

I see PR #42 also includes a fix for this.

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

2 participants