Maybe we are not talking about the same thing. None of the scripts work, that 
includes the panel scripts, like My Recent Modifications, Backlinks and 
Recently Modified. Are you saying that the last Author of the that page is 
Author of the panel scripts as well, though those are shown on every page??? We 
don't write or create any velocity scripts - we are only using the ones that 
came with XWiki or installed via Extensions.

Also, the extension managements pages are broken (I sent that in the first 
email that did not go through). Under Extension Manager, Add Extensions is 
listed, but is broken (I think, I'm back on 7.1.2 right now), but the other 
links all are like this:

$services.localization.render
('admin.xwiki.installedextensions')

Those definitely do no work.


Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[email protected]] On Behalf Of Eduard Moraru
Sent: Monday, October 05, 2015 10:18 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hi Keith,

On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis <[email protected]>
wrote:

> "Is there any chance that, while you`ve executed the Distribution 
> Wizard, you might have missed (ignored) the document XWiki.XWikiPreferences "
>
> I suppose - those boxes were not checked, but I checked those boxes 
> manually and it still did not work.
>

So you are saying that you`ve set the rights of the XWikiAllGroup as in the 
screenshot and you still have issues. Have you tried isolating the problem in a 
new page? Like creating a new page, writing/adding a velocity macro (event with 
some static text content, it does not matter) and then saving the page to see 
if it is executed properly and that you get no error?

How do I figure out what user is the author? How do I change the author of
> a script?
>

The last author of a script is the same thing as the last content author of the 
document in which the script is located. If you have problems with the scripts 
inside Main.Welcome (for example), you look at its "Last modified by" label, 
under the page title. That will tell you the user that last modified the page. 
The gotcha here is that the script right (just like the programming right) 
actually checks the last content author of that page, so the last user that 
changed the page's content (not the last user that added a comment for example, 
for that saved the page without changes, etc.).

To make it easier, I`ve published this small app [1] that you can install with 
the Extension Manager and check the content author and the status of 
Programming and Script rights on a particular page.

You need to identify who is the "content author" on the documents that contain 
scripts and that fail to work on your setup.

Hope this helps,
Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author


>
> BTW, this is almost every velocity script.
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[email protected]] On Behalf Of Eduard 
> Moraru
> Sent: Monday, October 05, 2015 7:33 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hello Keith,
>
> I see 2 possibilities here:
>
> 1) Is there any chance that, while you`ve executed the Distribution 
> Wizard, you might have missed (ignored) the document 
> XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> The point is that you rights configuration (specifically the 'script' 
> right
> section) for the XWikiAllGroup in Administration should look like in 
> this screenshot [1] (from the 7.2 release notes [2]). The 'script' 
> right is explicitly given to all users so that the migration/upgrade 
> behaves as before, until you decide otherwise. Please check that the 
> rights setup is properly upgraded.
>
> 2) The only other case I can think of is that you might have deleted 
> the user that is set as last content author in (most of) your 
> documents. If this is the case, then indeed the scripts will not be 
> able to be executed since the user no longer exists (and thus can not own the 
> 'script' right).
> To fix this, you could recreate the previously deleted user and make 
> sure he has the 'script' right.
>
> Please let us know if that helps.
>
> Thanks,
> Eduard
>
> ----------
> [1]
>
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki
> 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
>
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> Scriptright
>
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis 
> <[email protected]>
> wrote:
>
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:[email protected]] On Behalf Of 
> > [email protected]
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > #H
> > Scriptright
> >
> > Are you sure you’ve executed the Distribution Wizard? (because by 
> > default we give Script Rights to users).
> >
> > @Edy: I think we need some additional info in the Release Notes 
> > about
> this.
> >
> > Thanks
> > -Vincent
> >
> > On 5 Oct 2015 at 13:25:08, Keith Davis ([email protected]
> (mailto:
> > [email protected]))<mailto:[email protected](mailto:
> > [email protected]))> wrote:
> >
> > > I tried to send this once, but it looks like it did not go through.
> > >
> > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of 
> > > the
> > Velocity scripts work. I ended up rolling back to 7.1.2, because 
> > it's unusable in this state.
> > >
> > > org.xwiki.rendering.macro.MacroExecutionException: The execution 
> > > of the
> > [velocity] script macro is not allowed. Check the rights of its last 
> > author or the parameters if it's rendered from another script.
> >
> > [snip]
> >
> > _______________________________________________
> > users mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to