[xwiki-users] 2 problems with XWiki: search and "All pages"
Hi all! My english is bad, and I sorry about this...:-\ I have XWiki Enterprise 6.4.3 on CentOS 7. And first problem is: when I click on "All pages", I see nothing, but the pages have (screenshot 1) <http://xwiki.475771.n2.nabble.com/file/n7595058/1.jpg> Second problem is: when I try to search something in Russian language I get symbols as in the screenshot 2 <http://xwiki.475771.n2.nabble.com/file/n7595058/2.jpg> In English language search works fine. xwiki.encoding=utf-8 -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Tue, Jun 9, 2015 at 9:14 AM, VasyaPupkin <[email protected]> wrote:
Hi all! My english is bad, and I sorry about this...:-\
I have XWiki Enterprise 6.4.3 on CentOS 7.
And first problem is: when I click on "All pages", I see nothing, but the pages have (screenshot 1)
Where exactly did you click? By default there's no page named "allpages".
<http://xwiki.475771.n2.nabble.com/file/n7595058/1.jpg>
Second problem is: when I try to search something in Russian language I get symbols as in the screenshot 2 <http://xwiki.475771.n2.nabble.com/file/n7595058/2.jpg>
In English language search works fine.
xwiki.encoding=utf-8
The encoding must be configured at multiple levels. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding .
-- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I fixed problem with encoding (add string in "Meta HTTP info" and add string in conf/server.xml). Thank you for help! What can I do with second problem (empty "All pages")? -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
I tried to look /xwiki/bin/view/Main/AllDocs but it doesn't work. -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mon, Jun 15, 2015 at 9:54 AM, VasyaPupkin <[email protected]> wrote:
I tried to look /xwiki/bin/view/Main/AllDocs but it doesn't work.
You need to check the JavaScript console and the server logs for error messages.
-- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
There is a line in the file /var/log/messages about "allpages": /xwiki server: 2015-06-15 16:29:37,673 [http://10.204.0.113/xwiki/bin/view/Main/allpages] WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in 83:xwiki:Main.allpages@8,134 / -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mon, Jun 15, 2015 at 3:09 PM, VasyaPupkin <[email protected]> wrote:
There is a line in the file /var/log/messages about "allpages":
/xwiki server: 2015-06-15 16:29:37,673 [http://10.204.0.113/xwiki/bin/view/Main/allpages] WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in 83:xwiki:Main.allpages@8,134 /
This is just a warning and doesn't prevent the page from working. It tells you that the code from Main.allpages uses a deprecated API. The default pages that come with XWiki don't use deprecated APIs so it means that this page Main.allpages was not update. Did you perform an upgrade recently? Or is it a clean install? If it was an upgrade, Did you upgrade the UI (wiki pages) using the Distribution Wizard?
-- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
It was clean install, without updates -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
Firebug show these errors (the same: allpages & AllDocs): ReferenceError: ace is not defined init(ace); Error: Script error for: text http://requirejs.org/docs/errors.html#scripterror ...c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/err... Error: Load timeout for modules: text!ace/css/editor.css_unnormalized2,text!ace/theme/textmate.css_unnormalized3 http://requirejs.org/docs/errors.html#timeout ...c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/err... -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Vasya, As Marius tried to explain to you, this "allpages" you keep mentioning has nothing to do with XWiki's code. It is a custom page created by the user you have already identified and talked to. The code he added there is completely custom (I see it also includes some javascript, from the errors you pasted) and there is not much we can help you with. The javascript error you pasted seem (not sure) to be related to the "ace" editor library that this user included in this custom document. This does not come by default with XWiki. To be more specific, that seems to be an error given by the requireJS javascript library that the user utilized/configured in his custom code when loading this "ace" editor library. What you can do at this point is to contact your user, relay him the information I just gave above and ask him to fix the custom code that he added. Hope this helps, Eduard On Wed, Jun 17, 2015 at 2:17 PM, VasyaPupkin <[email protected]> wrote:
Firebug show these errors (the same: allpages & AllDocs):
ReferenceError: ace is not defined init(ace);
Error: Script error for: text http://requirejs.org/docs/errors.html#scripterror ...c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/err...
Error: Load timeout for modules:
text!ace/css/editor.css_unnormalized2,text!ace/theme/textmate.css_unnormalized3 http://requirejs.org/docs/errors.html#timeout ...c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/err...
-- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I understood. But fact is that - it worked! Now it works in other xwiki version 6.3. This code was written a long ago, and I can't find author. :( First time this page used in xwiki 2.7 :) Since it didn't change. In the file - code of this page 1.txt <http://xwiki.475771.n2.nabble.com/file/n7595176/1.txt> -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
Anybody -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, I have just pasted that code in a 7.2-SNAPSHOT local XWiki instance and it worked perfectly. The result is identical to Main.AllDocs and my suggestion to you is that you drop your "allpages" document which is clearly old and now outdated by the Main.AllDocs XWiki standard document index. So it looks just like a leftover that maybe made sense in XWiki 2.7, but which now does not make sense when you have Main.AllDocs. As I mentioned, the code, even if old and useless now, worked on my clean XWiki instance so looking at the screenshot from your original message, you might be missing some standard XWiki UI documents, maybe cause by an incomplete migration from the old version to the newer one. This might be the reason why all those tabs are empty. If you look at the code you gave, you can see that for each tab there is a corresponding XWiki document: {{include document="XWiki.Tableview" /}} {{include document="XWiki.Treeview" /}} {{include document="XWiki.AllAttachments" /}} {{include document="XWiki.OrphanedPages" /}} {{include document="XWiki.DeletedDocuments" /}} {{include document="XWiki.DeletedAttachments" /}} Make sure that the above documents exist in your wiki (they probably don`t). If they don`t, you might need to re-run the migration you performed and do it more carefully this time, since there could be other things missing as well. Alternatively, if you can't/won't re-run the migration, for the missing documents above, you could (re)install the Index Application (Extension ID: org.xwiki.platform:xwiki-platform-index-ui) http://extensions.xwiki.org/xwiki/bin/view/Extension/Index+Application or, if you do not want to use the Extension Manager, just manually import and override the UI of the Index Application by using this xar (for 6.4.3) http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-index-ui/6... After that, Main.AllDocs should be in top shape and you can start using it. Your "allpages" document might start working as well, but again, I do not encourage using it. Good luck, Eduard On Sat, Jun 20, 2015 at 3:33 PM, VasyaPupkin <[email protected]> wrote:
Anybody
-- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
It works! I installed manually this *.xar and it worked Thank you very much! +10 in your karma Do I need any "reindexing pages" after install this *.xar? "XWiki.Tableview" is empty, but "XWiki.Treeview" works normally. -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
The only thing that comes to mind is to suggest you use the Extension Manager when installing that extension (instead of the manual XAR method): http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Manager+Appli... Use "org.xwiki.platform:xwiki-platform-index-ui" as Extension ID and "6.4.3" as version when installing the extensions through Advanced Search, as detailed in the link above. In case of a conflict in the install process, I suggest you override your version of the problematic document with the clean version coming from the extension you are installing. Thanks, Eduard On Tue, Jun 23, 2015 at 2:16 PM, VasyaPupkin <[email protected]> wrote:
It works! I installed manually this *.xar and it worked Thank you very much! +10 in your karma
Do I need any "reindexing pages" after install this *.xar? "XWiki.Tableview" is empty, but "XWiki.Treeview" works normally.
-- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
You were right again. When I uninstalling *.xar it showed me that it was installed with errors. After install "org.xwiki.platform:xwiki-platform-index-ui" through Advanced Search, all works fine. Big thx!!!! -- View this message in context: http://xwiki.475771.n2.nabble.com/2-problems-with-XWiki-search-and-All-pages... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Eduard Moraru -
Marius Dumitru Florea -
VasyaPupkin