Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when submitting a onenote assignment containing an image #2807

Open
SYoung3000 opened this issue Mar 7, 2025 · 0 comments
Open

error when submitting a onenote assignment containing an image #2807

SYoung3000 opened this issue Mar 7, 2025 · 0 comments

Comments

@SYoung3000
Copy link

We've had a report from a customer who has observed a replicatable bug - this has occured on 4.2 and 4.5 with various releases of the onenote submission plugin, though we've only recently identified how to replicate issue on the latest release of onenote.

Broadly it appears that when we submit to an assignment and it contains text, all is fine. When the submission contains an image, we receive the following error.

Note that this only happens when trying to view the submission. When the student tries to edit their submission, it's fine.

Microsoft OneNote
local_onenote
4.5.1
2024100705

OneNote submissions
assignsubmission_onenote
4.5.1
2024100705

Exception - count(): Argument #1 ($value) must be of type Countable|array, string given
More information about this error
Debug info:
Error code: generalexceptionmessage×Dismiss this notification
Stack trace:
line 1029 of /local/onenote/classes/api/base.php: TypeError thrown
line 1029 of /local/onenote/classes/api/base.php: call to count()
line 695 of /local/onenote/classes/api/base.php: call to local_onenote\api\base->create_postdata_from_folder()
line 806 of /local/onenote/classes/api/base.php: call to local_onenote\api\base->prepare_submission_postdata()
line 43 of /local/onenote/onenote_actions.php: call to local_onenote\api\base->get_page()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant