PHP warnings in newer Moodle versions

PHP warnings in newer Moodle versions

by Martin Greenaway -
Number of replies: 2

Hi there,

I was using a 3.7.1 site today for some testing/dev work and I'm noticing a lot of messages in the apache log from mod_facetoface, even if I'm not actively using that module.

[Mon Mar 23 13:29:02.300560 2020] [php7:warn] [pid 11140] [client 158.255.12.25:62036] PHP Warning:
"continue" targeting switch is equivalent to "break".
Did you mean to use "continue 2"? in /var/www/html/moodle/mod/facetoface/lib.php on line 2426, referer:
https://url/admin/index.php?cache=1
[Mon Mar 23 13:29:02.300701 2020] [php7:warn] [pid 11140] [client 158.255.12.25:62036] PHP Warning:
"continue" targeting switch is equivalent to "break".
Did you mean to use "continue 2"? in /var/www/html/moodle/mod/facetoface/lib.php on line 2434, referer:
https://url/admin/index.php?cache=1
[Mon Mar 23 13:29:02.301364 2020] [php7:warn] [pid 11140] [client 158.255.12.25:62036] PHP Warning:
"continue" targeting switch is equivalent to "break".
Did you mean to use "continue 2"? in /var/www/html/moodle/mod/facetoface/lib.php on line 3851, referer:
https://url/admin/index.php?cache=1

This is with the most recent 3.4.3 version of the plugin.  Is there any advice to quieten this down?

Average of ratings: -
In reply to Martin Greenaway

Re: PHP warnings in newer Moodle versions

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Martin,
what version of PHP are you using? 7.3?

Look at MDL-63422: it looks like that third party plug-in has the same issue already fixed in Moodle core. You should drop a new one into https://github.com/catalyst/moodle-mod_facetoface/issues ?

HTH,
Matteo

Average of ratings: Useful (2)
In reply to Matteo Scaramuccia

Re: PHP warnings in newer Moodle versions

by Martin Greenaway -

Yes, this is 7.3. Will raise an issue on the catalyst github as suggested.