[01:18] arildb__ joined #tikiwiki
[03:08] goj_killedByISP joined #tikiwiki
[04:16] Tiki|bot Recent Bug: Tracker item: #4332 - - submission - http://dev.tiki.org/item4332
[04:27] Ed_ joined #tikiwiki
[04:28] Ed_ I just installed tiki 9.2. I'ved used the admin interface to make several changes to the tiki to customize it. I'm trying to use the BLOGLIST plugin, but it does not work in either a wiki page or a blog posting.
[04:29] Ed_ I have another tiki installation and this feature works. I believe I have a combination of setting causing the issue. Can anyone provide hints on how to sort this out?
[04:39] Ed_ Is there an easy way to compare my settings to the default settings for tiki?
[05:48] marclaporte Ed_ for the record, Admin -> Profiles -> Export
[08:56] redflo joined #tikiwiki
[10:55] changi polo
[10:56] changi m
[10:56] changi :)
[11:08] fabricius wolo
[11:08] fabricius d
[11:08] fabricius :-P
[11:09] fabricius ahh better:
[11:09] fabricius w
[11:09] fabricius olop
[11:10] fabricius ah changi, take that out of history *gg*
[11:10] fabricius how r u ?
[11:19] changi fabricius: fine and you
[11:20] changi wondering if i should release à tiki 9.2.1 or a Tiki 9.3, what do you think guys ,
[11:20] changi ?
[11:27] vmachine1 joined #tikiwiki
[11:27] vmachine1 left #tikiwiki
[11:42] xavi joined #tikiwiki
[11:42] xavi polom
[11:42] xavi I need some help with regexp in smarty...
[11:43] xavi I want to check in smarty for two conditions on a regexp : for tiki-index.php or tiki-index_raw.php in the url
[11:43] xavi for one condition, the regexp works:
[11:44] xavi http://{$smarty.server.SERVER_NAME}{$smarty.server.PHP_SELF|regex_replace:'/\/tiki-index.php/':'/'}
[11:44] xavi replacing tiki-index.php with /
[11:45] xavi but I need to check for both cases, tiki-index.php or tiki-index_raw.php, and in whichever it is used each time, replace the php script name with /
[11:45] xavi I need that to allow downloading svg version of a chart made with R (using PluginR in Tiki)
[11:46] xavi any smarty regexp guru?
[11:46] xavi using some regexp helpers, I am suggested to use:
[11:46] xavi (tiki-index(_raw)?.php)
[11:46] xavi but when I add that into the smarty template, like this:
[11:47] xavi {$smarty.server.PHP_SELF|regex_replace:'/\/(tiki-index(_raw)?.php)/':'/'}
[11:47] xavi then I get:
[11:47] xavi Error: '\/' is an unrecognized escape in character string starting "$smarty.server.PHP_SELF|regex_replace:'/\/"
[11:47] xavi from the R console ^
[11:47] xavi Jyhem or Jyhem_laptop ?
[11:57] Jyhem hi xavi
[11:58] Jyhem I have a server incident right now. later
[12:00] xavi ok, no probs. I think I have the solution...
[12:00] xavi g'luck with your server incident, btw
[12:01] changi xavi: use # instead of / as a separator
[12:02] changi like #/tiki-index.php#:#
[12:02] xavi thanks changi. FOr the time being, this seems to be doing the job:
[12:02] xavi {$smarty.server.PHP_SELF|regex_replace:'/(tiki-index.php|tiki-index_raw.php)/':''}
[12:03] changi xavi: yes because PHP_SELF already have the /
[12:03] changi Jyhem: need help ?
[12:03] xavi btw, changi, where did you get that magic syntax # from ? (I was misleaded then by http://www.smarty.net/docsv2/en/language.modifier.regex.replace.tpl )
[12:04] changi xavi: that's the doc of smarty2
[12:05] changi normaly regexp can be done using separator from a list
[12:05] Jyhem changi: no, thanks. It's back up. Online had an incident, but apparently the server just lost network and also rebooted but it's now fine.
[12:05] Jyhem It's just still flaged as unavailable on the admin consile :)
[12:06] changi # $ in my souvenir :)
[12:06] changi xavi: especially in the case you want to catch a / in regexp to avoid backslashing
[12:07] xavi ah, ok, thanks changi! :-)
[12:07] xavi and where are the docs then for smarty3 ?
[12:08] * xavi googling for regexp_replace in smarty 3
[12:08] * changi please welcome http://code.tiki.org/websvn/ in case sf.net crash
[12:08] changi http://www.smarty.net/docs/en/language.modifier.regex.replace.tpl
[12:09] xavi yes, got it, but same content as in smarty 2 :-7
[12:09] xavi anyway, thanks for your tip
[12:09] changi xavi: http://fr2.php.net/manual/en/regexp.reference.delimiters.php
[12:10] himanshu joined #tikiwiki
[12:11] xavi thanks heaps again, changi!
[12:11] * xavi is a slow learner, but luckily moving forward :-)
[12:18] ricks99 joined #tikiwiki
[12:20] Tiki|bot New Forum Posts: dont see files in file gallery - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=45528
[12:21] Jyhem server apparently up and running fine again. Just lost years of uptime :)
[12:39] ricks99 polom y'all
[12:40] ricks99 Tiki 10 alpha looks pretty good so far. Kudos to all!
[12:46] xavi hi ricks99
[12:46] * xavi willing to have time to test tiki10 one day... (not yet in the next days :-/ )
[12:47] ricks99 hola xavi
[12:55] xavi another regexp question for regexp gurus... such as changi or Jyhem, etc.:
[12:56] xavi my code in R produces a mixture of html and svg code. I mean some headers and tags of html, then svg graph (with the right syntax, etc), and some more html code at the end
[12:56] xavi the svg text starts with :
[12:57] xavi
[12:57] xavi
[12:57] xavi what is the magic regexp to select that part corresponding to the svg file?
[12:58] xavi something like: "remove from the file everything before you reach "
[12:58] xavi and remove everything after
[12:59] xavi ? ^
[13:03] changi preg_match('#', $content, $matches)
[13:03] changi content = $matches[1]
[13:03] changi preg_match('##', $content, $matches)
[13:08] xavi thks changi. that's php, isn't it?
[13:08] xavi yes, stupid question. thks, I'll play with it in plugin R...
[13:10] Jyhem_laptop I think you want the /sm modifier
[13:11] Jyhem_laptop like preg_match('#()#sm', $content, $matches)
[13:12] Jyhem_laptop m→ multiline s → make . match \n also
[13:14] * ricks99 asks: Have you voted for Tiki yet? https://info.tiki.org/article202-Vote-for-Tiki-Best-Free-CMS
[13:20] lindonb joined #tikiwiki
[13:29] lphuberdeau joined #tikiwiki
[13:30] fabricius joined #tikiwiki
[13:31] Jyhem_laptop xavi ↑
[13:50] fabricius joined #tikiwiki
[13:59] xavi back
[13:59] xavi thks Jyhem_laptop!
[14:02] xavi ok, thanks ricks99. voted. :-)
[14:11] ricks99 thanks xavi!
[14:12] dennmans joined #tikiwiki
[14:12] himanshu joined #tikiwiki
[14:13] himanshu ricks99: plz help me how to use tracker in template
[14:14] ricks99 himanshu: what is your question?
[14:17] himanshu ricks99: i am making profile page in tiki so i am makeing one template so it is work as static look as this link--http://shawnadler.com/tiki-index.php?page=Social+Networking+Private+Profile+Page and i am making tracker for put on this page
[14:20] ricks99 to include a tracker in a wiki page, you need to use one of the tracker-specific plugins. Please review the docs for details: http://doc.tiki.org/Trackers
[14:22] himanshu i am read tiki essentials book and make template so this coding --{DIV(float=left,width="75px")}{img src="pics/large/users48x48.png" alt="{$f_1}" desc="{$f_1}"}{DIV} __{$f_1}__ from {$f_6} uses {$f_12} {$f_13}. A little about {$f_1}... {$f_8} {DIV(class="clearfix") /} For more information, contact {$f_1}: *Email: [{$f_2}] *Postal: +{$f_3} +{$f_4}, {$f_5} {$f_6} but it is not work
[14:23] ricks99 "this not work".... what error message are you getting?
[14:26] himanshu ricks99: when i use this coding display as it is display write in edit this page button link
[14:28] himanshu and not display data save in tracker data base
[14:28] radek82 joined #tikiwiki
[14:29] ricks99 what are you using to display the tracker?
[14:30] dhazel joined #tikiwiki
[14:31] himanshu ricks99: to make tracker to display form use this code--{TRACKER(trackerId="1", fields="1:2:3:4:5:6:8:12:13", showtitle="n", showdesc="y", showmandatory="y", reset="Clear", submit="Send")} Thank you {TRACKER} and display tracker data use this code--{TRACKERLIST(trackerId=>"2", fields=>"1:2:3", showtitle=>"y", showlinks=>"y", showinitials=>"n" showstatus=>"n" )}Notice {TRACKERLIST}
[14:33] ricks99 you need to include the tempalte
[14:33] himanshu ricks99:yes sir but it is not good display in template i am read book and learn code is given above
[14:34] ricks99 in your TRACKERLIST you need to include the template. please see docs: http://doc.tiki.org/plugintrackerlist
[14:35] ricks99 if you're using Tiki Essentials, see http://twessentials.tikiforsmarties.com/Displaying+the+Pretty+Tracker
[15:05] fabricius1 joined #tikiwiki
[15:44] Tiki-KGB tikiwiki 03lphuberdeau r43759 10trunk/lang/ 10(10 files in 4 dirs)
[15:44] Tiki-KGB tikiwiki [NEW] Adding some inuktitut dialects
[15:58] Tiki-KGB tikiwiki 03lphuberdeau r43760 10trunk/lib/wiki-plugins/wikiplugin_module.php
[15:58] Tiki-KGB tikiwiki [FIX] Simplifying the plugin output handling logic
[16:06] Tiki-KGB tikiwiki 03lphuberdeau r43761 10trunk/ 10lib/headerlib.php 03css/ie9.css
[16:06] Tiki-KGB tikiwiki [MOD] Adding IE9-specific css file, for consistency
[16:24] Tiki-KGB tikiwiki 03lphuberdeau r43762 10trunk/lib/core/Tracker/Field/ItemLink.php
[16:24] Tiki-KGB tikiwiki [ENH] Provide additional context information to the template and alternate rendering for csv export
[17:01] xavi polom back
[17:02] xavi my problem with the svg thing seems to be somewhere else... in the tiki part, I guess... for some reason, when I request in plugin R to have the svg file downloaded, it gets some html in the file... but the source svg on disk is clean ...
[17:03] xavi I wonder why.... mmmm....
[17:03] xavi clean= clean svg, I mean
[17:06] xavi Jyhem_laptop: how can I make tiki download a svg file which has been created on disk, wihtout adding any extra html code to it?
[17:07] xavi that's the current code:
[17:07] xavi http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php?revision=41927&view=markup
[17:07] xavi lines 574 - 577 for svg
[17:08] xavi it's equivalent to the code for pdf generation (in lines between 590-593), which works fine
[17:08] xavi at least, the pdf can be opened with any pdf viewer without issues, while the svg, when opened with a text editor, it has html garbage before and after the svg part of the file itself
[17:09] xavi and I double checked the svg fileon disk, and it's good svg syntax, so the problem is somehow when tiki provides this file to the user???
[17:11] xavi what can be wrong here: header('Content-type: image/svg+xml'); header('Content-Length: '.filesize($rgo . '.svg')); header("Content-Disposition: attachment; filename=\"$filename\""); readfile($rgo . '.svg');
[17:11] xavi the svg file is ok, but the file offered to download for the user has html from tiki also inside
[17:58] xavi aha...
[17:58] xavi the readfile(foo.svg) or (readfile(foo.pdf) is not sending just the file, but adding html befeore and after the file (in the pdf also)
[17:59] xavi for some reason, pdf readers can cope with (ignore) the html junk produced... but not the svg readers...
[17:59] xavi how can we make tiki offer a file to download without adding extra html code to it?
[18:05] rinnan How come the XML ZIP Importer is more strict regarding characters in page names than tiki itself is?
[18:07] marclaporte rinnan: good question
[18:07] Jyhem sorry xavi: first time I hear of such a thing :-( http://fr2.php.net/readfile mentions no such thing. What is the extra html? Maybe apache adds it
[18:08] arildb_ joined #tikiwiki
[18:09] marclaporte rinnan: my attempts to use XML Zip importer failed on 9.x What works for you?
[18:10] rinnan seems to work just fine for me in 9.1 as long as I avoid nordic characters
[18:10] marclaporte Any idea on how to fix?
[18:10] rinnan am testing as we speak
[18:10] marclaporte :-)
[18:11] marclaporte you have your commit access? :-)
[18:11] rinnan I did manage to export a page with special chars, and them import it afterwards. Must have missed something
[18:11] xavi hi Jyhem: ok, I understand better the source of the problem. tiki-index_raw.php is adding the html...
[18:11] rinnan marclaporte: Yup, I cat du pretty much whatever I want on this box :)
[18:11] xavi but I saw in the tiki-index_raw.php that there are some params to get that html out...
[18:12] rinnan woops: "can do" not "cat du" ;)
[18:12] xavi so hopefully I see some light at the end of the mini-tunel
[18:13] rinnan marc: I'm converting a wiki from screwturn to tiki by hand. lots of things to attend to
[18:15] marclaporte rinnan: glad you picked Tiki
[18:17] rinnan marc: me too :) Its a magnificent tool and I'm sure my company will agree once we get it up and runing
[18:34] arildb__ joined #tikiwiki
[18:38] sandroandrade joined #tikiwiki
[18:39] rinnan marc: seems to be an issue with my charset. Have to investigate a bit more it seems
[18:46] lphuberdeau joined #tikiwiki
[18:47] marclaporte ok, great so when you are ready, ask for your commit access so you can tell your company that you have access to fix issues if some arise http://info.tiki.org/article188-Tiki-reaches-500-contributors-with-commit-access http://dev.tiki.org/how+to+get+commit+access
[18:47] rinnan marc: Got it! Turns out my xml-script was stored with ANSI-encoding. Saving as UTF8 solved it :)
[18:47] marclaporte rinnan: we can use more votes: https://info.tiki.org/article202-Vote-for-Tiki-Best-Free-CMS
[18:47] marclaporte ok, great! Please document here: https://doc.tiki.org/XML+Wiki+Import-Export
[18:48] rinnan marc: ah, seems I misunderstood your question earlier. Wil take a look into adding to the doc
[18:50] marclaporte You can also add more info to this recently created page: http://tiki.org/Tiki+vs+ScrewTurn+Wiki
[18:52] xavi changi and Jyhem, I'm almost there! :-)
[18:53] xavi only missing last bit of magix at the regexp level: how can I keep the last part of the match?
[18:53] xavi current syntax for the preg_match is:
[18:53] xavi preg_match('#(<\?xml.*)#sm', $output, $output);
[18:54] xavi this keeps from the starting tag...
[18:54] xavi so my question is: how can I say in "regexp" jargon: match until here, but keep this last part?
[18:57] Jyhem_laptop xavi: IMO, it should include it. Is there a second occurence of ?
[18:57] xavi mmmm, checking
[18:58] Tiki-KGB tikiwiki 03lphuberdeau r43763 10trunk/lib/core/Search/Formatter/ 10ValueFormatter/Date.php 10ValueFormatter/Datetime.php
[18:58] Tiki-KGB tikiwiki [FIX] Detect dates coming straight from the index and convert them to unix timestamps for appropriate formatting
[19:05] changi lphuberdeau: why are you fixing in trunk instead of tiki10 ?
[19:05] xavi Jyhem_laptop: well, nope, it's not. however, if I add some extra "echo("\n");" after the echo $output[0]; then it saves the file correctly
[19:05] lphuberdeau upstreaming patches from citadelrock
[19:05] xavi so commiting my working solution (finally! :-)
[19:06] changi lphuberdeau: are you going to backport them ?
[19:07] lphuberdeau not unless they are actually reported in 10
[19:09] lphuberdeau I have a list to go through, mixing fixes, enhancements and new features, I won't begin shuffling branches - working on 11
[19:09] lphuberdeau 10 is the past!
[19:09] Jyhem_laptop xavi: strange. looks like it was missing some end-of-file chars (maybe the 's' option did it)
[19:09] xavi ok, never mind, it works now :-)
[19:10] Jyhem_laptop :)
[19:14] Tiki-KGB tikiwiki 03xavidp r43764 10branches/10.x/tiki-index_raw.php
[19:14] Tiki-KGB tikiwiki [ENH]Extra case added for mod PluginR to successfully produce valid svg files from figures. thanks changi and Jyhem(_laptop)? for tips and feedback!
[19:16] Tiki-KGB tikiwiki 03xavidp r43765 10branches/9.x/tiki-index_raw.php
[19:16] Tiki-KGB tikiwiki [bp/r43764][ENH]Extra case added for mod PluginR to successfully produce valid svg files from figures. thanks changi and Jyhem(_laptop)? for tips and feedback!
[19:24] Tiki-KGB tikiwiki 03xavidp r43766 10mods/trunk/ 10wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php 10Packages/wikiplugins-r.info.txt
[19:24] Tiki-KGB tikiwiki [FIX]svg generation works again with this small change and r43765 to clean svn code (thanks changi and jyhem)
[19:25] rinnan hmm.. hitting memory problems when trying to import
[19:27] xavi ok, enough for today, thanks heaps changi and jyhem. Have a nice weekend all
[19:27] xavi left #tikiwiki
[19:41] marclaporte LP is always making sure we have great things to look forward to in trunk :-)
[19:53] rinnan strange.. seems I can only import 34 wiki-pages at a time using the XML ZIP importer
[19:53] marclaporte why 34?
[19:54] marclaporte bbl
[19:55] rinnan I have no idea, getting this in the logs.. [01-Nov-2012 09:13:22 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /var/www/cherokee/tiki/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 286
[19:55] rinnan and I have PHP set up with a limit of 512M
[20:01] lphuberdeau that message tells me the memory limit is at 25M
[20:02] lphuberdeau 256M
[20:02] Tiki-KGB tikiwiki 03lphuberdeau r43767 10trunk/lib/core/Tracker/Field/ItemLink.php
[20:02] Tiki-KGB tikiwiki [ENH] Avoid fetching complete item lists just to obtain the title of an element - massive performance boost on indexing and rendering
[20:02] rinnan lphuberdeau: Yeah, thats what I am thinking as well, but tiki_check.php reports 512M as well
[20:02] lphuberdeau strange
[20:03] lphuberdeau but even 256 should be plenty
[20:03] rinnan <- getting tired I can tell by the typing
[20:03] lphuberdeau what are you trying to get displayed?
[20:03] rinnan well, I'm trying to import some dummy wiki-pages as part of a migration from screwturn to tiki
[20:04] lphuberdeau so the import operation fails?
[20:05] lphuberdeau or is that happening after?
[20:05] rinnan Yup, I managed to process 34 records. When I added the 35th page in the wiki.xml the script failed. is there some other memory setting I ought to check you think?
[20:05] rinnan it freezes and I find that error in the www-errors log
[20:06] rinnan limiting the import to 34 records works perfectly
[20:06] lphuberdeau import jobs often take more memory
[20:07] lphuberdeau however that seems like a lot for 34 pages
[20:07] lphuberdeau must be leaving some references it should not
[20:08] lphuberdeau do you think you could manage to break down the pages to import into smaller files and import them one by one?
[20:08] rinnan Yeah, and theres one line woth of content in each page
[20:08] lphuberdeau (I know it's not a great solution)
[20:08] rinnan Well.. We're talking close to 400 pages but it is doable
[20:09] rinnan IWhat worries me more is that I've gotten memory errors performing other tasks as well (cant remember exactly what it was right now tho)
[20:10] lphuberdeau importing in tiki 9 or 10?
[20:10] rinnan which means I have to figure out whats going on I guess. This is a tiki 9.1 install. I'll try on a 10 soon
[20:10] lphuberdeau I'm not too familiar with the import
[20:11] lphuberdeau and I have to run now, might be able to help some more next week
[20:15] marclaporte joined #tikiwiki
[20:38] marclaporte polom
[20:41] Bsfez joined #tikiwiki
[21:07] fabricius1 polom
[21:32] rinnan marc: think I found the real source of my problem mentioned earlier
[21:34] rinnan seems like it is an unhandled exception
[21:35] rinnan [02-Nov-2012 20:31:51 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Bad characters' in /var/www/cherokee/tiki_dev/lib/wiki/wikilib.php:202
[21:36] rinnan when I chenged the chars in question my import went fine (well I got a 504, but everything was imported)
[21:40] Jyhem polom
[21:41] Jyhem rinnan: meaning the 35th page had 'Bad characters'?
[21:41] rinnan indeed, a slash it turns out
[21:42] rinnan I overlooked the message in the logs due to those memory-related issues
[21:43] rinnan upgraded to tiki 10 which made those memory-errors go away, but still ended up crashing and then I found it
[21:52] fabricius1 ^^
[21:53] Jyhem Sorry, was on another workspace. That is still a bug, but it makes so much more sense than an arbitrary limit set at 34 :-)
[22:00] rinnan Jyhem: Indeed. At least tiki10 gave me an error which gave me a very precise location of my error
[22:02] Jyhem Good for Tiki10.
[22:57] kstingel joined #tikiwiki
[23:10] fabricius joined #tikiwiki