It's all finally working.
Through trial and error on all the path issues, I finally got the test editor to work, but the editor was still not showing up in the website. Eventually it occurred to me that I wasn't calling the rteINC file from the website in the same way that I was from the rteTest file.
I copied the call from the test file into the include on the web page and it worked.
Now when logged in as an administrator, you can edit the content section of home page yourself.
When implemented, this will require some user education--particularly that all writing should be reviewed by a professional editor before being put up.
This implementation took many, many hours. Too many to bill. On the upside, I now know a lot more about paths in complex dynamic web programming than if everything had gone smoothly.
Saturday, June 14, 2008
Friday, June 13, 2008
One last shot
I'm going back for one last try.
I'm guessing that I'm generating an internal path for an external call. Maybe I should just start the whole thing again on dreamhost instead of zephir.
Sounds daunting. It's 10pm. I'm tired. I have five cans of Red Bull and pretty good radio programming coming up on NPR. Maybe I'll try.
I'm guessing that I'm generating an internal path for an external call. Maybe I should just start the whole thing again on dreamhost instead of zephir.
Sounds daunting. It's 10pm. I'm tired. I have five cans of Red Bull and pretty good radio programming coming up on NPR. Maybe I'll try.
Thursday, June 12, 2008
I went through and hard coded all the paths to /home/classes/dwelle01/public_html/.
I was ready to give up when I tried the test file one last time. I finally got functioning buttons back, but the files are not being found. Message:
The requested URL /home/classes/dwelle01/public_html/fckeditor/editor/fckeditor.html was not found on this server.
I may stick to it for another half hour.
I was ready to give up when I tried the test file one last time. I finally got functioning buttons back, but the files are not being found. Message:
The requested URL /home/classes/dwelle01/public_html/fckeditor/editor/fckeditor.html was not found on this server.
I may stick to it for another half hour.
running out of time
I thought that I had made progress. The buttons were at least functioning in the rteTest page. Then suddenly it was gone.
I may have to abandon this and settle for failure of this portion of the application. I need to turn to other subjects tonight, plus I still have a little left to do on ASP.
All I'm getting to print in the test page is the html. None of the interactive elements. I will learn this, it just may not be in time to get credit for the assignment.
I may have to abandon this and settle for failure of this portion of the application. I need to turn to other subjects tonight, plus I still have a little left to do on ASP.
All I'm getting to print in the test page is the html. None of the interactive elements. I will learn this, it just may not be in time to get credit for the assignment.
One more whack
I'm back for one more whack at it. I've tried tracing all the paths and everything seems to be in place. The sessions are running.
I have rteINC included on the content section of the index page.
I'm getting no errors and no tool bar. I've tried changing out the default toolbar, making sure only one toolbar is enabled and making sure they're both enabled. Nothing's printing to the view. I know the paths are working because when I change them I get a 'no file' error.
I'm here to spend no more than two hours on this tonight. If I can't get it fixed I may have to settle for not getting it done within the quarter. I have an actual client who wants me to spend time on her website, so it may have to take priority.
I have rteINC included on the content section of the index page.
I'm getting no errors and no tool bar. I've tried changing out the default toolbar, making sure only one toolbar is enabled and making sure they're both enabled. Nothing's printing to the view. I know the paths are working because when I change them I get a 'no file' error.
I'm here to spend no more than two hours on this tonight. If I can't get it fixed I may have to settle for not getting it done within the quarter. I have an actual client who wants me to spend time on her website, so it may have to take priority.
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.
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.
not working
rte is not working. I wasn't confident with all the paths. I haven't been working in root of the public directory, and I had a feeling from the beginning of the documentation of this exercise that it might have been a mistake.
Looks like I have an evening of troubleshooting ahead.
Looks like I have an evening of troubleshooting ahead.
rte
Notes on troubleshooting rte implementation:
hard coded 'quasi-absolute' address--changed from
require_once($_SERVER['DOCUMENT_ROOT'] . "/include/adminOnlyINC.php");
to
require_once("/home/classes/dwelle01/public_html/itc280/newphp63/inc/utilINC.php");
Doing this changed a page full of errors into no errors at all. Still haven't tested functionality, though.
hard coded 'quasi-absolute' address--changed from
require_once($_SERVER['DOCUMENT_ROOT'] . "/include/adminOnlyINC.php");
to
require_once("/home/classes/dwelle01/public_html/itc280/newphp63/inc/utilINC.php");
Doing this changed a page full of errors into no errors at all. Still haven't tested functionality, though.
Saturday, June 7, 2008
Image upload working
Image upload is now working
Total time for this assignment:
3 hours
I'll spend the rest of the time this evening working on some aspnet, then go through php tomorrow and make sure everything is working and up to date (that is, fix the remaining problems). Someone told me there was also an RTE assignment. I haven't seen it yet, would love to do it, but won't focus on it until it comes up.
Total time for this assignment:
3 hours
I'll spend the rest of the time this evening working on some aspnet, then go through php tomorrow and make sure everything is working and up to date (that is, fix the remaining problems). Someone told me there was also an RTE assignment. I haven't seen it yet, would love to do it, but won't focus on it until it comes up.
Image upload, again
Scratch that last part. I just found the images I'm uploading in the wrong directory, with the wrong names. I guess I should follow this clue and track down the problem now.
image upload
Image upload seems to be perfect--no error messages--except that it's not updating the images.
I think that, because of the late date, I'll go through and fix the little things I've been missing but haven't been able to catch up on, then go on to work on the image uplink:
date fix
admin access from the view pages.
I think that, because of the late date, I'll go through and fix the little things I've been missing but haven't been able to catch up on, then go on to work on the image uplink:
date fix
admin access from the view pages.
Monday, June 2, 2008
admin login assignment
Everything is done on the Admin Login assignment except the nmEdit.php table editor. This is a pretty important piece, but I haven't been able to figure it out.
On all the permutations of table editing (showFirst, firstTable2, and mnEdit) I get a long list of errors, always starting with:
undefined variable myConn
To my simple mind, it looks like the variable is defined in myConnINC.php, which is called in every case.
I'm going to go ahead and publish what I have. If you want to see the errors, just click on the table editing option. I'll give bill@example.com developer access so you can do that.
Time spent on this assignment 7 hours. Before hitting the nmEdit wall, it was probably closer to 4 or 5.
On all the permutations of table editing (showFirst, firstTable2, and mnEdit) I get a long list of errors, always starting with:
undefined variable myConn
To my simple mind, it looks like the variable is defined in myConnINC.php, which is called in every case.
I'm going to go ahead and publish what I have. If you want to see the errors, just click on the table editing option. I'll give bill@example.com developer access so you can do that.
Time spent on this assignment 7 hours. Before hitting the nmEdit wall, it was probably closer to 4 or 5.
Subscribe to:
Posts (Atom)