dashes must be replaced with underscores
kulfi - September 5, 2008 - 05:05
| Project: | Maxlength |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Installing this module in a fresh Drupal install works fine. However my Drupal app has +50 modules, and I'm not sure if that is causing a conflict, but the module is failing. Its JS isn't included, and there is no indication that it is enabled and configured (it is) when editing the node.
Any ideas?

#1
I am not aware of any conflicts, but that is possible.
The only thing I can suggest is that you disable other modules until maxlength starts working, and then you can see what module it conflicts with.
#2
Does your content type's machine name have a "-" in it?
This seems to cause a problem on my test install. Working on a solution now.
#3
Not sure if this is the bug you described. However the "_" in the type issue, can be fixed quite simply.
search and replace
<?php$type = arg(1);
?>
with
<?php$type = str_replace('-','_',arg(2));
?>
This is because, from the CCK edit content type page under Type:
#4
@a_c_m, thanks for the fix, just committed to CVS. It should show up in the dev version soon.
@ulfk, can you please test with the new dev version (when it becomes available)? It is just a guess that this was causing your problem. Please let us know.
#5
Automatically closed -- issue fixed for two weeks with no activity.