668
Views
17
Comments
Solved
Script error for "PluginManager"

I have a problem with my application like this

When I check in ServiceCenter out errors are like the picture below

please help me how to solve it

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello.

You need to add the script PluginManager to your component.

You can find it inside the eSpace CommonPlugin.


Cheers,

GM

2020-09-17 01-03-04
Koushik Prathi

Gonçalo Martins wrote:

Hello.

You need to add the script PluginManager to your component.

You can find it inside the eSpace CommonPlugin.


Cheers,

GM

Hi Gonçalo Martins,

I am facing the same issue ,I tried with your solution but it's resolved can you elaborate your solution.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Koushik,

What did you try? What do you mean by "it's resolved"?

On Mobile, Screens and Blocks have a "Required Scripts" Property, that you can use to add a Script to that Screen or Block. You need to add the PluginManager from the CommonPlugin module to the Screen or Block where the error occurs:


2020-09-17 01-03-04
Koushik Prathi

Kilian Hekhuis wrote:

Hi Koushik,

What did you try? What do you mean by "it's resolved"?

On Mobile, Screens and Blocks have a "Required Scripts" Property, that you can use to add a Script to that Screen or Block. You need to add the PluginManager from the CommonPlugin module to the Screen or Block where the error occurs:


Hi Kilian Hekhuis,

Thanks for your reply, I made the changes what you suggested in the reply post. But i am getting some other error like "Cannot read property 'activeScope' of undefined".Can any one help me out from this issue

Regards,

Koushik.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Koushik,

Those are JavaScript errors, which could mean all kinds of things. My best guess is you are trying to include some JavaScript routines into your app, but don't have all the right dependencies. Since this has nothing to do with OutSystems per se, I'm afraid I can't help you with that.

2020-09-17 01-03-04
Koushik Prathi

Kilian Hekhuis wrote:

Hi Koushik,

Those are JavaScript errors, which could mean all kinds of things. My best guess is you are trying to include some JavaScript routines into your app, but don't have all the right dependencies. Since this has nothing to do with OutSystems per se, I'm afraid I can't help you with that.

Hi Kilian Hekhuis,

Thanks for giving reply, I created a new application with no dependencies,  then i added the plugin  manager script on page level.Still i am getting the same error. Are you sure its not problem with the component.If not can you send me a sample oml file which can perform download the file using url.

Regards,

Koushik.



2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Koushik,

What were you trying to do in the first place? You got the error in your first post, but what component were you trying to use?

2020-09-17 01-03-04
Koushik Prathi

Kilian Hekhuis wrote:

Hi Koushik,

What were you trying to do in the first place? You got the error in your first post, but what component were you trying to use?

Hi Kilian Hekhuis,

I am using File Transfer Plugin component , and its  download client action is returning the error "cannot read property active scope undefined" .So i need the help to resolve this error.I am attaching my oml file for reference.


Download.oml
2020-09-17 01-03-04
Koushik Prathi

koushik prathi wrote:

Kilian Hekhuis wrote:

Hi Koushik,

What were you trying to do in the first place? You got the error in your first post, but what component were you trying to use?

Hi Kilian Hekhuis,

I am using File Transfer Plugin component , and its  download client action is returning the error "cannot read property active scope undefined" .So i need the help to resolve this error.I am attaching my oml file for reference.


Hi Kilian Hekhuis,

Thanks for your reply, the main issue is we have to get the platform (android/ios) on which we want to store the file. Now i make the changes  according to my requirement now its working fine.

Regards,

Koushik.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Koushik,

Great to hear it's fine. Did you find out what the main problem was?

2024-01-05 16-00-17
Filipe Lourenço

I have the same problem, how did you fix?

2020-09-17 01-03-04
Koushik Prathi

Filipe Lourenço wrote:

I have the same problem, how did you fix?

Hello Filipe Lourenço,

If you are facing with plugin manager issue just add the plugin manager javascript on page level or web block level,While I am using file transfer plugin i faced  "active scope undefined" for that on page on ready i am getting the platform of the mobile(android/ios) and creating file according to that platform.This how i resolved that issue.I hope my solution help you in resolving the issue.     

Regards,

Koushik


2025-05-14 08-11-29
Aakash Baskar

Hi koushik

    I m facing same issue right now i followed ur steps and cleared the plugin manager error and now i m facing this active scope undefined even i m checking the platform in onready.


 

UserImage.jpg
Milind Bansal

Can you pls share your OML file as I am also getting the same error

UserImage.jpg
Swapnil Shinde

Hey All,

I got this error. I am also using file transfer plugin

Script error for "PluginManager"
http://requirejs.org/docs/errors.html#scripterror

This is an below script:

require(["PluginManager"], function(module) {
    var scope = module.scope("FileTransfer_download");
    if (!scope) return;

    var fileTransfer = new FileTransfer();
    var uri = encodeURI($parameters.URL);
   
    fileTransfer.onprogress = scope.downloadCallback.downloadProgress;
    fileTransfer.download(
        uri,
        $parameters.FileSystemURL,
        scope.downloadCallback.downloadComplete,
        scope.downloadCallback.downloadError,
        $parameters.trustAllHosts
    );
});


please help me to resolve this issue

2019-04-25 14-57-49
Mike Neyman

For anybody reaching this post because they are getting the "pluginmanager" error, then fixing that only to get the "activescope" error, this is the solution:


In the File Transfer plugin, if you are using any of the "Upload" or "Download" file client actions, you must also included the webblocks "HandleUpload" or "HandleDownload".  These are necessary in case the user closes or suspends the app while the transfer is taking place.  I placed them on my layout block and the problem has gone away.

Screenshot 2023-12-06 at 9.09.07 AM.png
2025-03-24 06-22-01
Vivek Kadyan

It resolved the issue. Thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.