Re: [xwiki-users] Failed to load resource: the server responded with a status of 403 (Forbidden)

2016-02-17 Thread Sonic
Thanks all for help.
*Eduard Moraru*
Yes, it was just a problem with rights. Nothing with the extension.
The Space Macros' view right for XWikiAllGroup was forbidden.
So only XWikiAllGroup' users with admin/programming rights could see
highlighting code.




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Failed-to-load-resource-the-server-responded-with-a-status-of-403-Forbidden-tp7598013p7598027.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Failed to load resource: the server responded with a status of 403 (Forbidden)

2016-02-17 Thread Sonic
Hi, vmassol
When I give admin and/or programming rights for whole xwiki to user, macro
works well. When I take it back, macro doesn't work. And this message:"the
server responded with a status of 403 (Forbidden)"
This is why I think that.
Maybe something wrong with my Xwiki configuration?
And my xwiki version is older - 7.1.4.





--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Failed-to-load-resource-the-server-responded-with-a-status-of-403-Forbidden-tp7598013p7598018.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Failed to load resource: the server responded with a status of 403 (Forbidden)

2016-02-17 Thread Sonic
Hi. I have Highlight macros that doesn't work for users without admin and
programmers rigths.

How I use this macro:
{{highlight language="php" style="monokai"}}
/public function updateSystemStatus()
{
$articules = Articules::where('system_status_id', 5)->get();
foreach($articules as $articul){
Status::updateEntitySystemStatus([
'entity' => 'articul',
'object' => $articul,
]);
$articul->save();
}
return  'OK';
}
{{/highlight}}/

Here is what I see as admin in the page's source code:
 

And what I see as a user:
 

Console output:
 




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Failed-to-load-resource-the-server-responded-with-a-status-of-403-Forbidden-tp7598013.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Something wrong with extension manager and xwiki

2016-02-12 Thread Sonic
Thanks Eduard.

I restarted Xwiki and this fixed the problem.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Something-wrong-with-extension-manager-and-xwiki-tp7597917p7597964.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Something wrong with extension manager and xwiki

2016-02-11 Thread Sonic
1.
I have tried to install Syntax Highlighting Application(3.3 version) after I
deleted the one(3.1 version).
Extension manager just started showing this icon: 
 
The install log was empty. It didn't stop.
I installed the extension manually by importing the .xar file.
And now I see this in installed extension section(install log is empty):
 
In Extension History xwiki said the extension version is not valid and
offered to downgrade to 3.1.
I did it and got this 
 

2. 
What does it mean?
 

3. I tried to install Highlight Macro extension like the first one. First
with Extension manager and then did it manually. There is no this extension
in Installed extension section, but I can see this in Add extension section:
 
In extension history I see the same thing.

It feels like something just has stopped and doesn't work.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Something-wrong-with-extension-manager-and-xwiki-tp7597917.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] What will happen if I install extension with almost the same function?

2016-02-10 Thread Sonic
Thanks.

I got it at last.
I have this Highlight Macro.




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-with-almost-the-same-function-tp7597807p7597868.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Highlight Macro doesn't highlight code for users

2016-02-10 Thread Sonic
Hi again.
Highlight Macro
  
doesn't highlight code in "view mode" for users without the
admin/programming rights.
My xwiki version is 7.1.4.

What could be the reason?

Sorry for third post in a row, but now I have the clear question at last as
I think.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Highlight-Macro-doesn-t-highlight-code-for-users-tp7597870.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] What will happen if I install extension with almost the same function?

2016-02-08 Thread Sonic
I have Syntax Highlighting Application that "Provides Syntax Highlighting"
(uses Highlight.JS).
I want to install Highlight Macro(uses Highlight.JS with the same syntax),
because there is a right access problem with either Syntax Highlighting
Application or Highlight.JS. idk
What will happen? Do i have to delete Syntax Highlighting Application first?
I tried to delete, but after that Highlight JS Macro(which Highlight Macro
extension uses too) still remain. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-with-almost-the-same-function-tp7597806.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] What will happen if I install extension with almost the same function?

2016-02-08 Thread Sonic
I have Syntax Highlighting Application that "Provides Syntax Highlighting"
(uses Highlight.JS). 
I want to install Highlight Macro(uses Highlight.JS with the same syntax),
because there is a right access problem with either Syntax Highlighting
Application or Highlight.JS. idk 
What will happen? Do i have to delete Syntax Highlighting Application first?
I tried to delete, but after that Highlight JS Macro(which Highlight Macro
extension uses too) still remain.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-with-almost-the-same-function-tp7597807.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Syntax Highlighting extension

2016-02-05 Thread Sonic
I don't remember exactly how i did install the extension.
My wiki is XWiki Enterprise 7.1.4 and the extension version was 3.1

Now I deleted the extension in Extension Manager, but it was like nothing
happened. Just disappeared in Extension Manages' installed section.
I now installed 3.3 version(using import and .xar file) and it's not working
anyway. I must don't understand how xwiki works.

Type this in source code mode:
{{highlight language="php" style="monokai"}}
 Hello World'; ?> 
{{/highlight}}
or use macro -> Highlight(highlight.JS integration)

Check the page as user without "Administrator" and "Programming" rights.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Syntax-Highlighting-extension-problem-tp7597773p7597792.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Syntax Highlighting extension

2016-02-03 Thread Sonic
Hi. I've installed Syntax Highlighting extension, but it highlights code only
for users which are in XWikiAdminGroup(i.e. with all rights and
permissions). For ordinary users the extension is available, but not
highlights code.
What is the reason?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Syntax-Highlighting-extension-tp7597773.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users