Open cperves opened 1 year ago
After this I finally update but hafd the following warning
<div class="box py-3 generalbox boxaligncenter"><p>Compilatio tables structure has been checked.</p></div>PHP Warning: foreach() argument must be of type array|object, null given in /var/www/moodle_layerunistra404/plagiarism/compilatio/lib.php on line 2591
Warning: foreach() argument must be of type array|object, null given in /var/www/moodle_layerunistra404/plagiarism/compilatio/lib.php on line 2591
PHP Warning: Trying to access array offset on value of type bool in /var/www/moodle_layerunistra404/plagiarism/compilatio/helper/ws_helper.php on line 49
Warning: Trying to access array offset on value of type bool in /var/www/moodle_layerunistra404/plagiarism/compilatio/helper/ws_helper.php on line 49
Hello, anybody on this issue?
Hello,
I've fixed the null value insert that was causing an error in update_account_expiration_date on 2.7.1 branch (commit)
For the foreach warning I don't see any foreach on line 2591, can you give us more details to fix this?
Sorry for the late response but I didn't see issue notification
I think the wrning is due to
if ($news !== false) {
in lib.php in compilatio_update_news
function , same problem that with $expirationdate
You need to change it by if(!empty(($news)){
Regards
Céline
Hello, I tried to upgrade to 2.7 version from 2.6.15 on a 4.1 Moodle with php 8.1 On my local instance Compilatiois not enabled (dev version) while upgrading I had the following error
I correct this by patching compilatio/lib.php
if (empty($expirationdate))
replaceif ($expirationdate === false))