mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #46112
[Bug 1741814] Re: error when navigating to My groups page
It looks like it is a php 7.1 issue.
The line that is throwing the error is trying to do an arithmetic
operation on a string that it's not a number:
$offset = (int)($offset / $groupsperpage) * $groupsperpage;
where $offset='all'
And according to the php documentation, with 7.1 we will receive these
warnings when performing an arithmetic operation trying to coerse
invalid strings:
http://php.net/manual/en/migration71.other-changes.php
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1741814
Title:
error when navigating to My groups page
Status in Mahara:
New
Bug description:
This may be related to PHP 7.1 as it seems to be peculiar to my
system. But on the current master branch when I choose Groups from the
main menu, I see an error and a call stack. It doesn't seem to cause
any other problems.
I looked into it and found that the code is trying to divide the word
'all' by 10, hence the error, but I'm not sure why this is.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1741814/+subscriptions
References