Closed (fixed)
Project:
Todolist
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
11 Jan 2009 at 19:50 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent
Hi, I got todolist installed, but I'm getting an error when I try to view the todolist full node view. Here is the error /sites/all/modules/todolist/todolist.module on line 128. I deleted line 128 jquery_interface_add(); now I can see the add task button without the error, but after submitting a task I get white screen.
The drupal6 version was posted on the 10th, I'm not sure if it hasn't been entirely ported to drupal6 or some step I'm missing. If needed I'm willing to help a bit with this module, not very good coding modules but you if guys need my help...
Pierre
Comments
Comment #1
marvil07 commentedYeah, it's in process now.
I really apreciate testing :D
Comment #2
kenorb commentedI've got jquery_ui, but it still there is white screen during task adding.
Comment #3
sumitk commentedhey you can copy code from list module we have already ported it to use jquery_ui :)
http://drupal.org/project/list
regards
sumitk
http://sumitk.net
Comment #4
petebarnett commentedHi sumitk,
Where could I find the code for the list project?... ok scrap that, moment of stupidity. checked the cvs :)
Thanks,
Peter
Comment #5
s8inac commented@ #2
Because there is a if condition in the code that is checking for an input named 'sort' but it doesn't exist!
Have a look in the function 'todolist_create_task()'.
A security issue: $_REQUEST should be replaced by $_POST
Comment #6
palo commentedCan you explain the fix in more detail for non-programmers to fix?
Comment #7
jeffschulerWhat needs to happen here, and how can we help?
Comment #8
marvil07 commentedHi jeffschuler,
Like it's mentioned, the problem here is that we¡re not using jquery_ui, so patches are _really_ welcome. Take a look to the list project too.
Sorry for log delay here, but I have not so many time now.
So, like I said, patchers are really welcome :D
@palo.. it's a code issue :(
Comment #9
jeffschulerSo, if I (following what s8inac said in #5) -- set
$_REQUEST['sort'] = 0;in
todolist_create_task()... I don't get a white screen anymore, but, rather, just see the Javascript from that function printed on the page, by itself.I'm not familiar with what
todolist_ok_js()does, in setting new content headers and sprinkling Javascript in with the PHP.How is this supposed to work to inject the js into the loaded page? Is there some prerequisite I'm missing?
Comment #10
nzcodarnoc commentedsubscribing
Comment #11
sanguis commentedthis is a simple fix change line 128 that says
to
(this)
is just part of the fix sorry
JOsh
Comment #12
marvil07 commented@sanguis: exactlly, that's part of the fix. Thanks for the help.
There's still a lot to do here :(
Comment #13
marvil07 commentedfinally, reviewing list module, I arrive to a beta-1, where jquery_ui is used :D
http://drupal.org/cvs?commit=272424