When our user use the wysywig editor to insert a image
And the user chooses to upload the image from computer
The system will attach the image to the current $doc
But it will insert a link [[image:xxxxx.xxx]] where xxxxz.xxx is the attached filename.
This works fine when page is visited.
But when in BLOG or using {{include reference='docWithImage'/}}
It can not find the link and show the according 'can not find image' icon
Is it possible to automatically insert a image as [[image:wiki:space.page@xxxxx.xxxx]] (is this called extended reference to attached image])
Same for any attached file where user chooses to add a link to attachment (PDF, .doc, .xls)
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Hi everybody,
I've tried the whole afternoon (including checking the source code of the
corresponding java files) but I was unable to resolve my problem by myself.
What have I done:
* I've created a XWiki instance and I'm running 4 or 5 separate wikis there.
* I've set up mail sending in the "main" section to test some features
* The mails are sended and are received by the testclient
So far no problem. But if I'm looking into the console output I've got the
strange exception with an error level there and I'm not able to solve it:
2016-07-18 19:41:52,401 [Mail Sender Thread] ERROR
o.x.m.i.t.SendMailRunnable - Unexpected error in the Mail Sender Thread
java.lang.IllegalArgumentException: An Entity Reference name cannot be null
or empty
at
org.xwiki.model.reference.EntityReference.setName(EntityReference.java:187)
at
org.xwiki.model.reference.EntityReference.<init>(EntityReference.java:172)
at
org.xwiki.model.reference.EntityReference.<init>(EntityReference.java:143)
at
org.xwiki.model.reference.WikiReference.<init>(WikiReference.java:61)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.
getCurrentWikiReference(AbstractDocumentConfigurationSource.java:185)
at
org.xwiki.mail.internal.configuration.SendMailConfigClassDocumentConf
igurationSource.getDocumentReference(SendMailConfigClassDocumentConfigurationSou
rce.java:68)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.
getCacheKeyPrefix(AbstractDocumentConfigurationSource.java:122)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.
getPropertyValue(AbstractDocumentConfigurationSource.java:306)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.
getProperty(AbstractDocumentConfigurationSource.java:301)
at
org.xwiki.mail.internal.configuration.DefaultMailSenderConfiguration.
getSendWaitTime(DefaultMailSenderConfiguration.java:313)
at
org.xwiki.mail.internal.thread.SendMailRunnable.waitSendWaitTime(Send
MailRunnable.java:177)
at
org.xwiki.mail.internal.thread.SendMailRunnable.runInternal(SendMailR
unnable.java:108)
at
org.xwiki.mail.internal.thread.SendMailRunnable.run(SendMailRunnable.java:74)
at java.lang.Thread.run(Unknown Source)
as far as I understand the message it tells me, that a mandatory property is
missing, should be the waitSendWaitTime property.
In my mail configuration I've overridden the Send Wait Time, addtionally
I've uncommented the property:
mail.sender.sendWaitTime=8000
in the xwiki.properties file.
Unfortunately the error keeps occuring.
Best regards and thanks in advance,
Heiko
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-mail-configuration-sendWaitTime-tp7…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi good folks,
Is there a way to save a page using javascript?
I read the XWiki JavaScript API but could not find this functionality.
Thanks in advance,
Jan-Paul
---
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
https://www.avast.com/antivirus
Hello,
I've been trying to get xwiki running for almost a week and keep running into memory errors. I was finally able to get through the Distribution Wizard without having to restart Jetty due to out of memory errors, but am still getting the errors when I try to do almost anything in the wiki. The standalone installer works great and is much more responsive but I would like to use Postgres for the database.
Any suggestions for what I can do to get xwiki to stop the out of memory errors?
Thanks,
Jared
Here's my current config:
OS: Ubuntu 16.04.1 LTS fully patched
Java:
- openjdk version "1.8.0_91"
- OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14)
- OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
Jetty: 9.2.14.v20151106
- JAVA_OPTIONS="-server -Xms800m -Xmx2048m -XX:MaxPermSize=222m -Dfile.encoding=utf-8 -Djava.awt.headless=true -XX:+UseParallelGC -XX:MaxGCPauseMillis=100"
Database: PostgreSQL 9.5.3
JDBC Driver: postgresql-9.4.1208.jar
Here are the most recent errors that occurred when I tried to edit my first page:
2016-07-18 18:26:29,335 [http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/] ERROR c.x.x.XWiki - Error while evaluating velocity template [exception.vm]
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/exception.vm]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:227)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:726)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557)
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1896)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:88)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:507)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:193)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'parseTemplate' in class com.xpn.xwiki.api.XWiki threw exception java.lang.OutOfMemoryError: GC overhead limit exceeded at /templates/macros.vm[line 20, column 8]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
... 51 common frames omitted
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
2016-07-18 18:26:30,809 [http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/] ERROR o.i.ObservationContextListener - Can't find any begin event corresponding to [class org.xwiki.bridge.event.ActionExecutedEvent (view)]
2016-07-18 18:26:30.810:WARN:oejs.ServletHandler:http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/: Error for /xwiki/bin/view/Infrastructure/
java.lang.OutOfMemoryError: GC overhead limit exceeded
DearThomas,
Thanks for your reply.
I would like to name my wiki *Emirates WikiLaw*.
Francesca
2016-07-17 12:00 GMT+02:00 <users-request(a)xwiki.org>:
> Send users mailing list submissions to
> users(a)xwiki.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xwiki.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)xwiki.org
>
> You can reach the person managing the list at
> users-owner(a)xwiki.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
> 1. saving a page using javascript (Jan-Paul Kleijn)
> 2. Re: new wiki request (Thomas Mortagne)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 16 Jul 2016 15:58:34 +0200
> From: Jan-Paul Kleijn <email(a)biggee.nl>
> To: XWiki Users <users(a)xwiki.org>
> Subject: [xwiki-users] saving a page using javascript
> Message-ID: <547b99a1-3aa0-4b8f-60f9-3349445be899(a)biggee.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi good folks,
>
> Is there a way to save a page using javascript?
>
> I read the XWiki JavaScript API but could not find this functionality.
>
> Thanks in advance,
>
> Jan-Paul
>
>
> ---
> Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
> https://www.avast.com/antivirus
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 16 Jul 2016 19:21:41 +0200
> From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> To: XWiki Users <users(a)xwiki.org>
> Subject: Re: [xwiki-users] new wiki request
> Message-ID:
> <
> CAPnKnLGEOSGdKU6Q+2WJH+dLzPX-R-CvKUrphQ9tjAYOWwfWDw(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> What name do you want for your wiki ?
>
> On Thu, Jul 14, 2016 at 5:12 PM, francesca borghi
> <comitem.itea(a)gmail.com> wrote:
> > Dear Users,
> > I am Francesca Borghi, registered with the name of Comitem.
> > I aim at using xwiki to create a new collaborative platform to develop
> > content concerning trade law of the United Arab Emirates.
> > The objective of this platfomr is spreading knowledge on the Emirate law
> > without mediation of the commercial institutions, but by peer to peer
> > interaction.
> >
> > Sincerely
> > Francesca Borghi
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> ------------------------------
>
> End of users Digest, Vol 108, Issue 21
> **************************************
>
I'm using the 7.4.4 version of XWiki. Does anyone know how to operate the Velocity codes in "HTTP Meta Info"?
With the flamingo skin, this work, but with colibri skin not working
When I give the right "program" one of the XWiki groups, it works.
I saw the following error in the log:
WARN org.xwiki.velocity.internal.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseContent] in 30:/skins/colibri/view.vm@25,47
Result in user browser:
#if($doc.fullName != "XWiki.XWikiLogin")<link rel="alternate" type="application/rss+xml" title="Wiki Feed RSS" href="$xwiki.getURL('Main.WebRss', 'view', 'xpage=rdf')" /><link rel="alternate" type="application/rss+xml"
Regards,Julio
rs. It is the same behavior
> with strikethrough word.
> > Any ideas how
> to fix it?
> >
> > With
> Xwiki 8.1, WYSIWYG Editor is loading anymore.
>
> Regarding XWiki 8.1, make sure
> you force clear you browser cache.
I did it.
But i copy/paste example from http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#… (probably working with "old" WYSIWYG editor only).
>
> Also note that starting with XWiki 8.2RC1, CK
> is now the default editor and you may want to try it out and
> verify how it works in it.
Ok then I must looking for a nice example to use new CKeditot
Thxs
Hi,
I found 2 differents bugs on WYSIWYG Editor Module.
I copy/paste "Load on demand using velocity macros" example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#…
On Xwiki 7.0.1, I load the WYSIWYG Editor, I type some words in WYSIWYG tab, I underline a word and select source tab => a end of line is inserted before __ characters. It is the same behavior with strikethrough word.
Any ideas how to fix it?
With Xwiki 8.1, WYSIWYG Editor is loading anymore.
Thxs.
Pascal B
Hi,
I found 2 differents bugs on WYSIWYG Editor Module.
I copy/paste "Load on demand using velocity macros" example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#…
On Xwiki 7.0.1, I load the WYSIWYG Editor, I type some words in WYSIWYG tab, I underline a word and select source tab => a end of line is inserted before __ charcters. It is the same behavior with strikethrough word.
Any ideas how to fix it?
With Xwiki 8.1, WYSIWYG Editor is loading anymore.
Thxs.
Pascal B
Dear Users,
I am Francesca Borghi, registered with the name of Comitem.
I aim at using xwiki to create a new collaborative platform to develop
content concerning trade law of the United Arab Emirates.
The objective of this platfomr is spreading knowledge on the Emirate law
without mediation of the commercial institutions, but by peer to peer
interaction.
Sincerely
Francesca Borghi