Wednesday, June 11, 2008

troubleshooting log

I'm going to keep this log as I attempt to fix problems. I have a feeling it could get pretty long:

rteINC.php fixed broken comment code on line 2.


Fatal error: Call to undefined function startSession() in /home/classes/dwelle01/public_html/itc280/newphp63/fckeditor/rteINC.php on line 61

'fixed' this by commenting out the startSession wrapper

No errors, but no functionality: I think I'll go back and work on the admin login problem first (couldn't get admin link to show up in navs)

Fixed the peek a boo problem by fixing the startSession problem. It took me a long time to figure out that when I get a function not defined error, I should check to see if the function is defined. I defined the function and it worked. Now there are possibilities that I could run the function too many times in places where I have too many includes and have lost control of where I'm placing the function.

I would think that allowing the function to start only once in the labyrinthine file structure should take care of it, but I'm not sure that I have only one path through the includes where the session is started. A more reasonable solution may be wrapping the startSession statement in an if statement, so that it starts only if it is already not running. I will figure out how to do this, but maybe not before the end of the quarter.

2 comments:

corey said...

I get the same error... I tried changing the function to session_start() and I at least get the rte functionality on the page, but I also get errors that the session has already been started above each rte section. I just emailed bill about it.

Did you find a solution?

corey said...

thanks for the follow up in my comments... I went ahead and included my last email to Bill in my blog. If you read it you can tell I'm stabbing in the dark a bit, but maybe it will give you an idea... ?