Tuesday, 2010-01-12

../irclogs/#mantishelp.2010-01-12.log
--- scribe started ---00:00
CIA-22Mantisbt: hickseydr * r94dc37c3a3c2 /view_all_set.php: Fix #11382: Typo in includes within view_all_set.php00:04
CIA-22Mantisbt: Paul * ra47272749c91 / (174 files in 2 dirs): Improve indentation - left inconsistent by previous recent commits.00:22
nuclear_eclipsepaul_____: here now02:06
nuclear_eclipsepaul_____: what is the purpose of require_api and require_lib?02:10
nuclear_eclipseie, what was "wrong" with just using require_once?02:11
nuclear_eclipsepaul_____: also, if require_api/lib actually fixes something, should we then be backporting them to 1.2?02:14
dwestfallAPPLICATION ERROR #200 driving me crazy03:12
dwestfallAPPLICATION ERROR #200 driving me cray03:17
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR #20003:18
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR #A required parameter to this page (reproducibility) was not found.03:18
dwestfall[11-Jan-2010 23:33:45] PHP Notice:  Undefined index:  bug_id in E:\wwwroot\wise\wise\issues\core\error_api.php on line 7703:18
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR #03:18
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR USER WFT\SobczyRX03:18
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR USER /wise/issues/bug_report.php03:18
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR METHOD GET03:18
dwestfall[11-Jan-2010 23:33:45] APPLICATION ERROR QUERY STRING03:18
Wraiythhey, anyone around that can help me with an account activation issue?03:23
Wraiythguess not03:31
WraiythI have users that randomly don't get activation emails03:31
Wraiythand I can't seem to find a way to manually activate an account.03:31
dhx_mdwestfall: which version of Mantis?04:47
dhx_mWraiyth: have you got batch email sending on?04:48
alemayois there any plugin-based way to add a new custom-filed type or would I just patch cf_def standard ?08:31
kirillkadhx_m: around?08:41
dhx_mkirillka: hi08:56
dhx_malemayo: not afaik08:56
kirillkadhx_m: lo08:56
kirillkaI have trouble with last updates08:56
kirillkaI see blank page08:56
dhx_malemayo: although you could add entries to the database (where custom field info is stored) directly from your plugin?08:57
dhx_malemayo: there ^may^ by some API in custom_field_api.php that handles that for you, but I don't know much about it08:57
dhx_mkirillka: do you have PHP error reporting turned on?08:57
kirillkayes. no error08:58
dhx_mevery page is affected?08:58
dhx_mwhich server, PHP version, etc?08:58
kirillkahttpd, php 5.2.908:58
alemayodhx_m: okay ... I just found that it is also quite handy to add new cf_defs ... just trying to figure out how to do that in detail08:58
alemayoI am trying to add a custom field that can hold a whole table of informations08:58
dhx_malemayo: custom fields is something I'd like to rewrite :)08:59
alemayowe are using mantis here for helpdesk and also for tracking hardware orders and similar stuff (so we need to add 2 mices and 5 LCD screens to a issue)08:59
dhx_malemayo: our current implementation is partly there, but isn't as straightforward to use as it could be (using OO classes, etc)08:59
alemayoa lot of stuff is not OO :)09:00
dhx_mit strikes me that you may not want to use custom fields then09:00
alemayobut also this cf-def approach is quite incomplete .. hm .. maybe because everything would be so much easier with OO :)09:00
alemayodhx_m: it strikes me that you may not want to use custom fields then  <--- what do you mean by that ?09:00
alemayoI will use CFs I think09:00
dhx_mwell it sounds like you want a field like "relationships" where you can link a "bug" to types of hardware?09:01
dhx_mor would it just store non-orthogonal data (IDs, text supplied by the user, etc)?09:01
dhx_mkirillka: Apache 2?09:02
kirillkayes09:03
dhx_mkirillka: what is the first bad commit?09:03
alemayodhx_m it is not really a relationship ... just a plain table to enter these items (there is no item database in the background to choose from certain types and so on)09:04
alemayodhx_m: I think I will call my CF "Table" and define an own table to store the whole info (with colums like bugid, Type, Quantity, Unit Price)09:05
dhx_malemayo: that sort of list data really then needs to be stored in the database within its own table09:05
dhx_malemayo: so your plugin would handle that table by itself... and the integration with Mantis would be using it's API, and outputting HTML to the relevant pages where you want to show data09:05
dhx_myep09:06
alemayoyes09:06
dhx_mhowever it wouldn't really have anything to do with custom fields09:06
alemayodhx_m: I found the definition and stuff of the custom fields handy -- that's why we use it ..09:06
dhx_mideally we'd have a built-in method for handling custom fields that are lists of data (orthogonal or not)09:06
alemayoI am happy to make it in a way that is easy to integrate and flexible ...09:07
dhx_mbut at the moment, if you go the plugin route, it won't integrate with Mantis' search capabilities, columns on view_all_bug_page.php, etc09:07
dhx_mnot that list data can really be put in a single row :)09:07
alemayoa long one maybe :-)09:08
alemayois there any example to add own custom fields ?09:08
alemayobecause there is already that flexible approach with a cf_mycompany in the cfdefs folder09:09
alemayoand then $g_custom_field_types[CUSTOM_FIELD_TYPE_TABLE] = 'mycompany';09:09
dhx_mI'd advise you to look at what SourceIntegration (mantisforge.org) does09:09
alemayobut it looks like I also should modify $g_custom_field_type_enum_string in the next step :)09:09
alemayoand also the localization ...09:09
dhx_malso remember if you need to change something in Mantis' core... feel free to submit patches to the official MantisBT bug tracker09:11
dhx_mif it's a "good change" it can be committed to the repository to be supported for all future versions of Mantis :D09:11
kirillkadhx_m: this last commit witch merged without problems 317f809f8f83f4b3867bb93ea7a48af6242378c009:13
kirillkaafter I merge more time next09:14
dhx_mkirillka: so http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=ea3cd38976a5b2af0ff0615b91d2f5d51970d783 is bad for you?09:14
kirillkadhx_m: I think yes09:15
alemayodhx_m: how can mantisforge help me with my custom fields? I am confused ...09:17
alemayoah i should read the intro :)09:18
dhx_malemayo: yep I just meant that there is a plugin on there which would be worthwhile you looking at first, to see how it does things09:18
dhx_mkirillka: that's interesting... the commit I mentioned wouldn't result in blank output09:18
alemayoI was looking alot for plugins but I only found that old stuff from that french website that did not work :)09:19
dhx_malemayo: yeah that plugin stuff has nothing to do with Mantis 1.2.x :)09:19
kirillkadhx_m: How I can enabled error witch can help you?09:19
dhx_mkirillka: add to config_inc.php:09:19
dhx_m$g_show_detailed_errors = ON;09:19
dhx_m$g_display_errors = array(E_WARNING => 'halt',09:19
dhx_m                           E_NOTICE => 'halt',09:19
dhx_m                           E_USER_ERROR => 'halt',09:19
dhx_m                           E_USER_WARNING => 'halt',09:19
dhx_m                           E_USER_NOTICE => 'halt',09:19
dhx_m                           E_ALL => 'halt');09:19
kirillkadhx_m: nothing - only blank page09:20
dhx_mkirillka: do you have any uncommitted patches/changes in your current MantisBT directory?09:21
dhx_mah better question... can you checkout a fresh copy of the current 1.3.x branch (master) and see if it works out-of-the-box?09:22
alemayowow ... PHPXref is cool09:26
alemayowhy is there no huuuge link to mantisforge on mantisbt.org .... hmpf09:26
dhx_moh sorry, I meant git.mantisforge.org :)09:27
dhx_mno wonder you had trouble finding it09:27
dhx_malemayo: phpxref will be broken at present (we need to patch it to handle some changes I made to how includes are found)09:28
alemayowhere is the actual code of a plugin, let's say: http://git.mantisforge.org/w/tgulacsi-unosoft.git ??09:32
* alemayo is out for lunch09:32
kirillkadhx_m: fresh not work too :(09:32
kirillkadhx_m: this master branch with test data09:39
dhx_malemayo: see http://git.mantisforge.org/w/source-integration.git?a=tree09:44
dhx_mkirillka: I can't reproduce... or see any reason why it'd only show a blank page.... can you view web server error logs?09:44
kirillkadhx_m: [12/Jan/2010:11:47:45 +0200] "GET /test/ HTTP/1.1" 200 2609:48
dhx_mtry view.php?id=109:48
dhx_maccount_page.php, etc09:49
dhx_ma few different PHP files09:49
kirillka10.0.129.235 - - [12/Jan/2010:11:49:16 +0200] "GET /test/view.php?id=1 HTTP/1.1" 200 2609:49
kirillka10.0.129.235 - - [12/Jan/2010:11:49:19 +0200] "GET /test/account_page.php HTTP/1.1" 200 2609:49
kirillkabut all blank page09:49
dhx_mhave you checked php.ini to make sure error reporting is on/debug verbosity high/etc?09:50
dhx_mdisplay_errors in particular09:52
kirillkadisplay_errors = On09:53
dhx_myep09:54
kirillkarestart httpd09:54
kirillkabut nothing in web and log09:54
alemayodhx_m: http://git.mantisforge.org/w/tgulacsi-unosoft.git?a=tree --> 404 - Reading tree failed11:03
dhx_malemayo: is that your repository?11:04
alemayono11:05
alemayo:)11:05
dhx_mthe reason you get that error is that they haven't uploaded a master branch11:05
dhx_mthey've only pushed this: http://git.mantisforge.org/w/tgulacsi-unosoft.git?a=tree;h=refs/heads/tgulacsi-unosoft;hb=tgulacsi-unosoft11:05
alemayodhx_m: looks like the whole mantis code ...11:15
Wraiythdhx_m: wasn't here when you replied. Yes, email notifications are turned on, but it seems like the email confirmation failing is randomly happening. Could be an issue with our host, I'm not sure, but it seems intermittent.11:15
dhx_mback11:50
dhx_malemayo: it is... it's a branch :)11:50
dhx_malemayo: I was pointing you to the SourceIntegration plugin before which isn't the whole code... it's a plugin ;)11:50
alemayoyeah, got it :)11:51
alemayoI am just wondering whether I should make my customizations towards mantis 1.2.0rc2 or the latest git version11:57
alemayobut we plan to use that soon in our production environment so I guess the 1.2.0 is safer :) ?11:58
dhx_magainst the 1.2.x branch for now12:00
dhx_m1.3.x will be undergoing a lot of changes12:01
alemayothe OO-work :) ?12:02
dhx_mso there isn't really much point in developing plugins for it unless you plan to keep up to date with development12:02
dhx_myeah12:02
dhx_m... depending on who wants to help out with it :)12:02
alemayowanting .. yes .. time .. no :)12:07
alemayoanyway .. .I will try to skill-up a PHP developer :) but first of all I have to do this on my own and my core job is normally networking and server infrastructure, not development :)12:07
dhx_mwell as I said before, if you make changes to the core of Mantis, pass the patches on and we'll see if we can integrate them upstream12:19
dhx_mthe advantage of open source is that you can push your changes upstream... at which point you don't need to care about maintaining those changes yourself :)12:19
alemayoI know :)12:21
alemayoJust was wondering if there is no DB update necessary from 1.2.0 RC 1 to RC 2 ? just copied my config and it directly works ...12:22
alemayoI think I will make a patch to extend custom fields sequence (negativ ID shows them on top of the report)12:25
paul_____02:15 < nuclear_eclipse> paul_____: what is the purpose of require_api and require_lib?12:26
paul_____that's dhx's code12:26
paul_____I dont really see why we need require_lib12:26
paul_____seems redundant12:26
dhx_mnuclear_eclipse: avoids stat() calls from require_once()12:34
dhx_mnuclear_eclipse: in tests, it's probably twice as quick... on Linux, which caches stat() results12:34
dhx_mpaul_____: require_lib/require_api look in the $g_library_path and $g_core_path directories respectively12:35
dhx_mpaul_____: thus you don't have to worry about filename clashes, or require_once() having to search 10 different directories for a file when you already know where it'll be12:36
paul_____I need to look at what I had before12:36
paul_____as I vaguely recall looking at autoloading of those libs12:36
paul_____(I recall a performance/memory improvement in adodb where it autoloads classes we dont use for example12:37
* paul_____ thinsk12:37
dhx_mautoloading is the ideal method to use12:37
dhx_mI'd love to kill off all require_* calls12:37
dhx_mwe don't need to include kitchen sinks every time we want to call just a single function from access_api, for instance12:38
paul_____anyway12:43
paul_____require_lib I think we should *kill*12:43
paul_____all our libs are classes right?12:43
paul_____so can be engineered to autoload12:43
dhx_mI'm happy with that decision, if we fix autoload appropriately (ie. don't use require_* calls inside the code to load libraries)12:44
paul_____biab12:46
alemayohow can I suppress those "Common subdirectories" messages when doing diff -u originalmantis/ mymantis/13:30
alemayooh, I should use -r .. :)13:33
alemayodhx_m: if you have any suggestions on my first patch .. :) http://www.mantisbt.org/bugs/view.php?id=1138513:38
paul_____I probably wouldn't do it like that personally13:41
paul_____the complete order of all fields should be customisable13:41
alemayoit is13:42
alemayoah you mean also the build-in ones ...13:42
paul_____I mean13:42
paul_____yes13:42
paul_____bbl - need to go back to work13:42
alemayobut that's harder to implement :)13:42
alemayobut you're right...13:42
azneitahi guys! i'm having problems with email15:21
azneitathe email sectio of config_inc.php looks like this -> http://pastebin.com/d17bfd8bf15:23
azneitaso far no email goes out15:23
azneitalikewise, phpmailer is already on php's path15:24
nuclear_eclipseazneita: 1.1.x currently doesn not work properly with gmail15:24
azneitaouch15:24
nuclear_eclipseyou'll need to download 1.2 (not yet finished) to use gmail as your smtp server15:25
nuclear_eclipseor wait a couple weeks for a final release15:25
azneitai tried using mail() but it's not working too15:25
nuclear_eclipsemail() would require setting up your php.ini appropriately15:26
nuclear_eclipseor having an MTA installed on your local machine15:26
azneitaphp.ini meaning getting phpmailer classes on php's path right?15:27
nuclear_eclipseno, I mean that mail() uses PHP's core configuration to determine how to send mail15:27
nuclear_eclipseso you'd have to setup your php.ini to list gmail's servers, etc15:27
azneitaah, i'm not that far ahead15:28
azneitamy best option then is to use a local MTA15:28
nuclear_eclipseif you're running unix/linux, setting up a simple MTA is probably the best option15:29
azneitaand the use phpmailer_method_sendmail15:29
nuclear_eclipsethat, or leave it at the default mail(), and php will pick up the sendmail call15:30
azneitano other variables to setup right?15:30
nuclear_eclipseeg, I have postfix on my server, and never touched the phpmailer configs for mantis, and it just worked right out of the box15:30
azneitalet me see my package list15:31
azneitanothing installed15:31
nuclear_eclipsethere might be another MTA that would be easier to setup than postfix though15:32
nuclear_eclipsewhat distro are you on?15:32
azneitacentos15:32
nuclear_eclipsethat's what we use on mantisbt.org, but I'm not sure what MTA we have15:34
azneitaout of the box, postfix should pick up anything mail() throws at it right?15:34
nuclear_eclipseI would expect it to15:35
azneitalet me give it a try15:35
nuclear_eclipseyou could always test it with a script15:35
azneitaphpmailer's scripts?15:39
azneitaeverything working now15:45
azneitait seems like i just need the MTA15:45
azneitathanks nuclear_eclipse15:46
paul_____dhx_m: you broke something19:52

Generated by irclog2html.py