crond-jaist / cylms

CyLMS: Cybersecurity Training Support for LMS
BSD 3-Clause "New" or "Revised" License
15 stars 11 forks source link

Exception - Cannot access empty property !!! #1

Closed kbsenthilkumar closed 5 years ago

kbsenthilkumar commented 5 years ago

I am getting the error message below while trying to add example yaml provided with CyLMS to Moodle. Please help.

INFO: cylms.py: Convert training content file '/root/cylms/training_example.yml' to SCORM package.

!!! Exception - Cannot access empty property !!!

crond-jaist commented 5 years ago

Sorry for the late reply, we somehow missed your issue. Do you still have the problem mentioned above? I suspect it's a configuration problem, as there is perhaps no course with id '2' in your Moodle setup. Could you check this?

kbsenthilkumar commented 5 years ago

I have overcome the error by adding the line below in ActivityAdd.php in Moosh.

if($name!=""){ $moduledata->$name = $value; }

The line is added in the method execute() in the class ActivityAdd.

I don't know whether it is the correct way.

Sent from Outlookhttp://aka.ms/weboutlook


From: Cyber Range Organization and Design Chair notifications@github.com Sent: Wednesday, June 12, 2019 5:31 AM To: crond-jaist/cylms cylms@noreply.github.com Cc: kbsenthilkumar kbsenthilkumar@outlook.com; Author author@noreply.github.com Subject: Re: [crond-jaist/cylms] Exception - Cannot access empty property !!! (#1)

Sorry for the late reply, we somehow missed your issue. Do you still have the problem mentioned above? I suspect it's a configuration problem, as there is perhaps no course with id '2' in your Moodle setup. Could you check this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/crond-jaist/cylms/issues/1?email_source=notifications&email_token=AB6KC7WXSNZ5YWVLC52JNE3P2A4GTA5CNFSM4HCJLG6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXO3DKA#issuecomment-501068200, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB6KC7TJ7HKN44ET3U2S3R3P2A4GTANCNFSM4HCJLG6A.

crond-jaist commented 5 years ago

I am glad to hear that the issue is solved, and it seems to have been related to Moosh. Thanks for sending us the solution, but we have not encountered this kind of issue, so I cannot confirm whether your solution is correct or not.