nextcloud / integration_moodle

🎓 Moodle integration into Nextcloud
GNU Affero General Public License v3.0
16 stars 5 forks source link

Problem fetching moodle notifications #13

Open hiFloh opened 3 years ago

hiFloh commented 3 years ago

Iadded my universitys moodle to nextcloud. now whenever i visit the dashboard I only see 3 empty messages grafik and in the error log appear Illegal string offset 'type' Errors nextcloud log.txt The universites moodle version appears to be 35.11

julien-nc commented 3 years ago

Hi, thanks for the bug report. Could you try latest nightly build? The app is now more defensive when getting recent items.

I'm not sure why this happens to you. It could be a difference in API responses between your Moodle version and the one I used while developing (3.9.1 - 2020061501.00).

hiFloh commented 3 years ago

Thanks for the response. I've tried your build an now I'm only getting one type of string offset error. (timeaccess) And in the dashboard it says there are no moodle notifications. nextcloud.log.txt

julien-nc commented 3 years ago

Thanks for the feedback. A new nightly build has been released. It should be fine now. It seems your Moodle is never providing the 'timeaccess' field for recent items. Now it's supposed not to crash and not to ignore those items.

hiFloh commented 3 years ago

I've tried version 0.0.6-2-nightly and now I get the Illegal string offset error for 'time' and 'type'.