IRC log of #dokuwiki @ irc.libera.chat

For Saturday, 29 March 2008

  1. quit
    splitbrain (n=andi@port-87-234-70-208.dynamic.qsc.de) has quit ("Leaving")
  2. message at
    zimbot
    RSS Update rssforum: [SOLVED] Shortcut Icon Not Working (Thema: Shortcut Icon Not Working) <http://forum.dokuwiki.org/post/6173>; || Problem eingekreist: phpBB2-Integration ist schuld! (Thema: Suche liefert (fast) keine Ergebnisse) <http://forum.dokuwiki.org/post/6165>;
  3. join
    jugg (n=tasks@c-67-168-157-186.hsd1.wa.comcast.net) entered the channel
  4. quit
    hunter (n=thm@shark.biology.duke.edu) has quit ("Hunter Go Bye Bye")
  5. join
    Manderson (n=Anderson@24-171-48-139.dhcp.stls.mo.charter.com) entered the channel
  6. quit
    hotte (n=frank@dslb-084-057-004-187.pools.arcor-ip.net) has quit (Read error: 110 (Connection timed out))
  7. message at
    zimbot
    RSS Update rssforum: [SOLVED] Shortcut Icon Not Working (topic: Shortcut Icon Not Working) <http://forum.dokuwiki.org/post/6173>; || Problem eingekreist: phpBB2-Integration ist schuld! (topic: Suche liefert (fast) keine Ergebnisse) <http://forum.dokuwiki.org/post/6165>;
  8. join
    Cadistan (n=Cad@c-24-21-195-198.hsd1.or.comcast.net) entered the channel
  9. quit
    Manderson (n=Anderson@24-171-48-139.dhcp.stls.mo.charter.com) has quit ("Hey Guys! Big Gulps huh? Alright....well, See ya!")
  10. nick
    jugg is now known as jugg|away
  11. quit
    Chris--S (n=Chris--S@87-194-159-222.bethere.co.uk) has quit ()
  12. quit
    peppi (n=mikesmit@S0106000f6686c319.ed.shawcable.net) has quit (Read error: 110 (Connection timed out))
  13. nick
    oiv is now known as oiv_
  14. part
    oiv_ (n=oiv@a91-154-74-131.elisa-laajakaista.fi) has left the channel ()
  15. join
    duke__ (i=duke@pD9ED30D7.dip0.t-ipconnect.de) entered the channel
  16. quit
    Duke (i=duke@pD9ED0E79.dip0.t-ipconnect.de) has quit (Read error: 110 (Connection timed out))
  17. nick
    duke__ is now known as Duke
  18. nick
    jugg|away is now known as jugg
  19. quit
    jugg (n=tasks@c-67-168-157-186.hsd1.wa.comcast.net) has quit ()
  20. join
    berlindave (n=dave@i59F72E39.versanet.de) entered the channel
  21. message at
    berlindave
    good morning!
  22. message at
    berlindave
    has anybody any experience in integrating dokuwiki with phpbb2's user management?
  23. part
    berlindave (n=dave@i59F72E39.versanet.de) has left the channel ()
  24. join
    berlindave_ (n=dave@i59F72E39.versanet.de) entered the channel
  25. quit
    berlindave_ (n=dave@i59F72E39.versanet.de) has quit ()
  26. join
    berlindave (n=dave@i59F72E39.versanet.de) entered the channel
  27. join
    andi_ (n=andi@port-87-234-70-208.dynamic.qsc.de) entered the channel
  28. message at
    berlindave
    good morning, andi!
  29. message at
    andi_
    heyas berlindave
  30. quit
    berlindave (n=dave@i59F72E39.versanet.de) has quit ()
  31. join
    berlindave (n=dave@i59F72E39.versanet.de) entered the channel
  32. message at
    berlindave
    are you the dvelopper of the dokuwiki?
  33. message at
    andi_
    yes
  34. nick
    andi_ is now known as splitbrain
  35. message at
    berlindave
    cool! may I ask you a question? i don't want to bother you
  36. message at
    splitbrain
    that's what this channel is for
  37. message at
    berlindave
    ok, I posted the question also in the forum, but I didn't get an answer, yet: I have problems integrating the user management of phpBB2
  38. message at
    berlindave
    the user management itself works well, but got lost of the automatic updating of the searchindex
  39. message at
    berlindave
    can you give me any hints?
  40. message at
    splitbrain
    that should be completely unrelated
  41. message at
    splitbrain
    what template do you use?
  42. message at
    berlindave
    monobook
  43. message at
    berlindave
    but I had the same problem withe the original template
  44. message at
    splitbrain
    can you give me an URL?
  45. message at
    berlindave
    yes, but I have to set up an testing account - wait a minute, please
  46. message at
    berlindave
    ok, here it is:
  47. message at
    berlindave
    http://www.wildensteiner-singkreis.de/intern/dokuwiki/
  48. message at
    berlindave
    user: 'testaccount' pw: wiki2test
  49. message at
    berlindave
    i described the problem here: http://forum.dokuwiki.org/thread/1895
  50. message at
    splitbrain
    that is really strange
  51. message at
    splitbrain
    what server is this running on?
  52. message at
    berlindave
    http://www.wildensteiner-singkreis.de/infophp.php
  53. message at
    splitbrain
    hmm I have to look at this later. i dont have the right debugging extensions here right now (I'm still in bed :-))
  54. message at
    berlindave
    ok … ;-)
  55. message at
    berlindave
    but many thanks in advance! :-)
  56. message at
    splitbrain
    its nothing obvious so much i can tell.. probably something from the phpbb libs that interferes... might be a session locking problem
  57. message at
    splitbrain
    btw. do you get any errors in your webserverlogs?
  58. message at
    berlindave
    i didn't have a look at them yet
  59. message at
    berlindave
    i'll try to find out
  60. message at
    berlindave
    I got yesterdays logfile. how can I find out, if there are errors?
  61. message at
    splitbrain
    make sure you have te right file - error are logged seperately
  62. message at
    splitbrain
    i'm off for a shower and breakfast - cya later
  63. quit
    splitbrain (n=andi@port-87-234-70-208.dynamic.qsc.de) has quit ("Leaving")
  64. join
    nlights (n=nlights@p5484DF6D.dip.t-dialin.net) entered the channel
  65. quit
    lsmith (n=lsmith@77-57-23-243.dclient.hispeed.ch) has quit (Nick collision from services.)
  66. join
    lsmith_ (n=lsmith@77-57-23-243.dclient.hispeed.ch) entered the channel
  67. quit
    berlindave (n=dave@i59F72E39.versanet.de) has quit ()
  68. join
    berlindave (n=dave@i59F72E39.versanet.de) entered the channel
  69. join
    splitbrain (n=andi@port-87-234-70-208.dynamic.qsc.de) entered the channel
  70. message at
    splitbrain
    berlindave, are you there?
  71. message at
    splitbrain
    the indexer.php returns the string "Hacking attempt!" when called from within the page
  72. message at
    splitbrain
    I guess that is something coming from phpbb
  73. message at
    berlindave
    hi splitbrain, yea, here I am
  74. message at
    berlindave
    ok … but what could it be?
  75. message at
    splitbrain
    i cannot say without the phpbb code - what version do you use?
  76. message at
    berlindave
    the latest 2.0.23
  77. message at
    splitbrain
    okay, got it
  78. message at
    berlindave
    but i have also installed several mods
  79. message at
    splitbrain
    hmm I'm not yet sure where exactly the problem is caused
  80. join
    Chris--S (n=Chris--S@87-194-159-222.bethere.co.uk) entered the channel
  81. message at
    splitbrain
    okay, phpBB checks for a set define IN_PHPBB - if not defined it will die with that string
  82. message at
    splitbrain
    but the define is set in the auth class so that shouldn't be the problem
  83. message at
    splitbrain
    there are a few mor occurances in common.php - checking those now
  84. message at
    berlindave
    ok
  85. message at
    berlindave
    tell me, if i can help you
  86. message at
    splitbrain
    hmm those other do not seem to be the problem either
  87. message at
    berlindave
    btw, my hoster gives me no access to the error logs
  88. message at
    splitbrain
    becsue it only happens when the indexer is called from within the page, but not when called directly I guess there is some referrer checking somewhere
  89. message at
    splitbrain
    but there seems to be no such thing in the phpbb core code
  90. message at
    splitbrain
    what mod do you have installed?
  91. message at
    berlindave
    2007-08-23 • remove_COPPA • selbst modifiziert • ok
  92. message at
    berlindave
    2007-08-29 • Anti Bot Question MOD 2.0.1 • http://www.das-gameboard.de/dload.php?action=file&file_id=81 • ok
  93. message at
    berlindave
    2007-08-29 • recent_topics_more • http://www.phpbb.de/moddb/mod.php?id=48 • ok mit addon: http://www.phpbb.de/viewtopic.php?p=897509#897509
  94. message at
    berlindave
    2007-08-29 • wer_war_da_Mod_1.9.4 • http://www.redio.de/topics/29.html • ok
  95. message at
    berlindave
    2007-09-02 • DB Maintenance Mod • http://www.phpbb.de/moddb/maintenance • ok
  96. message at
    splitbrain
    hmm
  97. message at
    splitbrain
    they all look clean
  98. message at
    splitbrain
    okay so it is most probably in phpbb's common.php
  99. message at
    splitbrain
    there are several die("Hacking attempt") calls in that file
  100. message at
    splitbrain
    could you edit this file and add a number to each of these calls?
  101. message at
    splitbrain
    so it reads die("Hacking attempt 1")
  102. message at
    berlindave
    ok - wait a minute
  103. message at
    berlindave
    ok, done
  104. message at
    berlindave
    there were 3 items
  105. message at
    splitbrain
    hmm okay the response is still without a number so we can rule out common.php
  106. message at
    berlindave
    ok
  107. message at
    splitbrain
    and all other occurences are checks for IN_PHPBB
  108. message at
    splitbrain
    that is really strange
  109. message at
    splitbrain
    are you sure there are no other mods installed ?
  110. message at
    berlindave
    yes
  111. message at
    berlindave
    i documented every mod carefully
  112. message at
    berlindave
    i searched for "die("Hacking attempt" in my installation
  113. message at
    berlindave
    i found 15 occurencies
  114. message at
    splitbrain
    okay let's try something
  115. message at
    splitbrain
    put the following at the top of lib/exe/indexer.php
  116. message at
    splitbrain
    if(!defined('IN_PHPBB')) define('IN_PHPBB',true);
  117. message at
    berlindave
    ok, done
  118. message at
    splitbrain
    good. still the same
  119. message at
    m8t
    hey
  120. message at
    splitbrain
    this means there has to be some code I do not have here
  121. message at
    m8t
    splitbrain: got any news from brian?
  122. message at
    berlindave
    ???
  123. message at
    splitbrain
    berlindave, could do a zip of your complete phpbb install and send it in a mail?
  124. message at
    splitbrain
    m8t, brian?
  125. message at
    berlindave
    sure
  126. message at
    berlindave
    pass me your e-mail-adress
  127. message at
    splitbrain
    andi at splitbrain dot org
  128. message at
    m8t
    from xfce
  129. message at
    splitbrain
    m8t, ah no
  130. message at
    m8t
    fwiw, I modified the base template
  131. message at
    splitbrain
    m8t, how about when I send the interview questions to you and you pass them around?
  132. message at
    m8t
    sure, I can do that
  133. message at
    m8t
    mmassonnet at gmail com
  134. message at
    splitbrain
    just found it at your site :-)
  135. message at
    berlindave
    could last a few minutes - i fetch the files "fresh" from the server via ftp …
  136. message at
    splitbrain
    m8t, okay mail is on its way :-)
  137. message at
    splitbrain
    berlindave, no problem
  138. message at
    m8t
    :)
  139. message at
    splitbrain
    berlindave, when sending that zip leave out things like avatar pics or user uploads ;-)
  140. message at
    berlindave
    ok
  141. join
    BYTE-Smasher (n=bytesmas@S01060013d4c103e3.tb.shawcable.net) entered the channel
  142. message at
    berlindave
    splitbrain, mail is on its way …
  143. message at
    splitbrain
    okay - can take a while through my mailserver's graylisting ;-)
  144. message at
    berlindave
    ok
  145. message at
    lsmith_
    btw .. if anyone has spare programming cycles and wants to help on wiki.php.net: http://wiki.php.net/todo/wiki
  146. message at
    lsmith_
    anyone that is really motivated to help could even try to squeeze out an @php.net account
  147. message at
    lsmith_
    ok .. shopping time
  148. message at
    splitbrain
    lsmith_, for the last 3 point just use interwiki
  149. message at
    splitbrain
    berlindave, did you undo the number adding in the common.php?
  150. message at
    berlindave
    yes
  151. message at
    splitbrain
    that is soo strange
  152. message at
    zimbot
    RSS Update rssdarcs: 29 Mar 13:14 - fix multidiff when one revision is current FS#1355 <http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20080329131438-7ad00-d3ab26eef403b1008a0d24c719f533e81f8ee6b5.gz>;
  153. message at
    splitbrain
    there is nothing that could cause this except on part in common.php were I'm not sure what it does
  154. message at
    splitbrain
    wait
  155. message at
    splitbrain
    I just saw that the error is "Hacking attempt!" but all but one occurrence print "Hacking attempt"
  156. message at
    splitbrain
    without an exclamation mark
  157. message at
    berlindave
    aha …
  158. message at
    splitbrain
    and that's in common.php
  159. message at
    splitbrain
    dammit now I have to try to understand what the hell this part of the code does
  160. join
    Manderson (n=Anderson@24-171-48-139.dhcp.stls.mo.charter.com) entered the channel
  161. message at
    splitbrain
    berlindave, I'm still not 100% sure what this part of the code does but there is one simple solution
  162. message at
    splitbrain
    disable register_globals in yout PHP install
  163. message at
    splitbrain
    which is a good idea security wise anyway
  164. message at
    berlindave
    can i do this by .htaccess?
  165. message at
    splitbrain
    berlindave, I think so
  166. quit
    nsaaman (n=nsaaman@203.78.217.176) has quit (Remote closed the connection)
  167. message at
    berlindave
    ok, i'll try
  168. message at
    splitbrain
    php_flag register_globals off should work
  169. join
    nsaaman (n=nsaaman@203.78.217.176) entered the channel
  170. message at
    berlindave
    in which .htaccess? in the root directory?
  171. message at
    splitbrain
    yes
  172. message at
    berlindave
    ok, done
  173. message at
    berlindave
    seems to be succesful: http://www.wildensteiner-singkreis.de/infophp.php
  174. message at
    splitbrain
    yes seems to work
  175. message at
    splitbrain
    be sure to remove the test account
  176. message at
    splitbrain
    oh and please add some info to the wiki
  177. message at
    berlindave
    the searchindex is updated again?
  178. message at
    splitbrain
    should be
  179. message at
    splitbrain
    at least i no longer get any error message
  180. message at
    berlindave
    great!!!
  181. message at
    berlindave
    yes, i saw it by the date of the file on the server in data/index
  182. message at
    berlindave
    ok, i drop a not on the wiki
  183. message at
    berlindave
    note
  184. message at
    berlindave
    and as soon my paypal account is reactivated, i buy you a beer!
  185. message at
    splitbrain
    thanks :-)
  186. message at
    berlindave
    i thank YOU! :-)
  187. message at
    splitbrain
    was an interesting problem :-)
  188. message at
    berlindave
    too hard for me … ;-)
  189. message at
    zimbot
    RSS Update rssforum: Re: [SOLVED] phpBB2 user integration – problems with searchindex <http://forum.dokuwiki.org/post/6174>; || [SOLVED] phpBB2 user integration – problems with searchindex (Has anybody any experience with ... <http://forum.dokuwiki.org/post/6164>;
  190. nick
    Manderson is now known as Manderson|MONSTE
  191. message at
    zimbot
    RSS Update rssforum: Problem gelöst (topic: [SOLVED] Suche liefert (fast) keine Ergebnisse) <http://forum.dokuwiki.org/post/6175>; || Problem eingekreist: phpBB2-Integration ist schuld! (topic: [SOLVED] Suche liefert (fast) keine ... <http://forum.dokuwiki.org/post/6165>;
  192. part
    berlindave (n=dave@i59F72E39.versanet.de) has left the channel ()
  193. quit
    jawe (n=nnjawe@unaffiliated/jawe) has quit (zelazny.freenode.net irc.freenode.net)
  194. join
    jawe (n=nnnjawe@ip217196072013.serveroffice.com) entered the channel
  195. quit
    jawe (n=nnnjawe@ip217196072013.serveroffice.com) has quit (zelazny.freenode.net irc.freenode.net)
  196. join
    jawe (n=nnnnjawe@ip217196072013.serveroffice.com) entered the channel
  197. quit
    nsaaman (n=nsaaman@203.78.217.176) has quit (Remote closed the connection)
  198. join
    nsaaman (n=nsaaman@203.78.221.48) entered the channel
  199. message at
    Chris--S
    hey Splitbrain ... are you still around?
  200. message at
    splitbrain
    Chris--S, yes
  201. message at
    Chris--S
    there is one minor change I want to make to code -> geshi which slightly changes the behaviour for any plugins using p_xhtml_cached_geshi
  202. message at
    Chris--S
    currently leading and trailing blank lines are stripped in the renderer before handing the text to p_xhtml_cached_geshi
  203. message at
    Chris--S
    I would like to move the stripping into p_xhtml_cached_geshi
  204. message at
    Chris--S
    do you see a problem with that?
  205. message at
    splitbrain
    for the code plugin? or what's the reason?
  206. message at
    Chris--S
    to simplify fix for fs#1350
  207. message at
    Chris--S
    currently calls to geshi all go through code() method
  208. message at
    Chris--S
    the only thing it does is strip leading and trailing blank line
  209. message at
    splitbrain
    okay if it helps. I guess it won't hurt.
  210. message at
    Chris--S
    moving the code into p_xhtml_cached_geshi, mean replacing the calls to code with direct calls to p_xhtml_cached_geshi, that way each caller can choose their own html wrapper element
  211. message at
    Chris--S
    which is what is required to effect the fix for that bug
  212. message at
    splitbrain
    okay go ahead
  213. message at
    Chris--S
    what is your take on adding an extra parameter to 'html' and 'php' function in the xhtml renderer. The extra parameter would have a default value to maintain current behaviour, but would allow the block modes (phpblock and htmlblock) to call their corresponding inline version with a different value and avoid duplicating the (small amount of) code in the inline versions?
  214. message at
    splitbrain
    makes sense
  215. message at
    Chris--S
    I've just added a note to the bug report about styling the inline 'html' and 'php'. Do you have any thoughts?
  216. message at
    splitbrain
    wouldn't be the <code> tag more fitting?
  217. message at
    Chris--S
    good point
  218. message at
    splitbrain
    ah no
  219. message at
    splitbrain
    nonsense
  220. message at
    Chris--S
    ?
  221. message at
    splitbrain
    those are producing raw html output - we're not talking about the code boxes are we?
  222. message at
    Chris--S
    some people reckon source should be double wrapped as <pre><code> ... </code></pre>
  223. message at
    Chris--S
    yes we are
  224. message at
    Chris--S
    the problem is when htmlok and phpok are off
  225. message at
    splitbrain
    ah okay... so we have an inline mode for code and and file now
  226. message at
    splitbrain
    yes, that should use <code> then
  227. message at
    Chris--S
    no, just for php and html
  228. message at
    Chris--S
    I haven't changed code or file
  229. message at
    splitbrain
    okay *confused*
  230. message at
    splitbrain
    in the old code when php was disabled, the code method was called right?
  231. message at
    Chris--S
    yes
  232. message at
    Chris--S
    now the call goes straight to p_xhtml_cached_geshi
  233. message at
    splitbrain
    now the php method will call p_geshi
  234. message at
    splitbrain
    okay
  235. message at
    splitbrain
    the wrapping with <code> or <span> only happens when php is disabled?
  236. message at
    Chris--S
    I've changed the call to geshi to use GESHI_HEADER_NONE and then have p_xhtml_cached_geshi place its own wrapping element around the geshi output
  237. message at
    Chris--S
    so rather than be restricted to PRE, DIV or none, we can choose any HTML element we like (I'm not bothering to check for a valid element)
  238. message at
    Chris--S
    p_xhtml_cached_geshi will default to PRE, preserving existing behaviour (except the previously mentioned leading and trailing blank line stripping)
  239. message at
    splitbrain
    okay so the wrapper is only applied when php is disabled, because only then p_*_geshi is called
  240. message at
    splitbrain
    then I vote for <code> for inline and <pre> for block
  241. message at
    Chris--S
    ok
  242. message at
    Chris--S
    I've done that.
  243. message at
    Chris--S
    :)
  244. message at
    splitbrain
    great
  245. message at
    Chris--S
    I don't think code and file should get inline equivalents
  246. message at
    Chris--S
    as the code and file syntax is currently lower case
  247. message at
    Chris--S
    where as for html and php, lowercase is inline, uppercase is block
  248. message at
    splitbrain
    yes that was my mistake
  249. message at
    Chris--S
    ok ... back to my original question :)
  250. message at
    splitbrain
    code will be styled automatically
  251. message at
    Chris--S
    any particular styles for that <code> element
  252. message at
    splitbrain
    that should be enough
  253. message at
    Chris--S
    a sample page http://wiki.jalakai.co.uk/dokuwiki_0/doku.php/sandbox/fs_1350
  254. message at
    splitbrain
    the highlighted php code looks like it has double newlines!?
  255. message at
    Chris--S
    i think that's because I'm on a mac
  256. message at
    splitbrain
    dokuwiki should filter mac newlines
  257. message at
    splitbrain
    ah there are <br> tags inside the <pre>
  258. message at
    Chris--S
    yeah.
  259. message at
    splitbrain
    that is is most probably a result of GESHI_HEADER_NONE
  260. message at
    Chris--S
    Chris--S goes investigating
  261. message at
    Chris--S
    yeah
  262. quit
    nsaaman (n=nsaaman@203.78.221.48) has quit (Remote closed the connection)
  263. message at
    Chris--S
    fixed
  264. message at
    splitbrain
    ah much better
  265. message at
    Chris--S
    off the top of your head do you know how to replace a function for a unit test?
  266. quit
    lsmith_ (n=lsmith@77-57-23-243.dclient.hispeed.ch) has quit ()
  267. message at
    Chris--S
    bleh!
  268. message at
    Chris--S
    after all that discussion, I find I need to add a helper method in the renderer to support unit testing
  269. join
    lsmith (n=lsmith@77-57-23-243.dclient.hispeed.ch) entered the channel
  270. message at
    Chris--S
    splitbrain: is it reasonable to use runkit functions in test cases?
  271. message at
    splitbrain
    Chris--S, yes but tests should check for availability
  272. message at
    splitbrain
    see the highlight tests
  273. message at
    Chris--S
    right.
  274. message at
    Chris--S
    function_exists('some_runkit_function') should be an ok test?
  275. message at
    Chris--S
    I see you check for extensions and dlls etc
  276. message at
    splitbrain
    it tries to load the extension with the dl() function
  277. message at
    splitbrain
    it might be available but not loaded by default
  278. join
    hotte (n=frank@dslb-088-065-130-221.pools.arcor-ip.net) entered the channel
  279. message at
    zimbot
    RSS Update rssforum: Re: Comment modifier l'apparence de l'index? <http://forum.dokuwiki.org/post/6177>; || Re: débutant dokuwiki <http://forum.dokuwiki.org/post/6176>;
  280. message at
    zimbot
    RSS Update rssdarcs: 29 Mar 19:52 - Updates to unit tests for FS#1350 patch <http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20080329195213-f07c6-e3899c9ea9a3d6b238a4bae1c57babc7251873bc.gz>; || 29 Mar 19:44 - Fix for FS#1350 <http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20080329194443-f07c6-00db3d502b07a6ff0c7f6e5c74a3691438504bcb.gz>;
  281. nick
    Manderson|MONSTE is now known as Manderson
  282. quit
    nlights (n=nlights@p5484DF6D.dip.t-dialin.net) has quit ("Leaving.")
  283. join
    nlights (n=nlights@p5484DF6D.dip.t-dialin.net) entered the channel