19. Debugging
Debugging is a methodical process of ļ¬nding and
reducing the number of bugs, or defects, in a computer program or a
piece of electronic hardware, thus making it behave as expected.
āwikipedia
22. When you assumeā¦
Donāt assume itās an extension
Donāt assume itās the database
Donāt assume itās your host
Donāt assumeā¦
Itās much faster to determine what the problem is
than what the problem isnāt.
23. Is it plugged in?
Can you SSH/FTP?
Can you access a static HTML ļ¬le?
Can you access your database?
Can you access PHP info?
25. Broad strokes
Check the application, can you log into the CP?
Check the templates, can you access other
pages?
Remove half the template, does it show up?
Remove a fourth the template, does it show up?
Rinse, repeatā¦
26. KISS Huot Style
1. Test a static ļ¬le
2. Test the control panel
3. Test other templates
4. Remove the entire trouble template, replace it
with ātestā
5. Fill back in the template until it breaks
27. KISS Huot Style
6. Is the trouble spot ļ¬xable in the template?
7. If not open the add-on and place debugging
lines throughout
8. Is the trouble spot in the add-on?
9. If not open the core EE ļ¬les and place
debugging lines throughout
36. Is it plugged in?
Check with the client, what is really missing?
Can they tell you anything about the data?
What channel it was in?
What status they set it to?
5:58 pm
on a Friday
37. The Solution
āDon't worry Mark, they never existed in the DB. We got to
the bottom of it. I'm adding them by hand tomorrow. Sorry for
all the confusion.ā
6:23 pm
on a Friday
60. Under the Hood
Standard EE 2.x install
EE Members
EE Member Custom Proļ¬le Fields
Mark Huot Vote Module
Solspace User Module
61. All together nowā¦
The Vote module records votes in a separate
database table.
The Vote module summarizes total votes into a
standard EE member proļ¬le ļ¬eld.
The User module displays users ordered by the
EE member proļ¬le ļ¬eld.
64. Itās Voteās Fault
Module code looks correct.
Correctly using
exp_member_data table.
Pulling correct custom
ļ¬eld, I thinkā¦
65. Itās Userās Fault
Nope, template appears
correct.
Sorting by other ļ¬elds
works as expected
(username, other custom
ļ¬elds).
Sort attribute correctly ļ¬ips
the results, but keeps them
out of order.