Whenever I view a student, the system displays "This student: X total hours, Y qual hours, Z cpoints. gpa: #.###" three times with an fp-message-backtrace message pointing me to Line 501 of the _Student.php file.
The code in the line is:
fpm("This student: $cumulative_total_hours total hours,
$cumulative_quality_hours qual hours, $cumulative_quality_points cpoints. gpa: $cgpa");
What could be the issue? My questions specifically are:
1. Why is it repeating the Student GPA line three times unless you click either "Display by Year" or "Display by Type"?
2. Why is there a backtrace message pointing me to Line 501 of the _Student.php file?
Attached file(s):
Sorry about that-- looks like I accidentally left in a debug message the last time I was working on that file. I will correct it. You can just comment out lines 500 & 501 to make it stop showing.
It displays 3 times because of the way FP is loading and then caching the student object. It no longer displays after that, because the object has been cached and that function is no longer called.
The message points to that line just to help you know where the message is coming from ;)
Thanks for pointing it out!
Richard
I'll also add real quick that the fpm() function only displays for the admin user. That might explain why other users haven't noticed it before now.
Richard
Thanks very much Richard!
I commented out line 1239 in misc.inc and that did the trick with the debug message.