bozoh / moodle-mod_simplecertificate

It's NOT RECOMMENDED to install version below 2.2.6 (MOODLE_31), due a security issues See more in README
17 stars 44 forks source link

Error while creating Simple Certificate activity in moodle 3.5.1 #206

Closed sudhanshu0044 closed 6 years ago

sudhanshu0044 commented 6 years ago

While creating activity using "Simple Certificate" in moodle 3.5.1 I am facing issue in it. Error code I am receiving is

"Exception - Argument 1 passed to file_get_all_files_in_draftarea() must be of the type integer, null given, called in [dirroot]/lib/form/filemanager.php on line 336"

I have attached error screen below. screenshot from 2018-07-31 17-34-57

Steps to reproduce the behavior:

  1. Install Simple Certificate plugin in moodle 3.5.1.
  2. Create an activity using simple certificate.
  3. After filling the user fields & finally click on Saving & changes
  4. See error

Here we expect that activity will successfully created.

bozoh commented 6 years ago

i can't reproduce this, have created many certificates with images, without images and works as expected, and this error messages isn't in the plugins files so it's very difficult to find where the error is without more info.

  1. Which plugin version ?
  2. Which php version?
  3. can you turn on moodle's debug mode, and post the full error log ?
sudhanshu0044 commented 6 years ago
  1. I am using "Simple Certificate 2.2.8 (2018080400) - on Moodle 3.5"
  2. Using php 7.1 version
  3. Turning on the debug mode I am receiving error screenshot from 2018-08-08 11-12-36
bozoh commented 6 years ago

i created a issue report in moodle tracker site, it's seems not be realted to my code but some changes in moodle_34 and moodle_35

please vote into it https://tracker.moodle.org/browse/MDL-63180

bozoh commented 6 years ago

i created a issue report in moodle tracker site, it's seems not be realted to my code but some changes in moodle_34 and moodle_35

please vote into it https://tracker.moodle.org/browse/MDL-63180