←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
arildb__joined #tikiwiki [01:18]
....................... (idle for 1h50mn)
goj_killedByISPjoined #tikiwiki [03:08]
.............. (idle for 1h8mn)
Tiki|botRecent Bug: Tracker item: #4332 - - submission - http://dev.tiki.org/item4332 [04:16]
Ed_joined #tikiwiki
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.
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:27]
Is there an easy way to compare my settings to the default settings for tiki? [04:39]
.............. (idle for 1h9mn)
marclaporteEd_ for the record, Admin -> Profiles -> Export [05:48]
...................................... (idle for 3h8mn)
redflojoined #tikiwiki [08:56]
........................ (idle for 1h59mn)
changipolo
m
:)
[10:55]
fabriciuswolo
d
:-P
ahh better:
w
olop
ah changi, take that out of history *gg*
how r u ?
[11:08]
changifabricius: fine and you
wondering if i should release à tiki 9.2.1 or a Tiki 9.3, what do you think guys ,
?
[11:19]
vmachine1joined #tikiwiki
left #tikiwiki
[11:27]
.... (idle for 15mn)
xavijoined #tikiwiki
polom
I need some help with regexp in smarty...
I want to check in smarty for two conditions on a regexp : for tiki-index.php or tiki-index_raw.php in the url
for one condition, the regexp works:
http://{$smarty.server.SERVER_NAME}{$smarty.server.PHP_SELF|regex_replace:'//tiki-index.php/':'/'}
replacing tiki-index.php with /
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 /
I need that to allow downloading svg version of a chart made with R (using PluginR in Tiki)
any smarty regexp guru?
using some regexp helpers, I am suggested to use:
(tiki-index(_raw)?.php)
but when I add that into the smarty template, like this:
{$smarty.server.PHP_SELF|regex_replace:'//(tiki-index(_raw)?.php)/':'/'}
then I get:
Error: '/' is an unrecognized escape in character string starting "$smarty.server.PHP_SELF|regex_replace:'//"
from the R console ^
Jyhem or Jyhem_laptop ?
[11:42]
Jyhemhi xavi
I have a server incident right now. later
[11:57]
xaviok, no probs. I think I have the solution...
g'luck with your server incident, btw
[12:00]
changixavi: use # instead of / as a separator
like #/tiki-index.php#:#
[12:01]
xavithanks changi. FOr the time being, this seems to be doing the job:
{$smarty.server.PHP_SELF|regex_replace:'/(tiki-index.php|tiki-index_raw.php)/':''}
[12:02]
changixavi: yes because PHP_SELF already have the /
Jyhem: need help ?
[12:03]
xavibtw, 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:03]
changixavi: that's the doc of smarty2
normaly regexp can be done using separator from a list
[12:04]
Jyhemchangi: 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.
It's just still flaged as unavailable on the admin consile :)
[12:05]
changi# $ in my souvenir :)
xavi: especially in the case you want to catch a / in regexp to avoid backslashing
[12:06]
xaviah, ok, thanks changi! :-)
and where are the docs then for smarty3 ?
xavi googling for regexp_replace in smarty 3
[12:07]
changichangi please welcome http://code.tiki.org/websvn/ in case sf.net crash
http://www.smarty.net/docs/en/language.modifier.regex.replace.tpl
[12:08]
xaviyes, got it, but same content as in smarty 2 :-7
anyway, thanks for your tip
[12:09]
changixavi: http://fr2.php.net/manual/en/regexp.reference.delimiters.php [12:09]
himanshujoined #tikiwiki [12:10]
xavithanks heaps again, changi!
xavi is a slow learner, but luckily moving forward :-)
[12:11]
ricks99joined #tikiwiki [12:18]
Tiki|botNew Forum Posts: dont see files in file gallery - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=45528 [12:20]
Jyhemserver apparently up and running fine again. Just lost years of uptime :) [12:21]
.... (idle for 18mn)
ricks99polom y'all
Tiki 10 alpha looks pretty good so far. Kudos to all!
[12:39]
xavihi ricks99
xavi willing to have time to test tiki10 one day... (not yet in the next days :-/ )
[12:46]
ricks99hola xavi [12:47]
xavianother regexp question for regexp gurus... such as changi or Jyhem, etc.:
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
the svg text starts with :
<?xml version="1.0" encoding="UTF-8"?>
<svg foo="bar">
and ends with:
</svg>
what is the magic regexp to select that part corresponding to the svg file?
something like: "remove from the file everything before you reach <?xml version="1.0" encoding="UTF-8"?>"
and remove everything after </svg>
? ^
[12:55]
changipreg_match('#<svg foor="bar">(.*)</svg>', $content, $matches)
content = $matches[1]
preg_match('#<svg foor="bar">(.*)</svg>#', $content, $matches)
[13:03]
xavithks changi. that's php, isn't it?
yes, stupid question. thks, I'll play with it in plugin R...
[13:08]
Jyhem_laptopI think you want the /sm modifier
like preg_match('#(<svg foor="bar">.*</svg>)#sm', $content, $matches)
m→ multiline s → make . match n also
[13:10]
ricks99ricks99 asks: Have you voted for Tiki yet? https://info.tiki.org/article202-Vote-for-Tiki-Best-Free-CMS [13:14]
lindonbjoined #tikiwiki [13:20]
lphuberdeaujoined #tikiwiki [13:29]
fabriciusjoined #tikiwiki [13:30]
Jyhem_laptopxavi ↑ [13:31]
.... (idle for 19mn)
fabriciusjoined #tikiwiki [13:50]
xaviback
thks Jyhem_laptop!
ok, thanks ricks99. voted. :-)
[13:59]
ricks99thanks xavi! [14:11]
dennmansjoined #tikiwiki [14:12]
himanshujoined #tikiwiki
ricks99: plz help me how to use tracker in template
[14:12]
ricks99himanshu: what is your question? [14:14]
himanshuricks99: 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:17]
ricks99to 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:20]
himanshui 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:22]
ricks99"this not work".... what error message are you getting? [14:23]
himanshuricks99: when i use this coding display as it is display write in edit this page button link
and not display data save in tracker data base
[14:26]
radek82joined #tikiwiki [14:28]
ricks99what are you using to display the tracker? [14:29]
dhazeljoined #tikiwiki [14:30]
himanshuricks99: 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:31]
ricks99you need to include the tempalte [14:33]
himanshuricks99:yes sir but it is not good display in template i am read book and learn code is given above [14:33]
ricks99in your TRACKERLIST you need to include the template. please see docs: http://doc.tiki.org/plugintrackerlist
if you're using Tiki Essentials, see http://twessentials.tikiforsmarties.com/Displaying+the+Pretty+Tracker
[14:34]
....... (idle for 30mn)
fabricius1joined #tikiwiki [15:05]
........ (idle for 39mn)
Tiki-KGBtikiwiki 03lphuberdeau r43759 10trunk/lang/ 10(10 files in 4 dirs)
tikiwiki [NEW] Adding some inuktitut dialects
[15:44]
tikiwiki 03lphuberdeau r43760 10trunk/lib/wiki-plugins/wikiplugin_module.php
tikiwiki [FIX] Simplifying the plugin output handling logic
[15:58]
tikiwiki 03lphuberdeau r43761 10trunk/ 10lib/headerlib.php 03css/ie9.css
tikiwiki [MOD] Adding IE9-specific css file, for consistency
[16:06]
.... (idle for 18mn)
tikiwiki 03lphuberdeau r43762 10trunk/lib/core/Tracker/Field/ItemLink.php
tikiwiki [ENH] Provide additional context information to the template and alternate rendering for csv export
[16:24]
........ (idle for 37mn)
xavipolom back
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 ...
I wonder why.... mmmm....
clean= clean svg, I mean
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?
that's the current code:
http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php?revision=41927&view=markup
lines 574 - 577 for svg
it's equivalent to the code for pdf generation (in lines between 590-593), which works fine
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
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???
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');
the svg file is ok, but the file offered to download for the user has html from tiki also inside
[17:01]
.......... (idle for 47mn)
aha...
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)
for some reason, pdf readers can cope with (ignore) the html junk produced... but not the svg readers...
how can we make tiki offer a file to download without adding extra html code to it?
[17:58]
rinnanHow come the XML ZIP Importer is more strict regarding characters in page names than tiki itself is? [18:05]
marclaporterinnan: good question [18:07]
Jyhemsorry 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:07]
arildb_joined #tikiwiki [18:08]
marclaporterinnan: my attempts to use XML Zip importer failed on 9.x What works for you? [18:09]
rinnanseems to work just fine for me in 9.1 as long as I avoid nordic characters [18:10]
marclaporteAny idea on how to fix? [18:10]
rinnanam testing as we speak [18:10]
marclaporte:-)
you have your commit access? :-)
[18:10]
rinnanI did manage to export a page with special chars, and them import it afterwards. Must have missed something [18:11]
xavihi Jyhem: ok, I understand better the source of the problem. tiki-index_raw.php is adding the html... [18:11]
rinnanmarclaporte: Yup, I cat du pretty much whatever I want on this box :) [18:11]
xavibut I saw in the tiki-index_raw.php that there are some params to get that html out... [18:11]
rinnanwoops: "can do" not "cat du" ;) [18:12]
xaviso hopefully I see some light at the end of the mini-tunel [18:12]
rinnanmarc: I'm converting a wiki from screwturn to tiki by hand. lots of things to attend to [18:13]
marclaporterinnan: glad you picked Tiki [18:15]
rinnanmarc: me too :) Its a magnificent tool and I'm sure my company will agree once we get it up and runing [18:17]
.... (idle for 17mn)
arildb__joined #tikiwiki [18:34]
sandroandradejoined #tikiwiki [18:38]
rinnanmarc: seems to be an issue with my charset. Have to investigate a bit more it seems [18:39]
lphuberdeaujoined #tikiwiki [18:46]
marclaporteok, 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]
rinnanmarc: Got it! Turns out my xml-script was stored with ANSI-encoding. Saving as UTF8 solved it :) [18:47]
marclaporterinnan: we can use more votes: https://info.tiki.org/article202-Vote-for-Tiki-Best-Free-CMS
ok, great! Please document here: https://doc.tiki.org/XML+Wiki+Import-Export
[18:47]
rinnanmarc: ah, seems I misunderstood your question earlier. Wil take a look into adding to the doc [18:48]
marclaporteYou can also add more info to this recently created page: http://tiki.org/Tiki+vs+ScrewTurn+Wiki [18:50]
xavichangi and Jyhem, I'm almost there! :-)
only missing last bit of magix at the regexp level: how can I keep the last </svg> part of the match?
current syntax for the preg_match is:
preg_match('#(<?xml.*</svg>)#sm', $output, $output);
this keeps from the starting <?xml tag, which I need, continues with all the svg file, but I'm missing the last </svg> tag...
so my question is: how can I say in "regexp" jargon: match until here, but keep this last part?
[18:52]
Jyhem_laptopxavi: IMO, it should include it. Is there a second occurence of </svg>? [18:57]
xavimmmm, checking [18:57]
Tiki-KGBtikiwiki 03lphuberdeau r43763 10trunk/lib/core/Search/Formatter/ 10ValueFormatter/Date.php 10ValueFormatter/Datetime.php
tikiwiki [FIX] Detect dates coming straight from the index and convert them to unix timestamps for appropriate formatting
[18:58]
changilphuberdeau: why are you fixing in trunk instead of tiki10 ? [19:05]
xaviJyhem_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]
lphuberdeauupstreaming patches from citadelrock [19:05]
xaviso commiting my working solution (finally! :-) [19:05]
changilphuberdeau: are you going to backport them ? [19:06]
lphuberdeaunot unless they are actually reported in 10
I have a list to go through, mixing fixes, enhancements and new features, I won't begin shuffling branches - working on 11
10 is the past!
[19:07]
Jyhem_laptopxavi: strange. looks like it was missing some end-of-file chars (maybe the 's' option did it) [19:09]
xaviok, never mind, it works now :-) [19:09]
Jyhem_laptop:) [19:10]
Tiki-KGBtikiwiki 03xavidp r43764 10branches/10.x/tiki-index_raw.php
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!
tikiwiki 03xavidp r43765 10branches/9.x/tiki-index_raw.php
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:14]
tikiwiki 03xavidp r43766 10mods/trunk/ 10wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php 10Packages/wikiplugins-r.info.txt
tikiwiki [FIX]svg generation works again with this small change and r43765 to clean svn code (thanks changi and jyhem)
[19:24]
rinnanhmm.. hitting memory problems when trying to import [19:25]
xaviok, enough for today, thanks heaps changi and jyhem. Have a nice weekend all
left #tikiwiki
[19:27]
marclaporteLP is always making sure we have great things to look forward to in trunk :-) [19:41]
rinnanstrange.. seems I can only import 34 wiki-pages at a time using the XML ZIP importer [19:53]
marclaportewhy 34?
bbl
[19:53]
rinnanI 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
and I have PHP set up with a limit of 512M
[19:55]
lphuberdeauthat message tells me the memory limit is at 25M
256M
[20:01]
Tiki-KGBtikiwiki 03lphuberdeau r43767 10trunk/lib/core/Tracker/Field/ItemLink.php
tikiwiki [ENH] Avoid fetching complete item lists just to obtain the title of an element - massive performance boost on indexing and rendering
[20:02]
rinnanlphuberdeau: Yeah, thats what I am thinking as well, but tiki_check.php reports 512M as well [20:02]
lphuberdeaustrange
but even 256 should be plenty
[20:02]
rinnan<- getting tired I can tell by the typing [20:03]
lphuberdeauwhat are you trying to get displayed? [20:03]
rinnanwell, I'm trying to import some dummy wiki-pages as part of a migration from screwturn to tiki [20:03]
lphuberdeauso the import operation fails?
or is that happening after?
[20:04]
rinnanYup, 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?
it freezes and I find that error in the www-errors log
limiting the import to 34 records works perfectly
[20:05]
lphuberdeauimport jobs often take more memory
however that seems like a lot for 34 pages
must be leaving some references it should not
do you think you could manage to break down the pages to import into smaller files and import them one by one?
[20:06]
rinnanYeah, and theres one line woth of content in each page [20:08]
lphuberdeau(I know it's not a great solution) [20:08]
rinnanWell.. We're talking close to 400 pages but it is doable
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:08]
lphuberdeauimporting in tiki 9 or 10? [20:10]
rinnanwhich 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]
lphuberdeauI'm not too familiar with the import
and I have to run now, might be able to help some more next week
[20:10]
marclaportejoined #tikiwiki [20:15]
..... (idle for 23mn)
polom [20:38]
Bsfezjoined #tikiwiki [20:41]
...... (idle for 26mn)
fabricius1polom [21:07]
...... (idle for 25mn)
rinnanmarc: think I found the real source of my problem mentioned earlier
seems like it is an unhandled exception
[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
when I chenged the chars in question my import went fine (well I got a 504, but everything was imported)
[21:32]
Jyhempolom
rinnan: meaning the 35th page had 'Bad characters'?
[21:40]
rinnanindeed, a slash it turns out
I overlooked the message in the logs due to those memory-related issues
upgraded to tiki 10 which made those memory-errors go away, but still ended up crashing and then I found it
[21:41]
fabricius1^^ [21:52]
JyhemSorry, was on another workspace. That is still a bug, but it makes so much more sense than an arbitrary limit set at 34 :-) [21:53]
rinnanJyhem: Indeed. At least tiki10 gave me an error which gave me a very precise location of my error [22:00]
JyhemGood for Tiki10. [22:02]
............ (idle for 55mn)
kstingeljoined #tikiwiki [22:57]
fabriciusjoined #tikiwiki [23:10]

←Prev date Next date→ Show only urls(Click on time to select a line by its url)