I'm an admitted PHP novice, but I'm wondering if these errors I'm seeing in the Apache logs might have anything to do with the problem:

[Tue Oct 23 00:56:06.695438 2018] [:error] [pid 6569] [client 86.178.195.186:51205] PHP Notice:  Undefined offset: 0 in /var/www/data/webpa211/includes/classes/class_dao.php on line 225, referer: https://webpal.shef.ac.uk/tutors/assessments/reports/index.php?a=BD210F06-0712-3975-6D88-35C94C1ABF0F&md=1540251357&tab=marked&y=2018

[Tue Oct 23 00:56:06.698241 2018] [:error] [pid 6569] [client 86.178.195.186:51205] PHP Notice:  Only variables should be assigned by reference in /var/www/data/webpa211/includes/classes/class_xml_parser.php on line 98, referer: https://webpal.shef.ac.uk/tutors/assessments/reports/index.php?a=BD210F06-0712-3975-6D88-35C94C1ABF0F&md=1540251357&tab=marked&y=2018

As far as I can tell, there haven't been any significant configuration changes to our system. (There've been a couple of updates to MySQL and libcurl, but they both postdate the errors seen above.)


--
Tom Salyers
VLE Developer

The University of Sheffield
Corporate Information & Computing Services (CiCS)
10-12 Brunswick Street
Sheffield, S10 2FN
Tel:  0114 222 1141

On Fri, Nov 2, 2018 at 10:46 AM, FINDLAY Mark <[log in to unmask]> wrote:

We've had a look on the database and it turns out the user has had the
student role on 2 assessments. Roles look right in Learn and on the
assessment.

Thank you for the suggestions folks, we'll change 'all' roles to tutor,
and see if that fixes the issue. If it does I'll ask our developer if
he's willing to have a go at a fix, and push back to community (he's on
leave just now so I can't commit to that just now).

Mark


