Closed (fixed)
Project:
Todolist
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2007 at 06:13 UTC
Updated:
22 Oct 2009 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
ms2011 commentedI just set up a new Drupal 5.1 installation w/ todolist, jquery_update, jquery_interface installed--and it is working for me with Firefox 2.0 and Windows XP. Could the problem you are experiencing could be a configuration or browser issue?
Suggestions:
The blank screen is by design, if you have not provided all the parameters the /todolist/create_task callback is looking for. Try this, instead:
You should get a response similar to the following:
And this would indicate that the module is working correctly under normal circumstances.
Questions:
The strange part about your experience is that you get 404 when you click on "Add this task" but not when you visit the URL directly in your browser--the blank screen means HTTP Status code 200 OK and no further data (which is the correct response to the wrong parameters)
Comment #2
stborchertHi.
First to say: very nice little module.
The error is located in todolist.js. All urls begin with a slash! This did not work on most installations (for example on sub-dirs or on IIS).
I've created a patch that fixes this by replacing the slash with
index.php?q=.hth,
Stefan
Comment #3
ms2011 commented@Stefan: Thanks for the patch! I tested it and it works. There is only one thing I wish we could do to improve it. Currently, with your patch, the XMLHTTPRequest object will try to POST to different paths depending on where you are, like:
...and that works, but the path is not exactly where the file should be found. Technically, if there were a directory that existed in that location, it would fail because mod_rewrite wouldn't redirect to /index.php when the file appears to exist. Ideally, you would always have something like this:
Except in cases where your Drupal installation resides in a sub-directory. That does indeed throw in a monkey wrench unless we can utilize a Drupal function like url()...
I have tried renaming the .js file to .js.php and bootstrapping drupal when the file is called directly, but then Drupal thinks the base_path() is the module directory, and generates url() incorrectly. So, for now, I'll commit this patch to HEAD because it does work, but hopefully down the road we'll find a way to accomplish the ideal solution I described above.
Patch committed to HEAD. Thanks for your contribution! :)
@christefano: Does this solve your problem?
Comment #4
Christefano-oldaccount commentedThe above patch breaks Todolist for me when the site is in the web root. I get 404 and too many recursion errors.
I'm not sure what you mean about HEAD. The only release I see is 5.x-dev.
Regarding my earlier post, I was getting the 404 error with Todolist when my test site was in a subdirectory. Todolist works wonderfully when I test on a site installed in the web root. Cool!
Comment #5
Christefano-oldaccount commentedComment #6
stborchertWell, here's another try.
You don't need to get the base url via drupal, you can do it all with jQuery :-)
Tested with and without sub-dirs and it works fine.
The patch applies to 5.x-1.x-dev.
greetings,
Stefan
Comment #7
Christefano-oldaccount commentedThanks for the patch. I just got to testing it.
Comment #8
ms2011 commentedWorks for me! Committed to CVS.
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #10
kulfi commentedStill getting this error.
Comment #11
asak commentedI'm getting a white screen too.
found this code, but seems there is some other problem.
Comment #12
marvil07 commented5.x in no more maintained, so, like on 6.x it's solved I'm closing this