moodleou / moodle-mod_forumng

ForumNG forum module for Moodle
19 stars 20 forks source link

PHP 8 Deprecation Issue #79

Closed jcmoodle closed 1 year ago

jcmoodle commented 1 year ago

We have a site with the plugin installed and try and run a Moodle upgrade using PHP 8.0 and receive the following errors:

Deprecated: Required parameter $timestart follows optional parameter $id in [path]/blocks/fn_marking/lib.php on line 3889
PHP Deprecated:  Required parameter $userid follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254

Deprecated: Required parameter $userid follows optional parameter $cmids in [path]/http/mod/forumng/mod_forumng.php on line 3254
PHP Deprecated:  Required parameter $unread follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254

Deprecated: Required parameter $unread follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254
PHP Deprecated:  Required parameter $groups follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254

Deprecated: Required parameter $groups follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254
PHP Deprecated:  Required parameter $aagforums follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254

Deprecated: Required parameter $aagforums follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254
PHP Deprecated:  Required parameter $viewhiddenforums follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254

Deprecated: Required parameter $viewhiddenforums follows optional parameter $cmids in [path]/mod/forumng/mod_forumng.php on line 3254
PHP Warning:  file_put_contents(/mnt/data/sites/elonu41/tmp/localcache/bootstrap.php.tmp64242d8c49fa3): Failed to open stream: No such file or directory in [path]/lib/setuplib.php on line 808

Please advise.

jason-platts commented 1 year ago

Are you using the latest code from this repo, as this issue has been fixed for some time here?

jcmoodle commented 1 year ago

Jason,

My apologies, I was informed that everything was up to date on the site before being handed over to our department. It was not the case. I unfortunately did not thoroughly vet the plugins on the site before contacting you. My mistake, please accept my apologies on contacting you about this issue.

Thank you, James Costello DevOps Engineer

Moodle HQ - moodle.com [image: Moodle - Empowering educators to improve our world]

On Wed, Apr 12, 2023 at 9:35 AM Jason Platts @.***> wrote:

Are you using the latest code from this repo, as this issue has been fixed for some time here?

— Reply to this email directly, view it on GitHub https://github.com/moodleou/moodle-mod_forumng/issues/79#issuecomment-1505291222, or unsubscribe https://github.com/notifications/unsubscribe-auth/A62NLRZVOIAXCITLFXHAS7TXA2VQ3ANCNFSM6AAAAAAWL5CHIU . You are receiving this because you authored the thread.Message ID: @.***>