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

Install on Moodle 3.6 fails with PHP 7.0 #44

Open
TarjanPeter opened this issue Sep 4, 2019 · 4 comments

Comments

@TarjanPeter
Copy link

commented Sep 4, 2019

I'm trying to add this on a fresh install of Moodle 3.6 on Debian. I'm getting the following errors.

Fullscreen capture 2019 09 04  163031

@timhunt

This comment has been minimized.

Copy link
Member

commented Sep 4, 2019

What version of PHP are you using?

@TarjanPeter

This comment has been minimized.

Copy link
Author

commented Sep 4, 2019

7.0

@timhunt

This comment has been minimized.

Copy link
Member

commented Sep 4, 2019

Drat! public const is a PHP 7.1 thing, and I had forgotten that Moodle 3.6 is supposed to support PHP 7.0.

If you need a quick fix, then can you edit these three lines (https://github.com/moodleou/moodle-qtype_pmatch/blob/master/classes/local/spell/qtype_pmatch_spell_checker.php#L47) to delete teh word public?

Or, can you upgrade to a newer version of PHP?

@TarjanPeter

This comment has been minimized.

Copy link
Author

commented Sep 5, 2019

Well, the install at least worked with the quick fix.
On the other hand, when I go to "Manage Question Types", all I get is:
Exception - syntax error, unexpected '?'
Removing pmatch gets rid of the error too.

Upgrading php is unfortunately not an option.

@timhunt timhunt changed the title Install on Moodle 3.6 fails Install on Moodle 3.6 fails with PHP 7.0 Sep 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.