On 01/11/2018 16:27, Stephen P Vickers wrote:
> Mark, the other thing to check is the role the user has in Learn and
> that this role has been mapped to an LTI Instructor role when setting
> up the WebPA tool.  For example, if the user is a Teaching Assistant
> in Learn, make sure that Teaching Assistants are mapped as Instructors
> in the WebPA LTI tool configuration.
>
> Stephen
>
> On 01/11/18 15:54, FINDLAY Mark wrote:
>> If this turns out to be that issue, we've asked our apps folks to check
>> database for user type in all courses, rather than just the affected
>> one. We have a developer who has released an updated version of WebPA
>> for php v7 recently, I'll ask him to have a looksee...
>>
>> Mark.
>>
>>
>> On 01/11/2018 15:46, Stephen P Vickers wrote:
>>> Has the bug been reported anywhere? This is the first time I have
>>> heard about it.  That is the first step in getting it fixed. Once
>>> known within the community I suspect there will be someone willing to
>>> fix it. Details of how to replicate the issue are always valuable as
>>> they can save a lot of time in identifying the cause. Reports should
>>> also include details of the versions of code being used.
>>>
>>> Stephen
>>>
>>> On 01/11/18 15:38, Danny Monaghan wrote:
>>>> Given the lack of updates for years, how likely is a big fix going to
>>>> be?
>>>>
>>>> Danny
>>>>
>>>> *Danny Monaghan*MEd, FHEA_
>>>> _Senior Learning Technologist
>>>>
>>>> __
>>>>
>>>> Digital Learning Team
>>>> Academic Programmes and Student Engagement
>>>> University of Sheffield
>>>> 210 Portobello
>>>> Sheffield
>>>> S1 4AE
>>>>
>>>> __
>>>>
>>>> Tel: 0114 222 0403 <tel:0114%20222%200403>_
>>>> _Mob: 07595 462281 <tel:07595%20462281>
>>>>
>>>> __
>>>>
>>>> Learning Technologies Team of the Year 2017
>>>> <https://www.sheffield.ac.uk/staff/news/technology-enhanced-learning-team-award-1.727797>
>>>>
>>>>
>>>> Learning Technologies blog
>>>> <http://learningtechnologiesteam.blogspot.com/>
>>>>
>>>> __
>>>>
>>>> Please think green!  Only print this email if you need to
>>>>
>>>>
>>>>
>>>> On Thu, 1 Nov 2018 at 14:59, Stephen P Vickers
>>>> <[log in to unmask]com
>>>> <mailto:stephen@spvsoftwareproducts.com>> wrote:
>>>>
>>>>      This sounds like a serious bug and the suggested workaround
>>>> presumably
>>>>      means that the user will be given tutor access to modules on
>>>> which they
>>>>      should only be a student.  Has anyone submitted a fix for this
>>>> bug?
>>>>
>>>>      Stephen
>>>>
>>>>      On 01/11/18 14:47, Danny Monaghan wrote:
>>>>       > This is a bug that we've suffered with for years. If anyone
>>>> with
>>>>      a tutor
>>>>       > role has ever been enrolled as a student then they lose their
>>>>      tutor view
>>>>       > to everything.
>>>>       >
>>>>       > To fix it you have to change /pa2_user_module.user_type/ 
>>>> to 'T'
>>>>      for all
>>>>       > instances for that user, then they get the tutor view back.
>>>>       >
>>>>       > Danny
>>>>       >
>>>>       > *Danny Monaghan*MEd, FHEA_
>>>>       > _Senior Learning Technologist
>>>>       >
>>>>       > __
>>>>       >
>>>>       > Digital Learning Team
>>>>       > Academic Programmes and Student Engagement
>>>>       > University of Sheffield
>>>>       > 210 Portobello
>>>>       > Sheffield
>>>>       > S1 4AE
>>>>       >
>>>>       > __
>>>>       >
>>>>       > Tel: 0114 222 0403 <tel:0114%20222%200403>_
>>>>       > _Mob: 07595 462281 <tel:07595%20462281>
>>>>       >
>>>>       > __
>>>>       >
>>>>       > Learning Technologies Team of the Year 2017
>>>>       >
>>>> <https://www.sheffield.ac.uk/staff/news/technology-enhanced-learning-team-award-1.727797>
>>>>
>>>>       >
>>>>       > Learning Technologies blog
>>>>      <http://learningtechnologiesteam.blogspot.com/>
>>>>       >
>>>>       > __
>>>>       >
>>>>       > Please think green!  Only print this email if you need to
>>>>       >
>>>>       >
>>>>       >
>>>>       > On Thu, 1 Nov 2018 at 13:51, FINDLAY Mark
>>>> <[log in to unmask]
>>>>      <mailto:[log in to unmask]>
>>>>       > <mailto:[log in to unmask] <mailto:[log in to unmask]>>>
>>>> wrote:
>>>>       >
>>>>       >
>>>>       >     Hi,
>>>>       >
>>>>       >     We have a user who has set up a WebPA assessment in our
>>>> Learn
>>>>      instance.
>>>>       >     In learn he can edit the assessment as you would expect,
>>>>      however in
>>>>       >     WebPA he appears to have a student view, and gets a
>>>> message
>>>>      informing
>>>>       >     him he has no assessments available, nor the ability to
>>>>      create any.
>>>>       >
>>>>       >     If we query the user type in the database for this
>>>> user, he
>>>>      returns as
>>>>       >     user_type: T which is presumably tutor, and what is
>>>> expected.
>>>>       >
>>>>       >     Any ideas in the hive as to what might be happening here?
>>>>       >
>>>>       >     Thanks in advance,
>>>>       >     Mark.
>>>>       >
>>>>       >     --
>>>>       >     Mark Findlay
>>>>       >     Service Manager
>>>>       >     Digital Learning Applications & Media
>>>>       >     University of Edinburgh
>>>>       >
>>>>       >     Tel: (0131 6) 51 6543
>>>>       >     Email: [log in to unmask]
>>>> <mailto:[log in to unmask]>
>>>>      <mailto:[log in to unmask] <mailto:[log in to unmask]>>
>>>>       >
>>>>       >     Team blog: thinking.is.ed.ac.uk/dlam/
>>>>      <http://thinking.is.ed.ac.uk/dlam/>
>>>>       >     <http://thinking.is.ed.ac.uk/dlam/>
>>>>       >
>>>>       >
>>>>       >     --
>>>>       >     The University of Edinburgh is a charitable body,
>>>> registered in
>>>>       >     Scotland, with registration number SC005336.
>>>>       >
>>>>       >
>>>>       >
>>>>       >
>>>>   ########################################################################
>>>>
>>>>       >
>>>>       >     To unsubscribe from the WEBPA list, click the following
>>>> link:
>>>>       > https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1
>>>>       >
>>>>       >
>>>>       >
>>>> ------------------------------------------------------------------------
>>>>
>>>>       >
>>>>       > To unsubscribe from the WEBPA list, click the following link:
>>>>       > https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1
>>>>       >
>>>>
>>>> ########################################################################
>>>>
>>>>
>>>>      To unsubscribe from the WEBPA list, click the following link:
>>>> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> To unsubscribe from the WEBPA list, click the following link:
>>>> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1
>>>>
>>>
>>> ########################################################################
>>>
>>>
>>> To unsubscribe from the WEBPA list, click the following link:
>>> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1
>>
>
> ########################################################################
>
> To unsubscribe from the WEBPA list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1

--
-----------------
Service Manager
Digitial Learning Applications and Media
University of Edinburgh


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



########################################################################

To unsubscribe from the WEBPA list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1



To unsubscribe from the WEBPA list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=WEBPA&A=1