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

Unknown exception related to local files #369

Closed
mdjnelson opened this issue Aug 11, 2020 · 3 comments
Closed

Unknown exception related to local files #369

mdjnelson opened this issue Aug 11, 2020 · 3 comments

Comments

@mdjnelson
Copy link
Owner

See https://moodle.org/mod/forum/discuss.php?d=402087.

@valeriia-s
Copy link

Hi Mark! We recreated this error when we had an image element type, it had several images but no image was selected from the dropdown.

Here's an output buffer:

Output buffer:

Notice:
Undefined property: stdClass::$filearea in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 427


Notice:
Undefined property: stdClass::$itemid in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 428


Notice:
Undefined property: stdClass::$filepath in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 429


Notice: Undefined property: stdClass::$filename in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 430


Notice: Undefined property: stdClass::$filearea in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 435


Notice: Undefined property: stdClass::$itemid in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 436


Notice: Undefined property: stdClass::$filepath in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 437


Notice: Undefined property: stdClass::$filename in
/var/www/data//public_html/moodle/mod/customcert/element/image/classes/element.php on line 438

@mdjnelson
Copy link
Owner Author

Thanks for that information!

@mdjnelson mdjnelson moved this from To do to In progress in 3.8.5, 3.7.5, 3.6.7, 3.5.9 Sep 20, 2020
@mdjnelson
Copy link
Owner Author

Creating fix now. Again, thanks for the comment. Made it easy to replicate.

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

No branches or pull requests

2 participants