#foswiki 2011-12-30,Fri

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

WhoWhatWhen
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/w4smSg
[foswiki/Release01x01] Item11395: WebStatistics topics issues - GeorgeClark
[01:03]
***GithubBot has left [01:03]
FoswikiBothttp://foswiki.org/Tasks/Item11395 [ Item11395: Statistics topic changes in Item11182 has issues if WebStatistics topic is renamed or archived. ] [01:03]
..................... (idle for 1h44mn)
gac410I've got a dumb user question for formatted search - I have the following line as part of the format= string - but the image gets included as literal < in the output.
$percntIF{\"istopic '$web.%STATISTICSTOPIC%'\" then=\"[[$web.%STATISTICSTOPIC%][<img src=\"%PUBURLPATH%/%SYSTEMWEB%/DocumentGraphics/statistics.gif\" alt=\"Statistics of $web web\" />]]\"}$percnt
never mind - as I said - dumb. Needed to use single quotes in the html.
[02:47]
.... (idle for 18mn)
MyqLarsonHi all. First time here. Is anyone else seeing tags changed to HTML entities in 1.1.14 or have I messed something up? For example: <body class="patternViewPage foswikiJs">&lt;link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/Misc/WebRss" /&gt; [03:07]
gac410I've not seen that - http://foswiki.org/ is running 1.1.4 - do you see anything like that there? [03:08]
MyqLarsonAnd another: <li> &lt;img src="/wiki/pub/System/DocumentGraphics/arrowright.png" alt="MOVED TO..." title="MOVED TO..." width="16" height="16" border="0" /&gt; <code>index.php</code> </li>
No, it's on my local install. I just upgraded and saw it
[03:08]
gac410What version did you upgrade from? [03:09]
MyqLarsonbut I have messed around with Foswiki::Render in the past to work on Item11316, but it looks like the upgrade overwrote it with 1.1.14
I upgraded from 1.1.13
[03:10]
FoswikiBothttp://foswiki.org/Tasks/Item11316 [ Item11316: =Foswiki::Render= inappropriately (ab)uses empty =<p>= tags ] http://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Render [ (Foswiki login) PerlDoc ] [03:10]
gac410yes - upgrade definitely replaces all the core modules.
1.1.3 and 1.1.4 by the way, not 13. or 14.
[03:11]
MyqLarson%BR% is being rendered as &lt;br /&gt;
ah, right. 1.1.3 -> 1.1.4
[03:12]
gac410One time I've seen html entnties being rendered is if there is manual html with unbalanced < > somehow [03:13]
MyqLarsonwhat would cause that outside of lib/Foswiki? [03:13]
gac410no idea - I've never seen anything like that - have you made template changes? [03:14]
MyqLarsonI was trying out WidgetsSkin lately, but I was having problems with it, so I reverted back to PatternSkin
I'll try to reinstall and get back to you
it's possible I've messed it up :-P
[03:14]
gac410I've not seen the rendering get that badly messed up - something strange has happened.
How did you upgrade - just expand the Upgrade package over the top of the 1.1.3 installation?
[03:15]
MyqLarsonyes, just used sudo tar --strip-components=1 -vpxzf Foswiki-upgrade-1.1.4.tgz
I have a backup, so I'll revert first and make sure 1.1.3 was working as expected
[03:16]
gac410Cool - learn something every day - --strip-components=1 You don't want to know the gyrations I've gone through :-)
If you upgraded and use mod_perl or fastcgi, need to restart apache
Also, if you have a Expires time for client caching, need to refresh client cache - though I can't imagine how that might play here.
[03:18]
MyqLarsoni can't take credit for that... I went through many headaches myself before I searched a bit for a better way [03:19]
ok, it looks like it's not the upgrade. I think I've done something wrong. I admit I was messing around with some core files and recently dropped a copy of Foswiki::Render straight from the repo into my local copy (dumb idea)
and was then having some problems with save taking a very long time and using a lot of CPU time
so I tried to upgrade
somewhere along those lines I think something got mangled..
I'll go back and figure it out. Thanks for your help.
[03:25]
gac410Good luck. By "from the repo" -- you mean trunk or Release01x01 branch? If trunk, there are some big changes internally - may not be all that easy to copy files. [03:27]
MyqLarsonnah, trunk. I don't really know what I'm doing, as you can see from Item11316
just messing around
[03:29]
gac410Thats the best way to learn :-) [03:29]
MyqLarsonThat's what I'm doing, just still making lots of beginner's mistakes [03:30]
gac410If you are doing a lot of tweaking of core files, you could do a svn checkout of the Release01x01 branch - to get a 1.1.4+ checkout, and run right from the SVN checkout.
Then your local changes can be tracked. Many of us have moved to git. That makes it easy to stash changes, create local branches for experimenting. etc.
[03:31]
MyqLarsonYeah, I'm using git as well. I'm more proficient in PHP, but after messing around with sed, awk, and bash, I figured I should learn some Perl
Since I use Foswiki as my personal knowledge database, I figured it would be a good challenge :P
ok, I think that was it. At some point I saved skin-related preferences with a copy of (probably) Foswiki::Render which was randomly selected from the repo and therefore not compatible, which caused some formatting to be rendered as HTML entities on save. My bad.
Thank God for versioning
[03:33]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/Wao3lw
[foswiki/master] Item11383: sync up release notes - GeorgeClark
[03:47]
***GithubBot has left [03:47]
FoswikiBothttp://foswiki.org/Tasks/Item11383 [ Item11383: General documentation task for 1.1.5 release ] [03:47]
gac410MyqLarson: Thanks for that strip-components hint - I added it to the upgrade instructions in Download/FoswikiRelease01x01x04 [03:52]
MyqLarsonGreat! I finally contributed something useful! [03:53]
Hmm, really strange though. If I edit Main.SitePreferences to 'Set skin=widgets', the save time is very short. But if I change it back to pattern, the save processes uses 100% CPU for several minutes, times out, but on reload appears to have saved correctly [03:58]
Reproduceable as well. Do you think it's a bug in the skin though? All I do is change the settings in Main.SitePreferences. I'm not sure what to file the bug under. [04:05]
gac410What preference do you change - I've not seen anything like that.
rereading your note... Changed skin from widgets to pattern and save times out?
[04:06]
MyqLarsonYes, I can try with other skins. The save works, but times out first with high CPU load
I'll try to narrow it down
[04:07]
gac410Yeah that will be tough to fix - need to figure out what's looping. [04:08]
MyqLarsonI don't know the codebase wel enough to know what happens when a new preference is set, but I'll try to narrow it down as much as possible and file a bug report [04:09]
gac410I think it's really doubtful that it's a change to the preference itself - more a side effect of something in WidgetsSkin? Prefs get changes all the time. [04:10]
MyqLarsonI'll try with other skins. Simply changing * Set SKIN = pattern from previously * Set SKIN = widgets causes it [04:12]
gac410Tough time of year - rather sparse coverage here. SvenDowideit is WidgetsSkin author - he might have ideas. [04:13]
MyqLarsonNo worries. It's nothing critical. I was just playing around :-) [04:15]
Yeah, it's only with Widgets. I'll file a bug report on it. Thanks again for all your help.
Have a good day.
[04:21]
gac410goodnight [04:22]
***MyqLarson has left [04:22]
............. (idle for 1h0mn)
gac410 has left [05:22]
........ (idle for 39mn)
joako__I've setup Foswiki with LDAP and I can login, but when I try to view /bin/view/Main/WikiGroups I get an error "Can't use an undefined value as an ARRAY reference" I've double checked all the LDAP settings including using an LDAP browser and I've also refreshed the LDAP cache. The log files all show the same non-descriptive error. [06:01]
....................................................................... (idle for 5h53mn)
foswiki_irc3hi everybody, im trying to setup a foswiki behind an apche reverse proxy, everything is working fine, except login - direct access on the webserver where foswiki is installed works fine, access via the reverse proxy just reloads the login page - is this setup known to work somehwere ? [11:54]
Babaryes, it's known to work [12:00]
........ (idle for 35mn)
blinkizHello. I have interest in starting to use a wiki to document how we do things in our company. I found foswiki a couple of weeks ago and think it may be a good thing to use.
A problem is always keeping a wiki up to date. Need some kind of forced validation each 4-6 months so the person that is responsible for a wiki page verifies that the information still is valid. How can I work with foswiki so I have a person responsible for a wiki page and force this person to validate the page from time to time?
[12:35]
pharveyfoswiki_irc3: we use a reverse proxy at $work with Foswiki, are you using mod_proxy_html?
I seem to recall some difficulty in getting the HTML rewriting to actually work properly... ah yes... on Ubuntu 10.04 LTS apache is configured by default to gzip compress everything
this breaks mod_proxy_html because it's trying (I assume) to rewrite a gzip stream rather than the original HTML so you have to either disable gzip compression or add some filters around the mod_proxy_html so that it decompress/rewrites/re-compresses
http://www.enricozini.org/2007/tips/mod-proxy-html-and-gzip/ for example
[12:40]
foswiki_irc3@pharvey yes im using ProxyHTMLURLMap and disabled gzip on server [12:44]
pharveycool
and can you see that the HTML rewriting is working correctly?
I seem to recall that are some tags/attributes that ProxyHTMLURLMap does not touch, er, I think the <base> tag for example. I wonder if your reverse-proxy'd Foswiki is successfully serving up the necessary JS, CSS, etc.
not that <base> tag seems to matter, Foswiki seems to use absolute paths anyway
blinkiz: I wonder if you could build a special report topic, which displayed a list of topics requiring review to the logged-in user; then run a mailnotify job every few months in newsletter mode on that particular topic (to E-mail everybody a copy of that report)
I guess you'd add a DataForm to each topic requiring this kind of review/validation (you can customise the default template topic to ensure newly create topics have the form already attached)
the DataForm would have a Owner field (Main.WikiUserName) and a LastReviewedDate field
[12:44]
blinkizpharvey, Would be good. A email is good. If a wiki page has not been updated for.. say 3 month.. send a email to the person responsible. I can then go in and update the wiki (change nothing really) so a new timestamp is set on the wiki page
I = that person..
[12:51]
pharveyah, I misunderstood "validation" - you mean "last updated" rather than some formal approval [12:52]
blinkizyeah, last update is fine.. [12:52]
pharveycool, that's easier then
I guess you'd still need to store who owns what topic
[12:52]
blinkizyeah, somehow. Because another person can make small changes but in the end, every wiki page has an "expert" responsible for the information [12:53]
pharveyIn that case it might just be easier to maintain the WebNotify topic manually
easier to implement, I mean
benefit of a DataForm is that it's easier for others to maintain the topic data (WebNotify is a strange place for somebody who doesn't care about quarterly validation process :-)
[12:54]
blinkizokay.. Do not know what WebNotify is. Anyway, so last update.. yeah, works.. But the ultimate is last update from the expert.. [12:55]
pharveyWebNotify topics maintain a list of users and a list of topics they need E-mail notifications for
http://foswiki.org/System/MailerContrib
[12:56]
foswiki_irc3@pharvey when i load Main/WebHome site looks good, and seems to load css and js, even the login page seems to be fine, just when i submit password, it just reloads the login page [12:56]
pharveyfoswiki_irc3: I wonder if you've added the 'new' reverse-proxy'd URL to the PermittedRedirectHosts (?) in /bin/configure
blinkiz: so I'm talking about two solutions here - maybe you can use the out-of-the-box features of MailerContrib - or maybe you can use MailerContrib to send out a special 'newsletter' mode copy of a ReportTopic which uses a SEARCH to list topics requiring review
[12:57]
blinkizokay... So..eeh.. An "expert" need to tag the page with his own last update timestamp. This timestamp can then be measured so it sends email (or something else) when it gets more than 3 months old.
foswiki can do this?
[13:00]
foswiki_irc3@pharvey yes DefaultUrlHost is set to local server URL and PermittedRedirected is to to external/proxy URL [13:00]
blinkizAnother question. Is it possible in foswiki to create a form that populates a MySQL database with information? Like adding a new car to a MySQL database. [13:03]
pharveyblinkiz, sure. You can customise the DataForm to make it less tedious. For example, you can make a ViewTemplate which detects that the TopicOwner is viewing the page, and give them a special "review OK" button which updates the LastReviewDate formfield to today's date. [13:03]
blinkizpharvey, nice, sounds great [13:04]
pharveyFoswiki:Extensions.AutoViewTemplatePlugin is the mechanism mixing DataForms and DataViewTemplate [13:04]
FoswikiBothttp://foswiki.org/Extensions.AutoViewTemplatePlugin [ AutoViewTemplatePlugin ] [13:04]
blinkizI know that is possible to read information from a MySQL database. Great feature! Now I want to write information to that database :)
In a easy way for the user. Some stuff I do not want in a wiki page but in a MySQL database.
[13:06]
pharveyso, assuming you have a DataForm with two fields - TopicOwner and LastReviewDate - your ReportTopic might have a SEARCH which looks something like %SEARCH{"TopicOwner='%WIKINAME%' AND LastReviewDate < ALC{"$TIMEADD($TIME(), -2, month)"}%" type="query" ...}% [13:07]
blinkiznice, gonna save that one :) [13:07]
pharveyer, %CALC, not ALC :)
untested
[13:07]
blinkizyeah [13:07]
pharveyI don't know much about using SQL with Foswiki, I think Foswiki:Extensions.SqlPlugin is the current favourite though [13:08]
FoswikiBothttp://foswiki.org/Extensions.SqlPlugin [ SqlPlugin ] [13:08]
pharveywe use the experimental MongoDBPlugin to make SEARCH quick enough to deal with ~210,000 topics, but this isn't quite ready for prime time yet (unless you have time to burn in helping us making it better :-) [13:09]
blinkizpharvey, okay.. same question as I have: http://foswiki.org/Support/Question562
Anyway, it seems to work. It is possible to create forms in foswiki. When submitting that form, I can probably call that sql extention and to all sort of things..
[13:10]
pharveysorry, I'm not sure :/ [13:11]
blinkizto = do [13:11]
pharveyfoswiki_irc3: is the reverse-proxy site on the same domain as the 'local' one?
foswiki_irc3: I'd suggest tracing the FOSWIKISID cookie - sounds like perhaps the session keeps getting lost, or the request validation isn't working (STRIKEONE cookie)
foswiki_irc3: could try TEMPORARILY changing {Validation}{Method} in /bin/configure from 'strikeone' -> 'embedded' to check if the validation cookie/nonce is getting lost
[13:13]
foswiki_irc3@pharvey no its an internal and external domain ... sec let me check that [13:15]
pharveyoh, blinkiz - my SEARCH example I gave you - incorrectly mixes epoch seconds with YYYY MM DD date strings; it should probably be SEARCH{"TopicOwner='%WIKINAME%' AND d2n(LastReviewDate) < %CALC{"$TIMEADD($TIME(), -2, month)"}%" ....
Foswiki:System.QuerySearch has the SEARCH query syntax doc
[13:16]
FoswikiBothttp://foswiki.org/System.QuerySearch [ QuerySearch ] [13:17]
pharveyok. Going to go back to seeing if I can cook up a bogus Foswiki::DOM :-) [13:18]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::DOM [ (Foswiki login) PerlDoc ] [13:18]
pharveyseeya [13:18]
blinkiz:) [13:19]
............... (idle for 1h10mn)
foswiki_irc3has foswiki support for multilingual sites ? [14:29]
gac410Yes - A number of languages are supported, and help translating is welcomed.
100% - Czech, Danish, Dutch, French, German, Norwegian, Portuguese (Brazil), Swedish
>95% - Italian, Polish
>90% - Chinese (Taiwan), Russian, Spanish
[14:30]
foswiki_irc3sorry i mean multilingual content? so i can edit a site in english and the same site in spanish eg ? [14:32]
gac410You want user topics to be visible in multiple languages?
with automatic translation?
[14:33]
foswiki_irc3yes, depending on the browser default language
but not automatic translation, handcrafted
[14:33]
gac410I seem to have vague recollection that there is a plugin to allow topics to be stored in multiple languages ... need to go look. [14:34]
foswiki_irc3ok, thx a lot [14:34]
gac410See Foswiki:Extensions/TopicTranslationsPlugin I have no idea how well it works - it's a non-core extension, so may need some tweaking [14:35]
FoswikiBothttp://foswiki.org/Extensions/TopicTranslationsPlugin [ TopicTranslationsPlugin ] [14:35]
gac410No open Tasks against it currently - but that doesn't mean much without knowing how much it's being used.
terceiro: howdy - almost happy new year.
Do you know the status of TopicTranslationsPlugin?
Have you tried it on 1.1.x / 1.1.4?
[14:36]
............ (idle for 56mn)
terceirogac410: I have it in production in more than one place and it is in good shape
I don't think I tried with 1.1.x, but it should work. It is a well-behaving plugin
[15:33]
gac410okay - thanks terceiro [15:34]
....... (idle for 34mn)
foswiki_irc3thx again for help, bye [16:08]
...................................... (idle for 3h5mn)
***verne.freenode.net sets mode: +oooo donbarry gmc harlan jayen
verne.freenode.net sets mode: +ovvo Babar WikiRingBot FoswikiBot uebera||
verne.freenode.net sets mode: +oo Lavr ChanServ
[19:13]
verne.freenode.net sets mode: +o donbarry
verne.freenode.net sets mode: +o harlan
verne.freenode.net sets mode: +oo gmc ChanServ
[19:20]
................................ (idle for 2h38mn)
GithubBot[foswiki] foswiki pushed 5 new commits to master: http://git.io/-nXN7Q
[foswiki/master] Item11394: Remove WebStatistics files - GeorgeClark
[foswiki/master] Item11394: Documentation updates - GeorgeClark
[foswiki/master] Item11394: Unit test changes - GeorgeClark
[22:02]
***GithubBot has left [22:02]
FoswikiBothttp://foswiki.org/Tasks/Item11394 [ Item11394: Implement Development.ImproveStatisticsHandlingForMissingTopics ] [22:02]
***zelazny.freenode.net sets mode: +o gmc [22:13]

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