*** Joins: asm89 (~asm89@unaffiliated/asm89) | 02:22 | |
*** Joins: giallu (~giallu@fedora/giallu) | 02:34 | |
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!) | 03:44 | |
*** Joins: dhx1 (~anonymous@60-242-247-232.static.tpgi.com.au) | 03:48 | |
*** Quits: Protogenes (~Protogene@cmnz-d9bab11f.pool.mediaWays.net) (Quit: @TEXT<0x6a5934b6> Error reading 0x00000000) | 04:21 | |
*** Joins: Cipher_ (567a5de7@gateway/web/freenode/ip.86.122.93.231) | 05:05 | |
Cipher_ | hello | 05:08 |
---|---|---|
dhx1 | hi | 05:11 |
Cipher_ | i'm trying to do some trickier customizations, i'm not sure how it started but i remember it being necessary for something (special status IDs per project or something) which i tried to do as unintrusively as possible in order to allow us to use the standard mantis upgrade procedures ( mostly ) | 05:12 |
Cipher_ | so i ended up having this in custom_strings.php | 05:12 |
Cipher_ | http://pastebin.com/vqQ41HYM | 05:12 |
Cipher_ | my problem is that cookie only gets set when the user 'changes' the project - for example users with a single project will randomly not have that set and their config goes completely berserk | 05:13 |
Cipher_ | does anyone have a better idea how to do this ? this is quite early in the init of Mantis, so the api function helper_get_current_project() doesn't work | 05:14 |
Cipher_ | or maybe i need to change everything... somehow ? | 05:14 |
dhx1 | Cipher_: use helper_get_current_project() | 05:17 |
Cipher_ | i tried including the require_once stuff for get_helper_project()... and it worked | 05:18 |
Cipher_ | but it broke everything else | 05:18 |
dhx1 | which string(s) are you changing? | 05:18 |
dhx1 | btw there is no need to include anything | 05:19 |
dhx1 | afaik...? | 05:19 |
dhx1 | at the most you'd need to require_once('.....helper_api.php') | 05:19 |
Cipher_ | it uses a couple of helpers from project_api.php and access_api | 05:19 |
Cipher_ | tried that, but it ended with mantis not getting it's init stuff done right and borking | 05:20 |
dhx1 | any idea what errors/messages? | 05:20 |
Cipher_ | it's not the strigns, i just remembered, i also have this in custom_functions, i have custom layouts/fieldnames/shortnames for custom fields on a project | 05:20 |
Cipher_ | strings can be done with difficutlty using the standard custom stuff | 05:21 |
Cipher_ | erm... one sec, it's been a while, i just came across this 'single project cookie not set' bug thing now and decided to ask for help | 05:21 |
dhx1 | all of that is changing dramatically in an upcoming version of MantisBT | 05:23 |
dhx1 | the 'next' branch will drop a lot of that legacy stuff and replace it with far superior (and more flexible) approaches | 05:24 |
dhx1 | some of that work has already been committed but there is a fair amount to go | 05:24 |
Cipher_ | PHP Fatal error: Call to undefined function user_pref_get() in /var/www/mantisbt-1.2.6/core/helper_api.php on line 201 when running mantis/scripts/send_emails.php | 05:24 |
Cipher_ | and some random errors when clicking around | 05:25 |
Cipher_ | stuff like 'relationship not found' headers on bugs etc | 05:25 |
dhx1 | try adding require_once('user_pref_api.php') to helper_api.php | 05:25 |
dhx1 | or include it within the custom_whatever_inc.php file that is calling special functions | 05:26 |
dhx1 | the 'master' branch fixes all of this btw :) | 05:26 |
Cipher_ | :) super | 05:26 |
dhx1 | I would strongly recommend upgrading to 'master' if you can | 05:27 |
Cipher_ | isn't that a little experimental? this is a very production system | 05:27 |
dhx1 | it's different from 'master-1.2.x' in some areas and will require a bit of work to get customised again | 05:27 |
dhx1 | but it's a _major_ improvement over 1.2.x for customisation (especially styling with CSS as ID's and classes have been added everywhere) | 05:28 |
dhx1 | yeah it will require some work to get right | 05:28 |
Cipher_ | ooh, that is sweet - you guys working on templates too ? | 05:28 |
dhx1 | that is the 'next' branch which is highly experimental/frequently broken | 05:29 |
Cipher_ | ah right | 05:29 |
dhx1 | master is in-between | 05:29 |
dhx1 | all of them work for my purposes though :) | 05:29 |
Cipher_ | guess i'll need to tinker with master and port everything to it... not a lot of porting required i'm sure - the custom stuff is only for one project at the moment and it was a pretty simple 'i'll just throw this stuff here where it doesn't break anything' solution | 05:30 |
Cipher_ | right, i'll go try the include bits and see if it breaks something else | 05:30 |
Cipher_ | thanks a lot ! | 05:30 |
dhx1 | also see if you can move stuff into plugins | 05:30 |
dhx1 | custom_functions will be disappearing | 05:31 |
dhx1 | and as a further recommendation, learn to use Git (if you haven't already) and just create your own MantisBT branch | 05:31 |
dhx1 | then you can change whatever you want and even submit improvements back to the project so you no longer have to worry about maintaining them yourself | 05:31 |
dhx1 | it's not too hard to upgrade using that approach as long as you don't go changing the database structure | 05:32 |
Cipher_ | ow, that's bad. well, not bad bad, just that we have a ton of custom fields and i ended up 'fixing' the custom titles rendering / custom short titles rendering for custom fields with an override function. | 05:32 |
Cipher_ | since mantis tended to ignore that stuff | 05:32 |
dhx1 | when I say it'll be disappearing, you can still perform the same functionality... in a far better way | 05:33 |
Cipher_ | not sure if that gets fixed at some point upstream... i've had these fixes in since 1.0.7 | 05:33 |
dhx1 | for instance, manipulate the page output as a DOMDocument before it is sent out | 05:33 |
dhx1 | or whatever other approach we end up using | 05:33 |
Cipher_ | that sounds fun, and maybe a little too complex compared to copy pasting a function and replacing some bits? :) | 05:34 |
dhx1 | Cipher_: if it's very specific to your needs (and not general enough that others would benefit from it) then there is little point submitting patches | 05:34 |
dhx1 | Cipher_: it's a lot easier and far more flexible :) | 05:34 |
Cipher_ | sounds good to me, the custom stuff is very good in Mantis now, and the reason we use it... but it can be a little limited sometimes :) | 05:41 |
dhx1 | that will be solved :) | 05:43 |
Cipher_ | thank you very much for your help, work is taking me away :) | 05:50 |
dhx1 | :) | 05:51 |
Cipher_ | i'm still a little confused as to why adding an include file would break a class that was previously working. that is _weird_ shit | 05:51 |
dhx1 | it's the order of inclusions that is wrong | 05:51 |
dhx1 | custom_whatever_inc.php files are included prior to a lot of other ones | 05:51 |
Cipher_ | oh right | 05:51 |
dhx1 | this is hopefully resolved in 'master' because every file that calls external functions now has all the require_api() calls necessary to be used standalone | 05:52 |
Cipher_ | i'm suddenly very worried at the breakage potential of these basic hacks... i think i'll need to have a very serious look at the source code ( or indeed, as you suggested, upgrade to master and be done with it. tempting ) | 05:54 |
dhx1 | it can be quite complicated really | 05:54 |
Cipher_ | even if i add that missing include before the ones i'm adding in custom_strings, that might break something i don't notice right away, etc | 05:55 |
Cipher_ | so... i guess the buggy cookie system will have to do for now, or maybe 'port' get_helper_project() out of the project_api.php | 05:56 |
Cipher_ | for local use | 05:56 |
dhx1 | require_once can be used wherever without issue | 05:57 |
Cipher_ | and then just migrate to the new version when it seems solid | 05:57 |
dhx1 | at least, it should work that way | 05:57 |
Cipher_ | umm. let me check, but i'm pretty sure i'm using require_once and it's breakign the mail sender script | 05:57 |
Cipher_ | #require_once( 'project_api.php' );#require_once( 'access_api.php' ); | 05:58 |
Cipher_ | yep | 05:58 |
Cipher_ | i odn't think anyone expected me to require_once_ from custom_strings though | 05:59 |
Cipher_ | so it's all good | 05:59 |
Cipher_ | :D | 05:59 |
Cipher_ | i expected a little risk, was just hoping it would work somehow, but if it breaks stuff in random places... that's too difficult to control | 05:59 |
Cipher_ | i've wasted enough of your time | 06:00 |
Cipher_ | you've been very helpful, thanks | 06:00 |
dhx1 | let me know if you need any further assistance :) | 06:01 |
dhx1 | hope it goes well | 06:01 |
Cipher_ | it's a very frequent thing for me to end up thinking out loud about stuff... but it's probably not productive, especially if the whole system is scrapped in the newer versions, it's not even worth debugging | 06:01 |
Cipher_ | will do :) cheers | 06:02 |
*** Joins: Protogenes (~Protogene@cmnz-d9bab11f.pool.mediaWays.net) | 06:12 | |
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 260 seconds) | 06:54 | |
*** Parts: Cipher_ (567a5de7@gateway/web/freenode/ip.86.122.93.231) () | 06:55 | |
*** Joins: asm89 (~asm89@unaffiliated/asm89) | 07:14 | |
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka) | 09:00 | |
*** Quits: vBm (~vBm@unaffiliated/vbm) (Ping timeout: 248 seconds) | 09:17 | |
*** Joins: vBm (~vBm@pro1258.server4you.de) | 09:18 | |
*** Quits: vBm (~vBm@pro1258.server4you.de) (Changing host) | 09:18 | |
*** Joins: vBm (~vBm@unaffiliated/vbm) | 09:18 | |
*** Quits: Rixie (~Rixie@188.177.20.182) (Quit: Rixie) | 09:27 | |
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!) | 11:03 | |
*** Quits: vBm (~vBm@unaffiliated/vbm) (Ping timeout: 245 seconds) | 11:12 | |
*** Joins: vBm (~vBm@pro1258.server4you.de) | 11:20 | |
*** Quits: vBm (~vBm@pro1258.server4you.de) (Changing host) | 11:20 | |
*** Joins: vBm (~vBm@unaffiliated/vbm) | 11:20 | |
*** Joins: entersb (5275cb86@gateway/web/freenode/ip.82.117.203.134) | 12:01 | |
entersb | hi all | 12:02 |
entersb | is there anyone who can help me with some mantis question? | 12:02 |
entersb | we installed fresh mantis version after some time, we had 1.0.3 before this latest | 12:03 |
entersb | i noticed that implemented status is missing | 12:03 |
entersb | why it was removed and how can I add it back in status flow | 12:03 |
entersb | anyone available? | 12:25 |
*** Quits: entersb (5275cb86@gateway/web/freenode/ip.82.117.203.134) (Quit: Page closed) | 13:21 | |
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) | 13:43 | |
*** Quits: vBm (~vBm@unaffiliated/vbm) (Ping timeout: 255 seconds) | 14:37 | |
*** Joins: vBm (~vBm@pro1258.server4you.de) | 14:40 | |
*** Quits: vBm (~vBm@pro1258.server4you.de) (Changing host) | 14:40 | |
*** Joins: vBm (~vBm@unaffiliated/vbm) | 14:40 | |
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat) | 14:40 | |
*** Quits: vBm (~vBm@unaffiliated/vbm) (Ping timeout: 252 seconds) | 14:46 | |
*** Joins: vBm (~vBm@unaffiliated/vbm) | 15:10 | |
*** Joins: giallu (~giallu@88.149.240.192) | 15:34 | |
*** Quits: giallu (~giallu@88.149.240.192) (Changing host) | 15:34 | |
*** Joins: giallu (~giallu@fedora/giallu) | 15:34 | |
*** Joins: Paul_46 (~IceChat09@2001:470:9310:aaaa:54b1:6633:71fa:81a6) | 15:38 | |
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 260 seconds) | 16:37 | |
*** Joins: asm89 (~asm89@unaffiliated/asm89) | 16:41 | |
*** Quits: dhx1 (~anonymous@60-242-247-232.static.tpgi.com.au) (Quit: Leaving) | 17:15 | |
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!) | 17:21 | |
*** Joins: giallu (~giallu@fedora/giallu) | 17:35 | |
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection) | 19:00 | |
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) | 19:00 | |
*** Quits: Paul_46 (~IceChat09@2001:470:9310:aaaa:54b1:6633:71fa:81a6) (Quit: Easy as 3.14159265358979323846...) | 19:08 | |
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 276 seconds) | 19:23 | |
*** Joins: daryn (~daryn@h241.211.31.71.dynamic.ip.windstream.net) | 21:47 | |
*** Quits: Protogenes (~Protogene@cmnz-d9bab11f.pool.mediaWays.net) (Disconnected by services) | 22:13 | |
*** Joins: Protogenes (~Protogene@cmnz-4db36171.pool.mediaWays.net) | 22:13 | |
*** Quits: daryn (~daryn@h241.211.31.71.dynamic.ip.windstream.net) (Quit: Ex-Chat) | 23:23 |
Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!