- Posts: 10
Error on course request pages in admin component
- Jason
- Topic Author
- Offline
- New Member
-
Less
More
14 years 5 months ago #1
by Jason
Error on course request pages in admin component was created by Jason
Antonio,
I got this error in the admin pages (php error reporting on) which causes all course requests to not show up.
Warning: Invalid argument supplied for foreach() in /www/neeshub/administrator/components/com_joomdle/views/courseapplications/tmpl/default_manage.php on line 50
This happens on any page like the following:
/administrator/index.php?option=com_joomdle&view=courseapplications&task=manage_applications&course_id=7 [put a good course id here]
I poked around in the admin controller and haven't yet found the root of the problem.
I got this error in the admin pages (php error reporting on) which causes all course requests to not show up.
Warning: Invalid argument supplied for foreach() in /www/neeshub/administrator/components/com_joomdle/views/courseapplications/tmpl/default_manage.php on line 50
This happens on any page like the following:
/administrator/index.php?option=com_joomdle&view=courseapplications&task=manage_applications&course_id=7 [put a good course id here]
I poked around in the admin controller and haven't yet found the root of the problem.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
14 years 5 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Error on course request pages in admin component
Hi there.
Are you using R0.7 on J1.5? I just tested locally, and cannot reproduce the error: either it shows an empty list if there are no requests, or it correctly shows the course requests, if there are any.
Are you using R0.7 on J1.5? I just tested locally, and cannot reproduce the error: either it shows an empty list if there are no requests, or it correctly shows the course requests, if there are any.
Please Log in or Create an account to join the conversation.
- Jason
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
14 years 5 months ago #3
by Jason
Replied by Jason on topic Re: Error on course request pages in admin component
Yes and Yes (0.7 on 1.5).
The line its breaking on is:
foreach ($this->users as $row){
Where does the views->users get set?
The line its breaking on is:
foreach ($this->users as $row){
Where does the views->users get set?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
14 years 5 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Error on course request pages in admin component
Really weird that it does not happen to me, can't think of what is going on 
File is: administrator/components/com_joomdle/views/courseapplications/view.html.php
$this->users = JoomdleHelperApplications::get_course_applications ($id, $state);
File is: administrator/components/com_joomdle/views/courseapplications/view.html.php
$this->users = JoomdleHelperApplications::get_course_applications ($id, $state);
Please Log in or Create an account to join the conversation.