You all know the problem. No matter how hard you try, sometimes you've just got to hack a peace of code somewhere in either the drupal core or a module. Nothing wrong with that (pragmatically spoken), until the point you want to update to a newer Drupal Version and don't want all your Hacks to be lost.
So here is my idea about how to deal with this problem:
Put a file called hacks.txt on your drupal root
Whenever you hack a peace of drupal code add the path to the file you hacked in the hacks.txt
In front of the lines you hack add a comment: "// HACK" and then copy the code like it was before you hacked it directly below.
So whenever you want to update drupal or a module you just overwrite everything and then you look for the files you've modifed. Open up the old ones and search for the term "HACK" in the document. That way you'll find everything you've changed real quick. Then you look in the new file and see if the fix already has been made or needs to be applied again.
I know this is actually something very simple and still requires a good amount of handwork but I think it's a very reliable way of handling things. Before working like this I thought about using Subversion/CVS and patch my files by diffing them, but this isn't going to work pretty often since the hacks you make are often just "error fixes" which might be done in the next version and so the patch is going to be applied "double" and you have to figure out why things aren't working.
I'm getting an error when I have the taxonomy module enabled for all users except administrator (user #1). Here's the error:
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '_node t INNER JOIN node n ON t.nid = n.nid INNER JOIN node_revis query: SELECT DISTINCT(n.nid), n.title, r.body, sticky, created FROM term INNER JOIN node_access na ON na.nid = n.nid _node t INNER JOIN node n ON t.nid = n.nid INNER JOIN node_revisions r ON r.vid = n.vid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'term_access'))) AND t.tid IN (21) AND n.status = 1 ORDER BY sticky DESC, created DESC LIMIT 5 in c:\program files\apache group\apache\htdocs\drupal\includes\database.mysql.inc on line 108.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '_node t INNER JOIN node n ON t.nid = n.nid INNER JOIN node_revis query: SELECT DISTINCT(n.nid), n.title, r.body, sticky, created FROM term INNER JOIN node_access na ON na.nid = n.nid _node t INNER JOIN node n ON t.nid = n.nid INNER JOIN node_revisions r ON r.vid = n.vid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'term_access'))) AND t.tid IN (19,18,17,13) AND n.status = 1 ORDER BY sticky DESC, created DESC LIMIT 10 in c:\program files\apache group\apache\htdocs\drupal\includes\database.mysql.inc on line 108.
I have been looking at the bug tracker for both Drupal CVS/Beta 2 and Flexinode (I have the latest CVS of flexindoe and image); I have a big issue with image uploads, and I'm not sure if it's a problem with the upload module, flexinode, image, or the configuration of my database?
Hi
I would like to know where to put files if I install a ekstra module eg. gallery.
The file gallery.module goes in drupal/modules but where goes the folder with content "po" and "content"?