Hi Frederic,

This is caused by the fact that widget resources are currently not available 
through the global admin UI.

This will actually soon change, as we’ll be introducing some admin UI 
improvements, including the widgetification of the admin UI. At that point, the 
widget resources will be available on the global admin as well.

There are probably 2 alternative solutions at this point.

1) Do you actually want the widget to be loaded on the global tenant as well? 
My feeling would be that this isn’t desired, in which case we’ll have make a 
change to tell the widget loader to ignore `onLoad` widgets on the global admin 
tenant or make it more fine-grained so the configuration can distinguish 
between global and user tenants.

2) If you do want the widget on the global tenant, you can temporarily add the 
widget resources block to your global admin block in the nginx config file:

```
######################
## WIDGET RESOURCES ##
######################

location /node_modules/ {
    alias <%= nginxConf.UX_HOME %>/node_modules/;
    autoindex off;
    expires max; 
}
```

Hope that helps,
Nicolaas


On 26 Mar 2014, at 14:08, frederic dooremont 
<frederic.doorem...@univ-littoral.fr> wrote:

> this error is presented which for the global tenant and not for the others
> Le 26 mars 2014 à 14:21, Frédéric Dooremont 
> <frederic.doorem...@univ-littoral.fr> a écrit :
> 
>> hi all,
>> I tried a new install of OAE with the piwik widget.
>> for the install i used the command npm install...
>> 
>> I have this error 
>>      
>> 
>> "NetworkError: 404 Not Found - 
>> http://admin.oae.com/node_modules/oae-piwik-analytics-ui/js/piwik.js";
>> piwik.js
>> Error: Script error http://requirejs.org/docs/errors.html#scripterror
>> var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
>> require-jquery.js (ligne 159)
>> 
>> 
>> 
>> 
>> I don't understand because the file is well present in my system
>> 
>> can you help me  please
>> 
>> kind regards
>> fred
>> _______________________________________________
>> oae-dev mailing list
>> oae-dev@collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/oae-dev
> 
> _______________________________________________
> oae-dev mailing list
> oae-dev@collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev

_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to