- Posts: 4
How To / General
Course mods returning empty if user is enrolled
- educore
- Topic Author
- Offline
- New Member
-
Less
More
9 years 9 months ago #1
by educore
Course mods returning empty if user is enrolled was created by educore
Hi,
I am new to Moodle and Joomdle. I am stuck at a very confusing point, where course mods are not showing if a user has enrolled in that course. Lets say I am enrolled in Course A. Then when i go to my courses page and click on Course A to go its detail page, it shows me an empty page.
Then for debugging, i went to /components/com_joomdle/views/course/ and edited the file view.html.php. In this file, this piece of code
is having issues. If the use the call method with username parameter as empty, it will load the course content, but if i pass the current logged in username, it return empty array.
Can you help me out where I am missing something or where i am wrong?
I am new to Moodle and Joomdle. I am stuck at a very confusing point, where course mods are not showing if a user has enrolled in that course. Lets say I am enrolled in Course A. Then when i go to my courses page and click on Course A to go its detail page, it shows me an empty page.
Then for debugging, i went to /components/com_joomdle/views/course/ and edited the file view.html.php. In this file, this piece of code
Code:
if ($this->is_enroled)
$this->mods = JoomdleHelperContent::call_method ( 'get_course_mods', (int) $id, $username);
else
$this->mods = JoomdleHelperContent::call_method ( 'get_course_mods', (int) $id, '');
Can you help me out where I am missing something or where i am wrong?
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
9 years 9 months ago #2
by Chris
Replied by Chris on topic Course mods returning empty if user is enrolled
Are all the checks green in the Joomdle status page? What versions of Joomla, Moodle, Joomdle and PHP are you running?
Please Log in or Create an account to join the conversation.
- educore
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
9 years 9 months ago #3
by educore
Replied by educore on topic Course mods returning empty if user is enrolled
Hi Chris,
Yes the system check is showing all green. Joomla version is 3.4.8, PHP Version 5.4.45, Joomdle version 1.0.6 and Moodle 3.0.4 (Build: 20160509).
Yes the system check is showing all green. Joomla version is 3.4.8, PHP Version 5.4.45, Joomdle version 1.0.6 and Moodle 3.0.4 (Build: 20160509).
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
9 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Course mods returning empty if user is enrolled
Does the course have any availabilty restrictions? Joomdle won't show any content that is not accesible to the user in Moodle.
Please Log in or Create an account to join the conversation.
- educore
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
9 years 9 months ago #5
by educore
Replied by educore on topic Course mods returning empty if user is enrolled
Hi,
Thanks for the reply. I didn't get it, like if the get_course_info function is displaying data for the enrolled user, then why isn't get_course_mods function not displaying any data for the specific course. Can you please guide me in this scenario? Also where can I check the availability restrictions for that course, or its content?
Thanks
Thanks for the reply. I didn't get it, like if the get_course_info function is displaying data for the enrolled user, then why isn't get_course_mods function not displaying any data for the specific course. Can you please guide me in this scenario? Also where can I check the availability restrictions for that course, or its content?
Thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
9 years 9 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Course mods returning empty if user is enrolled
If you want you can send access info to antonio at joomdle.com and I will take a quick look to check it.
I may take a while to reply, as I am traveling these days.
I may take a while to reply, as I am traveling these days.
Please Log in or Create an account to join the conversation.
- educore
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
9 years 9 months ago #7
by educore
Replied by educore on topic Course mods returning empty if user is enrolled
Hi,
I have sent an email on your email address "antonio at joomdle.com".
Have a safe journey
I will be waiting for your reply.
Thanks.
I have sent an email on your email address "antonio at joomdle.com".
Have a safe journey
Thanks.
Please Log in or Create an account to join the conversation.