Monday, 2012-03-05

*** 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_hello05:08
dhx1hi05: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.php05:12
Cipher_http://pastebin.com/vqQ41HYM05: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 berserk05: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 work05:14
Cipher_or maybe i need to change everything... somehow ?05:14
dhx1Cipher_: use helper_get_current_project()05:17
Cipher_i tried including the require_once stuff for get_helper_project()... and it worked05:18
Cipher_but it broke everything else05:18
dhx1which string(s) are you changing?05:18
dhx1btw there is no need to include anything05:19
dhx1afaik...?05:19
dhx1at 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_api05:19
Cipher_tried that, but it ended with mantis not getting it's init stuff done right and borking05:20
dhx1any 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 project05:20
Cipher_strings can be done with difficutlty using the standard custom stuff05: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 help05:21
dhx1all of that is changing dramatically in an upcoming version of MantisBT05:23
dhx1the 'next' branch will drop a lot of that legacy stuff and replace it with far superior (and more flexible) approaches05:24
dhx1some of that work has already been committed but there is a fair amount to go05: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.php05:24
Cipher_and some random errors when clicking around05:25
Cipher_stuff like 'relationship not found' headers on bugs etc05:25
dhx1try adding require_once('user_pref_api.php') to helper_api.php05:25
dhx1or include it within the custom_whatever_inc.php file that is calling special functions05:26
dhx1the 'master' branch fixes all of this btw :)05:26
Cipher_:) super05:26
dhx1I would strongly recommend upgrading to 'master' if you can05:27
Cipher_isn't that a little experimental? this is a very production system05:27
dhx1it's different from 'master-1.2.x' in some areas and will require a bit of work to get customised again05:27
dhx1but 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
dhx1yeah it will require some work to get right05:28
Cipher_ooh, that is sweet - you guys working on templates too ?05:28
dhx1that is the 'next' branch which is highly experimental/frequently broken05:29
Cipher_ah right05:29
dhx1master is in-between05:29
dhx1all 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' solution05:30
Cipher_right, i'll go try the include bits and see if it breaks something else05:30
Cipher_thanks a lot !05:30
dhx1also see if you can move stuff into plugins05:30
dhx1custom_functions will be disappearing05:31
dhx1and as a further recommendation, learn to use Git (if you haven't already) and just create your own MantisBT branch05:31
dhx1then you can change whatever you want and even submit improvements back to the project so you no longer have to worry about maintaining them yourself05:31
dhx1it's not too hard to upgrade using that approach as long as you don't go changing the database structure05: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 stuff05:32
dhx1when I say it'll be disappearing, you can still perform the same functionality... in a far better way05:33
Cipher_not sure if that gets fixed at some point upstream... i've had these fixes in since 1.0.705:33
dhx1for instance, manipulate the page output as a DOMDocument before it is sent out05:33
dhx1or whatever other approach we end up using05:33
Cipher_that sounds fun, and maybe a little too complex compared to copy pasting a function and replacing some bits? :)05:34
dhx1Cipher_: if it's very specific to your needs (and not general enough that others would benefit from it) then there is little point submitting patches05:34
dhx1Cipher_: 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
dhx1that 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_ shit05:51
dhx1it's the order of inclusions that is wrong05:51
dhx1custom_whatever_inc.php files are included prior to a lot of other ones05:51
Cipher_oh right05:51
dhx1this is hopefully resolved in 'master' because every file that calls external functions now has all the require_api() calls necessary to be used standalone05: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
dhx1it can be quite complicated really05: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, etc05: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.php05:56
Cipher_for local use05:56
dhx1require_once can be used wherever without issue05:57
Cipher_and then just migrate to the new version when it seems solid05:57
dhx1at least, it should work that way05:57
Cipher_umm. let me check, but i'm pretty sure i'm using require_once and it's breakign the mail sender script05:57
Cipher_#require_once( 'project_api.php' );#require_once( 'access_api.php' );05:58
Cipher_yep05:58
Cipher_i odn't think anyone expected me to require_once_ from custom_strings though05:59
Cipher_so it's all good05:59
Cipher_:D05: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 control05:59
Cipher_i've wasted enough of your time06:00
Cipher_you've been very helpful, thanks06:00
dhx1let me know if you need any further assistance :)06:01
dhx1hope it goes well06: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 debugging06:01
Cipher_will do :) cheers06: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
entersbhi all12:02
entersbis there anyone who can help me with some mantis question?12:02
entersbwe installed fresh mantis version after some time, we had 1.0.3 before this latest12:03
entersbi noticed that implemented status is missing12:03
entersbwhy it was removed and how can I add it back in status flow12:03
entersbanyone 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!