Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : Action "Iframe" not found in the module "API" #18041

Open
Nehagaj opened this issue Sep 21, 2021 · 10 comments
Open

Error : Action "Iframe" not found in the module "API" #18041

Nehagaj opened this issue Sep 21, 2021 · 10 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.

Comments

@Nehagaj
Copy link

Nehagaj commented Sep 21, 2021

When exporting in an iframe a particular page using the Widgetize feature, when I try to export a report's data, and click on "Export this dataset in other formats" it opens a new window with the error : Error : Action "Iframe" not found in the module "API". The issue is coming up for the list tab in the iframe. It is working fine for the Charts tab.
What I do not understand is the same action iframe works for the module widgetize for the Charts tab and the same action iframe isnt found in the module widgetize for the List tab.

Can you please let us know how we can rectify this issue?

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for Bugs)

Context

Your Environment

  • Matomo Version:
  • PHP Version:
  • Server Operating System:
  • Additionally installed plugins:
  • Browser:
  • Operating System:
@Nehagaj Nehagaj added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Sep 21, 2021
@sgiehl
Copy link
Member

sgiehl commented Sep 21, 2021

Hi @Nehagaj
Could you please provide some simple steps how to reproduce that? If possible you could even provide some example urls or urls from our demo where you are able to produce the error.
Once we are able to reproduce we will see if / when we will be able to fix it.

@Nehagaj
Copy link
Author

Nehagaj commented Sep 23, 2021

We won't be able to reproduce this issue on demo site of matomo since we are facing this issue in an iFrame that we have embedded into our application.
We are using below url for accessing the stats report :
https://intranet-piwik.abc/index.php?token_auth=XXXXXXXXXX&module=Widgetize&action=iframe&moduleToWidgetize=Actions&actionToWidgetize=getPageUrls&idSite=1&fllat=1&filter_limit=100&period=week&date=yesterday&segment=pageUrl=@https://www.abc.com/index.php?date=yesterday&expanded=1&filter_limit=100&format=TSV&idSite=1&language=fr&method=Actions.getPageUrls&module=API&period=week&segment=pageUrl%3D@https:%2F%2Fwww.abc.com%2Ftest%2Fxxxxxx%2F&token_auth=xxxxxxxxxxxxx&translateColumnNames=1
which is giving us the following error
Matomo_issue

We select the stats report for a particular page and are trying to export the data in following format. refer attached image for the same. Once we click on export we are getting above error.
Matomo_issue2

@tsteur
Copy link
Member

tsteur commented Sep 23, 2021

@Nehagaj what does the URL look like for the widget that you embed? The URL you mentioned above looks like it wasn't generated correctly (eg segment parameter not escaped, parameters there twice etc and two question marks etc). I understand above URL was generated from the exporter?

And you have a different URL for embedding the page URL report into a frame. What's the URL you use for that?

@Nehagaj
Copy link
Author

Nehagaj commented Jan 31, 2022

Hello,

We use below url. It works fine for displaying the data into iframe. But it is not working while we try to export this data.

url = 'https://intranet-piwik.abc/index.php?token_auth=xyz&apiMethod=Actions.getPageUrls&module=Widgetize&action=iframe&moduleToWidgetize=CoreHome&actionToWidgetize=getRowEvolutionPopover&idSite=1&date=yesterday&period='+periode+'&disableLink=0&widget=1&label='+page_url+'&language=#langueUser#';

Matomo version that we are using : 4.3.1

@sgiehl
Copy link
Member

sgiehl commented Jan 31, 2022

@Nehagaj So do you mean the Export icon link in the embedded rowevolution report does not work?

@Nehagaj
Copy link
Author

Nehagaj commented Jan 31, 2022

Yes this is not working. Once we click on export we are not able to generate report and are getting the above error in a new window.

@Nehagaj
Copy link
Author

Nehagaj commented Jan 31, 2022

We are getting this issue "Action iFrame not found in module API"

@Nehagaj
Copy link
Author

Nehagaj commented Feb 1, 2022

Any updates on this issue?

@sgiehl
Copy link
Member

sgiehl commented Feb 1, 2022

Hi @Nehagaj. I'm actually not able to reproduce this. Using the URL you provided above I'm able to open the export popover and clicking export correctly opens the exported data in a new window. This works correctly for me in Matomo 4.3.1, 4.6.2 and also with latest releases and development version. Maybe updating to the latest version helps.

@Nehagaj
Copy link
Author

Nehagaj commented Feb 2, 2022

Hello,

We have recently updated the Matomo to version 4.3.1

Also we are getting this issue when we are clicking at the below green export button. Refer screenshot.

export_issue

@justinvelluppillai justinvelluppillai added this to the For Prioritization milestone Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.
Projects
None yet
Development

No branches or pull requests

4 participants