IRC log of #dokuwiki @ irc.libera.chat

For Thursday, 21 June 2007

  1. quit
    hunter (n=thm@jade.biology.duke.edu) has quit (Remote closed the connection)
  2. nick
    Mazon is now known as mazon
  3. quit
    [NikO] (n=niko@niko.codepot.org) has quit (Remote closed the connection)
  4. part
    Chris--S (n=Chris--S@cdsmith.plus.com) has left the channel ()
  5. join
    chimeric1afk (n=chi@p50816D0C.dip.t-dialin.net) entered the channel
  6. join
    Cad (n=Cad@c-24-21-195-198.hsd1.mn.comcast.net) entered the channel
  7. quit
    chimeric^afk (n=chi@p50816976.dip.t-dialin.net) has quit (Read error: 101 (Network is unreachable))
  8. quit
    Cad (n=Cad@c-24-21-195-198.hsd1.mn.comcast.net) has quit ("Leaving")
  9. join
    twogood (n=david@scummvm/undead/twogood) entered the channel
  10. quit
    twogood (n=david@scummvm/undead/twogood) has quit ("Ex-Chat")
  11. join
    Cad (n=Cad@c-24-21-195-198.hsd1.mn.comcast.net) entered the channel
  12. quit
    Cad (n=Cad@c-24-21-195-198.hsd1.mn.comcast.net) has quit ("nope")
  13. nick
    mazon is now known as Mazon
  14. join
    denisr (n=denis@out-of.ilog.fr) entered the channel
  15. message at
    r0sk
    morning Vietnam
  16. join
    caillou (n=caillou@84-74-185-34.dclient.hispeed.ch) entered the channel
  17. nick
    chimeric1afk is now known as chimeric
  18. message at
    chimeric
    morning
  19. message at
    bug^
    hi chimeric and *
  20. message at
    bug^
    r0sk: :-)
  21. message at
    chimeric
    hi bug^
  22. join
    splitbrain (n=splitbra@gw.cosmocode.de) entered the channel
  23. join
    BlackFog (n=office@lehrer.lehrer.uni-karlsruhe.de) entered the channel
  24. message at
    BlackFog
    morning
  25. message at
    splitbrain
    heya
  26. message at
    chimeric
    hellas splitbrain BlackFog
  27. message at
    splitbrain
    hehe, greek style today?
  28. message at
    chimeric
    splitbrain: yep, I was in the need for a change ;)
  29. message at
    BlackFog
    ^^
  30. message at
    chimeric
    bug^: I just read wiki:farm, cool!
  31. message at
    bug^
    chimeric: I discovered two days ago that I had it working for a few months now
  32. message at
    chimeric
    :)
  33. message at
    bug^
    during my talk on dokuwiki I remember having said farming was not currently working :-)
  34. message at
    bug^
    I was wrong
  35. message at
    bug^
    I should test it on the current devel revision
  36. message at
    bug^
    but darcs is not my friend for patches management :-)
  37. message at
    chimeric
    bug^: I may give it try to (as soon as I find some time) as the number of DokuWikis I run is constantly increasing ;)
  38. message at
    chimeric
    too*
  39. message at
    chimeric
    chimeric has to get some work done
  40. message at
    bug^
    splitbrain: is your googlesearch plugin able to index the contents of binary files?
  41. message at
    splitbrain
    it just uses google's index so what ever google can index will be found
  42. message at
    bug^
    ok, that's what I was thinking :-)
  43. join
    Chris--S (n=Chris--S@cdsmith.plus.com) entered the channel
  44. message at
    bug^
    hi Chris--S
  45. message at
    Chris--S
    hi
  46. message at
    bug^
    splitbrain: do you want me to upload the pdf of my talk on Doku to splitbrain ?
  47. message at
    bug^
    I thought about translating it first :-)
  48. message at
    bug^
    or turning it into page for s5
  49. message at
    BlackFog
    hello Chris--S
  50. message at
    bug^
    chimeric: redoing the farm with current devel shows a problem with the templates :-(
  51. message at
    bug^
    I have to find why style.ini in a child wiki is rewritten
  52. message at
    bug^
    I was already wondering if tpl/plugins should be child specific or global to the farm
  53. message at
    bug^
    I'd prefer child specific, but plugins and tpl live inside lib/
  54. message at
    chimeric
    bug^: what about only linking lib/{exe,images,scripts,styles}
  55. join
    [NikO] (n=niko@niko.codepot.org) entered the channel
  56. join
    ilreds (n=massimo@89.105.64.254) entered the channel
  57. message at
    ilreds
    hi
  58. message at
    ilreds
    i'm not able to set acls divided by namespaces, i can only do this for single pages
  59. message at
    chimeric
    ilreds: are you using the ACL manager admin plugin?
  60. message at
    ilreds
    yes, i think
  61. message at
    ilreds
    i use the last stable release of dokuwiki without additional plugins
  62. message at
    BlackFog
    why not?
  63. message at
    BlackFog
    what is happening?
  64. message at
    chimeric
    ilreds: if you browse to a page, and then open the ACL manager you should be able to select whether to set the ACLs for the page itself or the namespace
  65. message at
    BlackFog
    ilreds: pick a site below the namespace then you should get an acl for "namespace testnamespace:*"
  66. quit
    doof (n=doof@81.185.116.212) has quit (kornbluth.freenode.net irc.freenode.net)
  67. join
    doof (n=doof@81.185.116.212) entered the channel
  68. message at
    chimeric
    chimeric is wondering why the weather all of a sudden is rainy and ugly just when he`s about to spent the next 3days in a tent o_O
  69. message at
    ilreds
    yes!
  70. message at
    ilreds
    thanks to all
  71. message at
    BlackFog
    np
  72. message at
    BlackFog
    chimeric: murphys law! ;)
  73. message at
    BlackFog
    splitbrain: I narrowed FS#1004 a little bit, I'll try to comment it...
  74. message at
    chimeric
    BlackFog: yeah, this year it seems to me that at the top of his list of people to annoy
  75. message at
    chimeric
    that I am*
  76. message at
    BlackFog
    ^^
  77. join
    caillou_ (n=caillou@84-74-185-34.dclient.hispeed.ch) entered the channel
  78. quit
    caillou (n=caillou@84-74-185-34.dclient.hispeed.ch) has quit (Read error: 104 (Connection reset by peer))
  79. message at
    Chris--S
    OT:
  80. message at
    Chris--S
    Does anyone know if its possible to prevent mod_rewrite directives in a .htaccess file from working?
  81. message at
    splitbrain
    Chris--S, I'm not sure which file has precedence
  82. message at
    splitbrain
    global or .htaccess
  83. message at
    splitbrain
    but if .htacces then you could use
  84. message at
    splitbrain
    RewriteRule (.*) $1 [L]
  85. message at
    Chris--S
    I am trying RewriteRule ^.*$ test.php [L]
  86. message at
    Chris--S
    after a RewriteEngine On
  87. message at
    Chris--S
    and its not working
  88. message at
    splitbrain
    I guess the global rules are handled first
  89. message at
    Chris--S
    the module is loaded and .htaccess files are otherwise operational
  90. message at
    Chris--S
    ie, AllowOverride isn't set to none
  91. message at
    bug^
    Chris--S: you may need Options FollowSymlinks in the .htaccess
  92. message at
    Chris--S
    hmm, maybe AllowOverride is set to none.
  93. message at
    Chris--S
    any one know how to test its value?
  94. message at
    BlackFog
    no, sry
  95. nick
    Mazon is now known as mazon
  96. message at
    bug^
    Chris--S: set it to none :-)
  97. join
    hunter (n=thm@jade.biology.duke.edu) entered the channel
  98. message at
    Chris--S
    I need rewrite and its not working and I don't have direct access to the server and virtual host configs.
  99. message at
    Chris--S
    Anyhow, I am now convinced it is off, so I've emailed server admin to ask it turned on. :)
  100. message at
    bug^
    chimeric: I think I will rather try to move tpl/plugins out of lib for farming, I don't want to abuse of symlinks
  101. quit
    splitbrain (n=splitbra@gw.cosmocode.de) has quit ("Leaving")
  102. quit
    denisr (n=denis@out-of.ilog.fr) has quit ("Leaving")
  103. message at
    chimeric
    bug^: hmmm, only 4 more ;), and you generate your child instances with a script
  104. message at
    Chris--S
    bug^, how are you handling plugins?
  105. message at
    Chris--S
    they are global?
  106. message at
    chimeric
    chimeric is going to the southside festival now :D
  107. message at
    chimeric
    see you monday
  108. message at
    chimeric
    bye all
  109. nick
    chimeric is now known as chimeric^afk
  110. part
    henriknj_ (n=henrik@port64.ds1-gr.adsl.cybercity.dk) has left the channel ()
  111. quit
    ilreds (n=massimo@89.105.64.254) has quit ("Ex-Chat")
  112. join
    mmiikkee12 (n=mike@adsl-153-221-109.jax.bellsouth.net) entered the channel
  113. message at
    mmiikkee12
    where can i get to the admin interface on my wiki?
  114. message at
    mmiikkee12
    um, better question, where's the login page at
  115. part
    caillou_ (n=caillou@84-74-185-34.dclient.hispeed.ch) has left the channel ()
  116. join
    mluser (n=mluser@208.178.12.226) entered the channel
  117. nick
    mmiikkee12 is now known as not_mmiikkee12
  118. part
    not_mmiikkee12 (n=mike@adsl-153-221-109.jax.bellsouth.net) has left the channel ("Leaving")
  119. message at
    BlackFog
    bye
  120. quit
    BlackFog (n=office@lehrer.lehrer.uni-karlsruhe.de) has quit ("ChatZilla 0.9.78.1 [Firefox 2.0.0.4/2007051502]")
  121. message at
    bug^
    Chris--S: yes currently they are global
  122. message at
    bug^
    but this is probably bad
  123. message at
    Chris--S
    that was always the problem that struck me
  124. message at
    Chris--S
    really a structure is required that allows them to be local - or at least allows them to be enable/disabled locally
  125. message at
    bug^
    enable/disable means write access to lib/plugins/* so this cannot be global
  126. message at
    Chris--S
    how do you handle that?
  127. message at
    bug^
    currently I don't
  128. message at
    bug^
    plugins and templates are global
  129. message at
    Chris--S
    :)
  130. message at
    bug^
    but I will certainly add more symlinks and leave lib/plugins in the child wiki
  131. message at
    Chris--S
    maybe plugin enable/disable needs to move to local.php
  132. message at
    Chris--S
    at least in wiki farms
  133. message at
    Chris--S
    or if not local.php a single file in the local configuration directory
  134. message at
    bug^
    I wonder if templates should not be local too
  135. message at
    Chris--S
    templates aren't so bad
  136. message at
    Chris--S
    given that the selected template is stored in the local configuration
  137. message at
    bug^
    yes but one could want to use the same template in two childs but with different settings for the template
  138. message at
    Chris--S
    that's still fine, would be in local configuration
  139. message at
    Chris--S
    unless you are talking about a customised template
  140. message at
    bug^
    hum you're right, could be local config
  141. message at
    Chris--S
    but then that would now be a new template
  142. message at
    bug^
    another idea was to add a new place from which to load additional plugins
  143. message at
    bug^
    data/plugins
  144. message at
    bug^
    or conf/plugins/
  145. message at
    bug^
    not nice at all :-)
  146. message at
    Chris--S
    you really need to overload require & include and be smart about where to look for the file depending on the file name
  147. message at
    Chris--S
    having plugins installed and updated globally is sensible
  148. message at
    Chris--S
    it means the farm controller can ensure only secure/quality assured/compatible plugins are available
  149. message at
    Chris--S
    although I guess that is dependent on your farm policy
  150. message at
    bug^
    plugins must be local to each child, that's for sure
  151. message at
    Chris--S
    would not be nice for individual wiki admins to have to cope with plugin compatibility issues when the DW core installation is updated
  152. message at
    bug^
    I don't see how to avoid that
  153. message at
    Chris--S
    make them global, alias local lib directory to global lib directory, modify plugin manager and plugin_enable(), plugin_disable() to work in a two tier admin environment
  154. message at
    Chris--S
    I forget why I disabled plugins with a file in the plugin directory. I suspect it would be simple to replace with conf/plugin.php file.
  155. message at
    Chris--S
    which should be an acceptable update to core DW
  156. nick
    mazon is now known as Mazon
  157. join
    ejot (n=ejot@user198.85-195-60.netatonce.net) entered the channel
  158. quit
    ejot (n=ejot@user198.85-195-60.netatonce.net) has quit (Client Quit)
  159. join
    ejot (n=ejot@user198.85-195-60.netatonce.net) entered the channel
  160. join
    stoffell_h (n=stoffell@d51A580AB.access.telenet.be) entered the channel
  161. join
    yabare (n=lsad@88.224.195.121) entered the channel
  162. join
    splitbrain (n=andi@port-212-202-173-22.dynamic.qsc.de) entered the channel
  163. message at
    uBOTu-fr
    News about dokudev: 19 Jun 17:39 - Misc string fixes and fr update <http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20070619173914-19e2d-7cbef873f967f11ebc0090a1467a0b97d10ec395.gz>; || 20 Jun 16:31 - Code corrections in inc/auth/plain.class.php deleteUser() method <http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20070620163148-d26fc-f25224e3a9757c298461073386c854122ffb37c2.gz>;
  164. quit
    yabare (n=lsad@88.224.195.121) has quit ()
  165. quit
    stoffell_h (n=stoffell@d51A580AB.access.telenet.be) has quit (" HydraIRC -> http://www.hydrairc.com <- IRC with a difference")
  166. join
    yabare (n=lsad@88.224.195.121) entered the channel
  167. message at
    yabare
    hi
  168. message at
    yabare
    yesterday i have wrote about a bug in user maneger
  169. message at
    yabare
    then chris--s i think sad me to send this bug to bugs.splitbrain.org
  170. message at
    yabare
    so i did
  171. message at
    yabare
    then the response was
  172. message at
    yabare
    Reason for closing: Fixed
  173. message at
    yabare
    Additional comments about closing: fixed in devel
  174. message at
    yabare
    so i understand it is fixed
  175. message at
    splitbrain
    correct
  176. message at
    yabare
    but where should i look for this fix?
  177. message at
    splitbrain
    three options:
  178. message at
    splitbrain
    wait for the next release
  179. message at
    splitbrain
    install a current devel version
  180. message at
    splitbrain
    try to apply the patch manually
  181. message at
    yabare
    i installed
  182. message at
    yabare
    rc2007-05-24
  183. message at
    yabare
    is there a newer one?
  184. message at
    splitbrain
    not yet
  185. message at
    yabare
    so maybe you could help me if i write my error massage here
  186. message at
    yabare
    Hi;
  187. message at
    yabare
    In the "user maneger" when i try to edit a user and change his/her group(for example from the default group "user" to say "manegers") i got the following error;
  188. message at
    yabare
    Fatal error: Call to undefined method auth_plain::users() in ..../doku/inc/auth/plain.class.php on line 202
  189. message at
    yabare
    then i find all of my user list including admin is deleted. When i asked this on irc channel Chris--S advised me to make the following changes to plain.class.php ;
  190. message at
    yabare
    original;
  191. message at
    yabare
    202 $count = count($this->users());
  192. message at
    yabare
    203 $this->_loadUserData();
  193. message at
    yabare
    204 $count -= $count($this->users());
  194. message at
    yabare
    changed;
  195. message at
    yabare
    202 $count = count($this->users);
  196. message at
    yabare
    203 $this->_loadUserData();
  197. message at
    yabare
    204 $count -= count($this->users);
  198. message at
    yabare
    After these changes, now when i edit the group of a member from "user maneger", for that user everything goes fine(no errors) and the change is done succesfully but all other members except this member is deleted. Chris--S adviced me to ask here. Thank you for your help.
  199. message at
    yabare
    that was my massege
  200. message at
    splitbrain
    what do you want? there is a fix already?
  201. message at
    yabare
    where, i did not understand
  202. message at
    splitbrain
    I gave you three option on how to get the fix
  203. message at
    splitbrain
    read wiki:devel for info on how to get the devel version
  204. message at
    splitbrain
    or look at http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=summary for individual patches
  205. message at
    yabare
    then there is a devel(development?) version maybe i can find that or find a patch
  206. message at
    yabare
    thank you
  207. message at
    splitbrain
    I'm just reading the logs from yesterday
  208. message at
    splitbrain
    might be that you bug is not fixed
  209. message at
    yabare
    now i looked at these patches
  210. message at
    yabare
    and find that
  211. message at
    yabare
    same changes to lines 202-204 is suggested just as chris--s suggested to me
  212. message at
    splitbrain
    yeah that's why I said it might not be fixed
  213. message at
    yabare
    but these changes as i meintoned in my post do not solve the problem wholly
  214. message at
    splitbrain
    I assumed Chris' patch did fix the whole bug, but after reading the logs I understood that this is not the case
  215. message at
    splitbrain
    I reopened your bug report
  216. message at
    yabare
    then there is not a fix to my problem yet?
  217. message at
    splitbrain
    no
  218. message at
    Chris--S
    Hi Andi
  219. message at
    splitbrain
    I try to reproduce this
  220. message at
    splitbrain
    hi chimeric^afk
  221. message at
    splitbrain
    uups
  222. message at
    splitbrain
    hii Chris--S
  223. message at
    splitbrain
    :-)
  224. message at
    Chris--S
    I asked him to file a report after I couldn't work out what the cause was
  225. message at
    splitbrain
    (damned autocompletion)
  226. message at
    Chris--S
    the patch I sent fixed some bad code, not the underlying problem
  227. message at
    yabare
    then i think i should wait for a fix?
  228. message at
    Chris--S
    which appeared to be deleting users when no user deletes were requested
  229. message at
    splitbrain
    Chris--S, where you able to reproduce that?
  230. message at
    Chris--S
    no
  231. message at
    Chris--S
    I couldn't even see a potential execution path which would cause it
  232. message at
    yabare
    is it about the nnumber of users that i have "3" ?
  233. message at
    Chris--S
    there is only one call to deleteUsers() in the user manager and that is the only place which does an auth->delete
  234. message at
    splitbrain
    well writing the changed user always rewrites the whole file right?
  235. message at
    Chris--S
    the two lines which I fixed, 202 and 204 are within auth->delete method.
  236. message at
    Chris--S
    so somehow it was getting in there. Those lines are part of some code at the end of the method which fires if there has been some problem with file access
  237. message at
    splitbrain
    well adding a group should call auth_plain->modifyUser, correct?
  238. message at
    Chris--S
    I think so, I don't have the code open at present
  239. message at
    Chris--S
    it'd be handy to see a dump of the incoming post variables
  240. message at
    splitbrain
    it calls deleteUsers ...
  241. message at
    splitbrain
    if (empty($deleted)) return 0;
  242. message at
    splitbrain
    this $deleted is an array
  243. message at
    splitbrain
    so it should be count($deleted), shouldn't it?
  244. message at
    yabare
    if it would be helpful with this changed plain.class.php it also gives this error
  245. message at
    yabare
    Removing content from /homewww/wwwgitar/wwwhome/doku/conf/users.auth.php failed
  246. message at
    splitbrain
    hmm
  247. message at
    Chris--S
    Andi ... whre are you.
  248. message at
    splitbrain
    in auth_plain:deleteUsers()
  249. message at
    splitbrain
    yabare, yes that might be helpful
  250. message at
    Chris--S
    empty($deleted) should be the same as !count($deleted)
  251. message at
    splitbrain
    this message is issued in io_deleteFromFile
  252. message at
    yabare
    and also gives
  253. message at
    yabare
    User updated successfully
  254. message at
    yabare
    to be complete
  255. message at
    splitbrain
    Chris--S, you're right I just looked it up ;-)
  256. message at
    uBOTu-fr
    News about dokudev: 21 Jun 19:46 - check for empty group array in LDAP backend FS#1004 <http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20070621194636-7ad00-0a02dabd55d9bda3bf07b1eb8bcfdefd832c2df9.gz>;
  257. message at
    Chris--S
    yabare ... what are your user names?
  258. message at
    yabare
    one sec
  259. message at
    yabare
    kivanc
  260. message at
    yabare
    sertansenturk
  261. message at
    yabare
    wwwgitar
  262. message at
    yabare
    www gitar is admin
  263. message at
    yabare
    the others are users
  264. message at
    splitbrain
    the message is issued when the call to gzopen fails
  265. message at
    Chris--S
    gzopen?
  266. message at
    splitbrain
    ahh
  267. message at
    splitbrain
    I think I have an idea
  268. message at
    splitbrain
    yabare
  269. message at
    yabare
    yes
  270. join
    raffa (n=raffa@212.45.158.189) entered the channel
  271. message at
    splitbrain
    can you put a file at your server with the following content:
  272. message at
    splitbrain
    <?php php_info() ?>
  273. message at
    splitbrain
    something like info.php
  274. message at
    splitbrain
    then call it in your browser
  275. message at
    yabare
    ok to where?
  276. message at
    splitbrain
    in your dokuwiki root dir
  277. message at
    splitbrain
    the same dir where doku.php is located
  278. message at
    yabare
    ok
  279. message at
    splitbrain
    can you give us the link or copy'n'paste the output to the pastebin?
  280. message at
    yabare
    here is the thing that i get
  281. message at
    yabare
    Fatal error: Call to undefined function php_info() in /homewww/wwwgitar/wwwhome/doku/info.php on line 1
  282. message at
    splitbrain
    urks
  283. message at
    yabare
    link is
  284. message at
    yabare
    http://gitar.metu.edu.tr/doku/info.php
  285. message at
    Chris--S
    phpinfo()
  286. message at
    Chris--S
    no underscore
  287. message at
    splitbrain
    ah
  288. message at
    splitbrain
    okay
  289. message at
    yabare
    ok
  290. message at
    splitbrain
    I never can remember that ;-)
  291. message at
    yabare
    you can check the link now
  292. message at
    splitbrain
    great
  293. join
    hotte (i=h4153@dslb-084-057-012-240.pools.arcor-ip.net) entered the channel
  294. message at
    splitbrain
    Hardened-PHP Project
  295. message at
    Chris--S
    ah ...
  296. message at
    splitbrain
    hmm my first idea was stupid, because i was looking in the wrong if branch
  297. message at
    Chris--S
    nothing special is being done in that code.
  298. message at
    splitbrain
    well
  299. message at
    splitbrain
    I have one more idea
  300. message at
    splitbrain
    yabare, in inc/io.php line 257
  301. message at
    splitbrain
    is the following: $fh = @fopen($file,'wb');
  302. message at
    splitbrain
    can you remove the @
  303. message at
    splitbrain
    and try to modify your user again?
  304. message at
    splitbrain
    hopefully we get some error message
  305. message at
    yabare
    ok
  306. message at
    splitbrain
    Chris--S, what I think is it opens the file for writing (which empties it) but then thinks there was an error and aborts
  307. message at
    Chris--S
    and then the modified user gets written back
  308. message at
    splitbrain
    exactly
  309. message at
    splitbrain
    the big question is why
  310. message at
    splitbrain
    have you any experience with hardened php?
  311. message at
    Chris--S
    hey ... they use DW
  312. message at
    Chris--S
    no experience
  313. message at
    splitbrain
    :-)
  314. message at
    yabare
    no change
  315. message at
    splitbrain
    no errors?
  316. message at
    yabare
    i used this changed plain.php
  317. message at
    Chris--S
    you may need to look in the webserver log
  318. message at
    yabare
    same errors
  319. message at
    Chris--S
    is display_errors on?
  320. message at
    yabare
    let me recheck
  321. message at
    yabare
    Removing content from /homewww/wwwgitar/wwwhome/doku/conf/users.auth.php failed
  322. message at
    yabare
    that was the error
  323. message at
    Chris--S
    display_errors is on
  324. message at
    Chris--S
    and log_errors is off
  325. message at
    yabare
    sorry
  326. message at
    yabare
    i think i made a mistake
  327. message at
    yabare
    trying it again now
  328. message at
    splitbrain
    :-)
  329. message at
    yabare
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /homewww/wwwgitar/wwwhome/doku/inc/io.php on line 10
  330. message at
    yabare
    doku is completely crashed now
  331. message at
    yabare
    it is not opening
  332. message at
    splitbrain
    whatever you did it wasn't on line 257
  333. message at
    splitbrain
    restore inc/io.php and try again
  334. message at
    yabare
    ok
  335. message at
    yabare
    sorry i made the changes with excel
  336. message at
    yabare
    and it may be difficult
  337. message at
    splitbrain
    argh
  338. message at
    splitbrain
    why the hell do use excel??
  339. message at
    Chris--S
    try notepad
  340. message at
    yabare
    how can i count the lines?
  341. message at
    splitbrain
    or download this: http://www.flos-freeware.ch/notepad2.html its just a few kilobytes and is a great editor
  342. message at
    winkiller
    indeed
  343. message at
    winkiller
    much better than SciTE
  344. message at
    yabare
    ok
  345. message at
    yabare
    doing
  346. message at
    Chris--S
    or search for the string Andi gave you, its in the function io_DeleteFromFile
  347. message at
    yabare
    ok
  348. message at
    yabare
    here are the errors
  349. message at
    yabare
    Warning: fopen(/homewww/wwwgitar/wwwhome/doku/conf/users.auth.php) [function.fopen]: failed to open stream: Operation not permitted in /homewww/wwwgitar/wwwhome/doku/inc/io.php on line 257
  350. message at
    yabare
    Removing content from /homewww/wwwgitar/wwwhome/doku/conf/users.auth.php failed
  351. message at
    yabare
    User updated successfully
  352. message at
    yabare
    Warning: Cannot modify header information - headers already sent by (output started at /homewww/wwwgitar/wwwhome/doku/inc/io.php:257) in /homewww/wwwgitar/wwwhome/doku/inc/actions.php on line 131
  353. message at
    yabare
    User updated successfully
  354. message at
    splitbrain
    okay
  355. message at
    yabare
    and again deleted everything except the one i have edited
  356. message at
    splitbrain
    Chris--S, any ideas?
  357. message at
    splitbrain
    chris what are the permissions and owner/group of conf/users.auth.php ?
  358. message at
    splitbrain
    arg
  359. message at
    splitbrain
    not chris
  360. message at
    splitbrain
    yabare, of course
  361. message at
    yabare
    conf/ users
  362. message at
    yabare
    777
  363. message at
    yabare
    all of the permissions
  364. message at
    yabare
    given
  365. message at
    yabare
    for all
  366. message at
    Chris--S
    and the owner and group
  367. message at
    yabare
    owner,group,public
  368. message at
    yabare
    read write execute
  369. message at
    Chris--S
    some php configurations restrict file access when the file owner/group don't match the webserver owner group
  370. message at
    Chris--S
    not the permissions, the actual owner and group names
  371. message at
    yabare
    i did not understand what you mean?
  372. message at
    yabare
    user id for web server you mean?
  373. message at
    Chris--S
    the file will have an owner and a group
  374. message at
    Chris--S
    probably corresponding to your ftp account
  375. message at
    yabare
    i have filezilla
  376. message at
    yabare
    how can i check this
  377. message at
    yabare
    ftp account name is wwwgitar
  378. message at
    yabare
    d
  379. message at
    yabare
    id
  380. message at
    splitbrain
    hmm
  381. message at
    splitbrain
    let us try something
  382. message at
    bug^
    splitbrain/Chris: could you reproduce this problem?
  383. message at
    splitbrain
    yabare, remove or comment out lines 258 to 262
  384. message at
    splitbrain
    the whole if clause should go
  385. message at
    yabare
    from io.php?
  386. message at
    splitbrain
    yes
  387. message at
    splitbrain
    I wanna see if it succeeds to write regardless of the errors
  388. message at
    splitbrain
    but I doubt it
  389. message at
    splitbrain
    because $fh is not set
  390. message at
    splitbrain
    bug^, not reproducible here
  391. message at
    Chris--S
    PHP is reporting it can't open the file, but somehow it is opening the file
  392. message at
    Chris--S
    or at least its deleting it
  393. message at
    Chris--S
    that sounds like a php bug to me.
  394. message at
    splitbrain
    i agree
  395. message at
    splitbrain
    hmm the hardened php project does not seem to have a bug tracker?
  396. message at
    Chris--S
    its safe_mode that enforces file owner/group must match webserver group
  397. message at
    yabare
    hmm
  398. message at
    Chris--S
    ?
  399. message at
    yabare
    it succeded to edit
  400. message at
    yabare
    and not delete anything
  401. message at
    splitbrain
    it did?
  402. message at
    yabare
    gave the following
  403. message at
    yabare
    Warning: fopen(/homewww/wwwgitar/wwwhome/doku/conf/users.auth.php) [function.fopen]: failed to open stream: Operation not permitted in /homewww/wwwgitar/wwwhome/doku/inc/io.php on line 257
  404. message at
    yabare
    Warning: fwrite(): supplied argument is not a valid stream resource in /homewww/wwwgitar/wwwhome/doku/inc/io.php on line 259
  405. message at
    yabare
    Warning: fclose(): supplied argument is not a valid stream resource in /homewww/wwwgitar/wwwhome/doku/inc/io.php on line 260
  406. message at
    yabare
    User updated successfully
  407. message at
    yabare
    Warning: Cannot modify header information - headers already sent by (output started at /homewww/wwwgitar/wwwhome/doku/inc/io.php:257) in /homewww/wwwgitar/wwwhome/doku/inc/actions.php on line 131
  408. message at
    splitbrain
    wow
  409. message at
    splitbrain
    that really weird
  410. message at
    Chris--S
    check the file
  411. message at
    Chris--S
    see if it now has the same user twice
  412. message at
    yabare
    here one more important thing
  413. message at
    yabare
    i use the language turkish
  414. message at
    splitbrain
    yabare, that shouldn't matter
  415. message at
    yabare
    is there be a problem due to this
  416. message at
    yabare
    but all of the turkish characters are also gone
  417. message at
    Chris--S
    yabare, can you look in the users.auth.php file?
  418. message at
    yabare
    ok
  419. message at
    yabare
    ???
  420. message at
    yabare
    only have the edited
  421. message at
    yabare
    user
  422. message at
    yabare
    but shows all the users on the screen
  423. message at
    yabare
    let me refresh it
  424. message at
    yabare
    on the screen
  425. message at
    yabare
    now
  426. message at
    splitbrain
    so writing failed, but the user array got updated
  427. message at
    yabare
    it is gone
  428. message at
    yabare
    after the refresh again i only have the edited user
  429. message at
    Chris--S
    the user array was already read, it only rereads it if a problem is reported
  430. message at
    yabare
    ok
  431. message at
    Chris--S
    is the PHP run by your university?
  432. message at
    Chris--S
    PHP+Webserver?
  433. message at
    yabare
    run by university i think
  434. message at
    yabare
    we are a studend community
  435. message at
    yabare
    and this is the space provided to us
  436. message at
    yabare
    on metu server beluga
  437. message at
    Chris--S
    Perhaps we should email hardened php wiki and see how they maintain their users on it?
  438. message at
    yabare
    i think if you want
  439. message at
    Chris--S
    see if they have the same problem, or maybe they don't use a hardened server
  440. message at
    yabare
    i can give you the password
  441. message at
    yabare
    not a big problem for us
  442. message at
    Chris--S
    no need.
  443. message at
    splitbrain
    Chris--S, I think they use a static dump of the dokuwiki pages
  444. message at
    splitbrain
    I talked to stefan esser here on irce once
  445. message at
    splitbrain
    unfortunately I forgot his nick
  446. message at
    Chris--S
    their changelog only goes up to 0.4.14, Yabare's server is at 0.9.6
  447. message at
    yabare
    i use beluga.cc.metu.edu.tr adress to connect
  448. message at
    splitbrain
    there seem to be different versions of 0.9.6 : http://www.hardened-php.net/suhosin/download.html
  449. message at
    Chris--S
    looking at the wrong place, Suhosin is up to 0.9.20
  450. quit
    ejot (n=ejot@user198.85-195-60.netatonce.net) has quit ()
  451. message at
    Chris--S
    actually, that is Suhosin extension, suhosin patch is 0.9.6.2
  452. join
    ejot (n=ejot@user198.85-195-60.netatonce.net) entered the channel
  453. message at
    Chris--S
    i'll need to be afk for a bit.
  454. message at
    yabare
    so i think i will edit the users manually from users.auth.php?
  455. message at
    splitbrain
    yabare, good idea ;-)
  456. message at
    yabare
    not a big problem
  457. message at
    yabare
    only thing is
  458. message at
    yabare
    i am not the only admin
  459. message at
    yabare
    another one can discover this edit button
  460. message at
    yabare
    and then delete everybody
  461. message at
    yabare
    is there a way to disable this edit button
  462. message at
    yabare
    ?
  463. message at
    splitbrain
    just remove the file permissions from the user file
  464. message at
    bug^
    good night everybody
  465. message at
    splitbrain
    nighty night bug^
  466. message at
    yabare
    is this also prevent admin?
  467. message at
    yabare
    hmm
  468. message at
    yabare
    you mean permissions
  469. message at
    yabare
    no write than
  470. message at
    splitbrain
    yes
  471. message at
    yabare
    but how can a new user can be added?
  472. message at
    yabare
    without asking me
  473. message at
    splitbrain
    ah
  474. message at
    splitbrain
    good question
  475. message at
    splitbrain
    i have no idea
  476. message at
    splitbrain
    I guess you should ask your admin for help with this problem
  477. nick
    Mazon is now known as mazon
  478. message at
    yabare
    admin?
  479. message at
    splitbrain
    maybe an php update might solve it
  480. message at
    yabare
    computer center of the university
  481. message at
    splitbrain
    yes
  482. message at
    yabare
    hmm
  483. message at
    splitbrain
    whoever maintains the server
  484. message at
    yabare
    it will be difficult, there is a huge server
  485. message at
    yabare
    but thank you for your help
  486. message at
    yabare
    i will not let anybody to press that edit button
  487. message at
    yabare
    and take back-ýps
  488. message at
    yabare
    *back-ups
  489. message at
    yabare
    one last question
  490. message at
    yabare
    is this problem due to version of php?
  491. message at
    splitbrain
    i don't know
  492. message at
    splitbrain
    something is wrong with your php
  493. message at
    splitbrain
    what causes it I don't know
  494. message at
    yabare
    ok
  495. message at
    yabare
    thank you
  496. message at
    yabare
    for your time
  497. message at
    yabare
    and besides dokuwiki is great
  498. message at
    yabare
    thank you for your effort