Hello!
I have a question: I have an xwiki farm with multiple (3) wikis installed. Today I realized that the search engine display the results from all wikis and not only from the one I currently use. How can I change this?
Thanks,
Florian
>On 04/19/2012 12:34 PM, Joel Forsberg wrote:
>> Hello!
>> I've just upgraded both operating system (Fedora 17) and Xwiki to 4.0 RC-1 and got an issue with the formula macro. Whenever I use it, the resulting image created is 1020x1320 pixels big, mostly empty except for the (correctly sized) formula placed in the bottom left corner of the .png image.
>Thu Apr 19 17:49:52 UTC 2012 Sergiu Dumitriu wrote:
>It works fine for me, so let's try and see where the problem occurs.
>Start by putting this into a tex file called a.tex:
>http://pastebin.com/8Tx92S5L
>The renderer uses a three-step process, tex->dvi, dvi->ps, ps->png.
>Let's try them out in order:
>latex --interaction=nonstopmode a.tex
>This should produce a.dvi, which should be a very big page with only the formula in the center, no other text. Check if there are any errors displayed there. Try without --interaction to make latex stop at errors.
>dvips -E a.dvi -o a.ps
>This should produce a.ps, which should be tightly cropped around the
>formula. If it isn't then there's a problem, maybe dvips doesn't support
>the -E parameter.
>convert -density 120 a.ps a.png
>This should produce a.png, having the same size as the ps.
>For reference, here's what I have locally (texlive installation):
>$ latex --version
>pdfTeX 3.1415926-2.3-1.40.12 (TeX Live 2011)
>kpathsea version 6.0.1
>$ dvips --version
>This is dvips(k) 5.991 Copyright 2011 Radical Eye Software
Thanks for the quick reply.
My texlive seem to produce a PostScript file that displays okay, but somehow the convert step sets the canvas size to 1020x1320
Adding a -trim parameter to will work around the problem, such as:
convert -trim -density 120 a.ps a.png
I'll look for a mention of this behavior for Imagemagick shortly (need food)
(Sorry for messing up the thread, I guess..)
-----
For reference:
The files I produced: http://www.mediafire.com/file/6qv8tty0pn1nyz0/formula_test2.tar.bz
debug output of convert-step: http://pastebin.com/FdJPEYwr
convert -version
Version: ImageMagick 6.7.5-6 2012-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
latex --version
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
Compiled with libpng 1.5.8; using libpng 1.5.10
Compiled with zlib 1.2.5; using zlib 1.2.5
Compiled with libpoppler
dvips --version
dvips(k) 5.96.1
kpathsea version 3.5.6
-----
Hi!
I experienced the same problem in 3.0: two spaces with the same names and i can't delete it also because of
Error number 0 in 11: Uncaught exception
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: null
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:240)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Wrapped Exception:
java.lang.NullPointerException
at com.xpn.xwiki.doc.XWikiAttachment.toStringXML(XWikiAttachment.java:333)
at com.xpn.xwiki.store.VoidAttachmentVersioningStore$VoidAttachmentArchive.getArchive(VoidAttachmentVersioningStore.java:143)
at com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:126)
at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:422)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4024)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4102)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:3851)
at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:3769)
at com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:193)
at com.xpn.xwiki.doc.XWikiDeletedDocument.<init>(XWikiDeletedDocument.java:89)
at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:68)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:4319)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:4299)
at com.xpn.xwiki.XWiki.deleteAllDocuments(XWiki.java:6228)
at com.xpn.xwiki.XWiki.deleteAllDocuments(XWiki.java:6217)
at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
> > Are you sure there is only one page ? Maybe you have a "WebHome" page
> > too in this spaces ? Did you checked with document index ?
I have several pages inside problematic space and no WebHome in it. None of these pages could be deleted.
So, now I'm waiting for the upgrade to export necessary spaces and import them back after dropping database :-((
Kind Regards,
Dmitry
Thu, 19 Apr 2012 13:26:12 +0100 от Martin Evans <website(a)studenthubs.org>:
> I am on Main.AllDocs and I enter '+' into the space field and two documents
> show up - try it yourself http://bit.ly/J7oIGU
>
> I don't want these pages or spaces to exist so I press delete. It tells me
> the page does not exist when I try this.
>
>
> > Are you sure there is only one page ? Maybe you have a "WebHome" page
> > too in this spaces ? Did you checked with document index ?
> >
> > How do you delete/access the page ?
> >
> > On Wed, Apr 18, 2012 at 6:54 PM, Martin Evans <website(a)studenthubs.org>
> > wrote:
> > > I currently have two spaces, one called "Environment And Sustainability"
> > > and the other called "Environment+And+Sustainability". If I try to delete
> > > the only page in the erroneous space it says "The requested document
> > could
> > > not be found". So if the page isn't there, why is the space there?
> > >
> > > Martin
> >
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Kind regards,
Dmitry
Hello!
I've just upgraded both operating system (Fedora 17) and Xwiki to 4.0 RC-1 and got an issue with the formula macro. Whenever I use it, the resulting image created is 1020x1320 pixels big, mostly empty except for the (correctly sized) formula placed in the bottom left corner of the .png image.
Does anyone have an idea what might cause this?
Kind regards, and thanks. Joel
I currently have two spaces, one called "Environment And Sustainability"
and the other called "Environment+And+Sustainability". If I try to delete
the only page in the erroneous space it says "The requested document could
not be found". So if the page isn't there, why is the space there?
Martin
Hi Folks,
Looking at extensiility of xwiki, i am looking to make a typical forum
application on top of xwiki. The forum will be basically a discussion forum
where each user will be given user id and password. There will be
pre-defined topics like Realestate,Sale-Purchase,miscellaneous,etc . Each
user can start a thread on any forum and continue the discussion. It would
be a great help , if some can point me to reference project where similar
stuff has been done or
guide me how to start with? Thanks in advance.
I am on Main.AllDocs and I enter '+' into the space field and two documents
show up - try it yourself http://bit.ly/J7oIGU
I don't want these pages or spaces to exist so I press delete. It tells me
the page does not exist when I try this.
> Are you sure there is only one page ? Maybe you have a "WebHome" page
> too in this spaces ? Did you checked with document index ?
>
> How do you delete/access the page ?
>
> On Wed, Apr 18, 2012 at 6:54 PM, Martin Evans <website(a)studenthubs.org>
> wrote:
> > I currently have two spaces, one called "Environment And Sustainability"
> > and the other called "Environment+And+Sustainability". If I try to delete
> > the only page in the erroneous space it says "The requested document
> could
> > not be found". So if the page isn't there, why is the space there?
> >
> > Martin
>
Hello,
Could someone tell me how to start Xwiki so that it listen at a given IP address and port?
The port is passed to the start script (I wish to use a standard 80), but how do I make it to listen at a specified IP only?
Thanks.
Sincerely,
Konstantin
Got is working, Thanks
Dave
2012/4/18 du du <dddu88(a)gmail.com>
> ---------- 转发的消息 ----------
> 发件人:"du du" <dddu88(a)gmail.com>
> 日期:2012-4-18 上午8:06
> 主题:Re: [xwiki-users] [xwiki-devs] xwiki:dom:loaded event callback function
> never got called
> 收件人:"XWiki Users" <users(a)xwiki.org>, "XWiki Developers" <devs(a)xwiki.org>
>
>
> I tried to use wiki="false", or remove //<![CDATA[ and //]]>, still the
> event callback function never get called, any other reason?
>
> Thanks for your response, please help.
>
> Dave
>
>
> On Wed, Apr 18, 2012 at 5:33 AM, Marius Dumitru Florea <
> mariusdumitru.florea(a)xwiki.com> wrote:
>
>> Hi Dave,
>>
>> On Wed, Apr 18, 2012 at 6:43 AM, du du <dddu88(a)gmail.com> wrote:
>> > Hi all,
>> >
>> > I have the following velocity code in xwiki page, I can see the fid and
>> > fname values when I retrieve entryobj from the server side, so I want to
>> > use javascript to add the fid and fname to image link node as
>> parameters of
>> > the href url. the problem is the javascript loaded event function never
>> got
>> > called, why?
>> >
>> > Thanks very much.
>> >
>> > Dave
>> >
>> > {{velocity filter="none"}}
>> > {{html clean="false" wiki="true"}}
>> > <script type="text/javascript">
>>
>> > //<![CDATA[
>>
>> wiki="true" causes // to generate an EM HTML tag. Just look at the
>> page HTML source (all browsers have this option) and you'll see that
>> your SCRIPT tag is messed up.
>>
>> My advice is to:
>>
>> * use a JavaScript extension (
>>
>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HM…
>> ) instead of in-line SCRIPT tag
>> * try to avoid HTML macro with wiki="true" or, if it's not possible,
>> try to reduce as much as possible its content, i.e. wrap only the code
>> that really needs it.
>>
>> Hope this helps,
>> Marius
>>
>> > document.observe("xwiki:dom:loaded", function(){
>> > var imageNode = document.getElementById('tmViewImages');
>> > var url = imageNode.href;
>> > var index = url.indexOf("?");
>> > if(index!=-1)
>> > url = url.substring(0,index-1);
>> > url=url+"?FID=$!fid&FName=$!fname";
>> > imageNode.href=url;
>> >
>> > //]]>
>> > </script>
>> >
>> > #getEntryItemObject($doc $entryObj)
>> >
>> > #if("$!entryObj" == '')
>> > #warning($msg.get('xe.blog.sheet.notpost'))
>> > ## Keep testing the inline action for backward compatibility with older
>> > blog posts.
>> > #elseif($xcontext.action != 'edit' && $xcontext.action != 'inline')
>> > ## View mode
>> >
>> > #set($fid=$entryObj.getProperty('FID').value)
>> > #set($fname=$entryObj.getProperty('FName').value)
>> > fid view: $fid
>> > fname view: $fname
>> > _______________________________________________
>> > devs mailing list
>> > devs(a)xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/devs
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
Hi, All,
I got a lot of prototype problems as following which cause all the menus at
the top are not functional correctly, when I use mouse highlight each menu,
there are no sub menu items shown up. Such as Export, the Export as PDF and
others do not show up.
Sys is not defined
}else{H.attachEvent("on"+E,F)
prototype.js (line 2172)
H.attachEvent is not a function
}else{H.attachEvent("on"+E,F)
prototype.js (line 2172)
H.attachEvent is not a function
}else{H.attachEvent("ondataavailable",F);
prototype.js (line 2168)
H.attachEvent is not a function
}else{H.attachEvent("ondataavailable",F);
prototype.js (line 2168)
H.attachEvent is not a function
I am using jquery like this:
$xwiki.ssfx.use('JScripts/jQuery/slickgrid/css/smoothness/jquery-ui-1.8.16.custom.css',
{'forceSkinAction' : true, 'language' : $context.language})
$xwiki.ssfx.use('JScripts/jQuery/slickgrid/examples.css',
{'forceSkinAction' : true, 'language' : $context.language})
$xwiki.ssfx.use('JScripts/jQuery/slickgrid/jGrid_style.css',
{'forceSkinAction' : true, 'language' : $context.language})
$xwiki.ssfx.use('JScripts/jQuery/slickgrid/slick.grid.css',
{'forceSkinAction' : true, 'language' : $context.language})
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/lib/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/lib/jquery.event.drag-2.0.min.js"></script>
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/slick.core.js"></script>
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/slick.editors.js"></script>
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/slick.grid.js"></script>
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/slick.formatters.js"></script>
<script type="text/javascript" src="/xwikim/bin/skin/resources/
JScripts/jQuery/slickgrid/slick.dataview.js"></script>
<script type="text/javascript"
src="/xwikim/bin/skin/resources/JScripts/jGrid.js"></script>
Does anybody have a clue why I go these kind of errors?
Thanks
Dave