hi,
i've installed it for testing and here are the bugs i have :

- on submit a new todolist, there is no tags at this step. Once created, there is the tags input, but don't works, tags are not registered.
- Add a new task don't work. lead to a blank page (todolist/create_task)
- there is no link to my created todolist anywhere.

Comments

freephile’s picture

Add a new task don't work. lead to a blank page (todolist/create_task)

I experienced the same issue: the 'Add new task' link results in a blank page.

Using Firebug (script tab, Options -> break on all errors), I was able to trace the error to the fact that I was using both the Admin Menu module as well as the Todolist module and both modules creat javascript functions named 'i'. The developers for each module should better namespace their functions to avoid collision (e.g. todolist_i or tdl_i).

The immediate workaround for me was to disable the Admin Menu module. As soon as I did that I was able to use the 'Add new task' link with expected results.

mkalbere’s picture

Got the same issue, even with admin menu disable.
Is there any patch ? New contrib ?

or is this project no more maintained ?

mkalbere’s picture

Bad temporary workaround is modifiing todolist.js

function getBaseUrl() {
  var url = '';
  /*var script = $.grep($('head > script'), function(i) {
    return $(i).attr('src').indexOf('todolist.js') > -1
  });
  url = $(script).attr('src');*/
  url="/modules/todolist/todolist.js";
  url = url.substring(0, url.indexOf('modules/'));
  if (url.indexOf('sites/') > -1)
    url = url.substring(0, url.indexOf('sites/'));
  return url;
}
asak’s picture

@mkalbere: your code allmost works, but now after submitting the task i'm getting a popup with "Unknown AJAX Error: error Status:400 Bad Request".

Is this even related?

mkalbere’s picture

Error 400 is for malformed url ..

Is your Drupal installed in a subfolder ?
check :
url="/modules/todolist/todolist.js";

Do you have any javascript debugger installed (like firebug), try to see witch url is called ...

asak’s picture

Actually i think the prolem has to do with the conflic between jquery update and jquery interface ...

I can't really test this since i'm depended on jquery update.

Thanks for the help!

marvil07’s picture

Version: 5.x-1.x-dev » 6.x-1.0-beta1
Status: Active » Fixed

On 6.x we use Drupal.settings.basePath

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

scottrigby’s picture

Status: Closed (fixed) » Active

@marvil07: I am still running into this problem with both 6.x-1.0-beta & 6.x-1.x-dev. The module is installed in a local multisite (MAMP) environment @ sites/MY-DOMAIN/modules. I also have the current versions of jquery_ui & jquery_update properly installed. Any advice?

scottrigby’s picture

Status: Active » Fixed

I was able to get it to work as expected downloading stable releases of todolist, jquery_ui and jquery_update using Drush - and enabling using drush (after downloading jquery ui library and installing per instructions). The only differences between my working installation and the above issue is A. initially i was testing on a multisite (likely not the problem), and B. I was using jquery_update dev version (most likely the issue). Setting issue back to fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pitxels’s picture

Status: Closed (fixed) » Needs review

I was trying to test this module, to see how it works and if it's something I want to port to D7

However I get the WSOD when I try to add a task. I have been trying all different of combinations of Dev/Latest version of this module, Jquery_ui and Jquery update.

Please advice.