I don\'t want to get too excited because I\'m not 100% sure. But, I believe I may have finally gotten KARMA 1.0 back online and working. I tried to hire three professional coders to no avail. They were too busy. I tried to get two friends to look at it, but our schedules didn\'t work. I went over thousands of lines of code, changed versions of php from 4 to 5 to 4, changed configurations dozens of times, installed, deleted, reinstalled, changed variables, looked at the old site and server code etc...
Finally, over my morning coffee I found a pointer embedded in the comments in another module which only admins can see, which tracks user\'s IP\'s for security. It said there were two different ways to track the IP\'s. I replaced the non working code in karma\'s file with the alternate code and voila, the IP\'s posted to the database correctly. The user IP\'s are posting to the DB again and it all seems to be working right in a few tests.
TAKE KARMA FOR A TEST DRIVE FOR ME
Try it out and vote up your TGS pals. Make sure you vote for someone that someone else has already voted for. If you can vote for somebody who has already been voted on in the same 24 hour period, we\'re golden.
Once again, sorry for the trouble. How is one to know that after switching servers that this code would no longer work:
| Code: |
$myIP = $GLOBALS[\'REMOTE_ADDR\'];
|
and that this code would:
| Code: |
$myIP = $_SERVER[\'REMOTE_ADDR\'];
|
Geez.