The powerbi dashboard are not working due to this error: Access token has expired, resubmit a new access token.
Do you have any suggestions for fixing it? We’ve attempted the following solutions:
I am trying to setup the plugin but keep getting this error. ?AADSTS50056: Invalid or missing password: password does not exist in the directory for this user. I have gone through the instructions several times and setup Azure and Power BI accordingly. I’m not sure how to proceed to fix the issue.
]]>Hello.
I can make the plugin work in dev enviroment but now in prod i get the error “Cannot read properties of undefined (reading ‘replace’)” in javascript,.
It seems like jquery.get wasn’t receiving any response, but the url that generates the token works correctly.
Thanks in advance.
Hi there,
We were recently made aware of the following issue causing the embeds to no longer work:
Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access
Wondering if you know the steps to resolve this for the User being used?
Any assistance would be greatly appreciated.
Thanks!
]]>I have enjoyed using this plugin and have successfully embedded both power bi reports and power bi tiles into wordpress pages using the plugin’s created shortcodes.
We now have a need to change an embedded tile’s slicer from our web page. I’ve been trying my best to learn from some of the filter posts in this plugin support area from a few years ago but the referenced links were deprecated and it doesn’t seem I am understanding the Microsoft documentation for Power BI embedded analytics Client APIs.
I have a script in the webpage HTML head to change the embedded tile when a time intelligence field is selected on the webpage (WTD, MTD, QTD, YTD) and a report refresh button is clicked. When I select and click, the original embedded tile disappears, I see the power bi logo pulsing and a new tile is embedded but unfortunately with the same data as before and the column header is now green. I want the data to change based on the slicer selection and no color changes to the slicer header.
Here is the javascript I am using:
// javascript code for refreshing the tile
function handleSlicerRefresh(event) {
event.preventDefault(); // Prevent form submission
// Get the selected slicer value
var selectedValue = document.querySelector('input[name="time_intelligence"]:checked').value;
console.log("this is the time intelligence selected", selectedValue);
// Create the variable slicers object based on the selected slicer value
var slicers = [{
selector: {
$schema: "https://powerbi.com/product/schema#visualSelector",
visualName: "8daccedca2c143033cda"}, // taken from slicer visual
state: {
filters: [{
$schema: "https://powerbi.com/product/schema#basic",
target: {
table: "Time Intelligence", //table name in report
column: "name"}, // field/column name
operator: "=",
values: [selectedValue]
}]}}];
console.log("this is the slicer", slicers);
// Get pageURL as the iFrame src="url here" in the elements and layout of developer console. Find container and drill down to find iframe
var pageURL = "https://app.powerbi.com/embed?dashboardId=<enter dashboardID>&tileId=<enter tileID>&groupId=<enter groupID>&language=en&formatLocale=en&uid=gwuw1";
console.log("this is the pageURL", pageURL);
// Create the relatedURL with the filters attached
var relatedURL = pageURL + "?slicers=" + encodeURIComponent(JSON.stringify(slicers));
console.log("this is the relatedURL ", relatedURL);
// Get the embedded tile iframe element
var embeddedTile = document.getElementById('tile_shortcode').getElementsByTagName('iframe')[0];
// Update the src attribute of the iframe with the relatedURL
embeddedTile.src = relatedURL;
}
I have a div id=’tile_shortcode’ in my html where I embed the original shortcode successfully.
I’m not really understanding the concept in the example provided by the plugin documentation for changing the slicer by appending the URL. I’ve been assuming the pageURL is the src for the iFrame. When I use the actual https://website-name.com/embedded-tile/ web page URL, I get the whole entire page embedded inside the iFrame with the headings, text and form selectors.
I feel like I’m almost there. I get successful console logs. I just don’t know how to use the var relatedURL to update the embedded tile. Hopefully someone has updated instruction to assist me. Thank you.
Can I embed reports with just a Power BI Pro License? Or do I need to set up an Azure Active Directory (5000USD Per month)?
]]>Your plugin is not compatible with PHP 8.0. Here is the initial fatal error that occurs in a site running your plugin:
Got error 'PHP message: PHP Fatal error: Uncaught Error: Non-static method Power_Bi_Oauth::get_token() cannot be called statically in /var/app/current/wp-content/plugins/embed-power-bi/includes/class-power-bi.php:92
Please fix this ASAP. We are unable to use your plugin until this is fixed.
]]>Currently Power BI page navigation is stuffed at the footer of the embedded report. Do you have any plans to allow for moving this to the side of the report?
]]>Just wondering if there are any plans to update this to not use plain text authentication?
?AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access…….
]]>This is the error message in the console.
powerbi.min.js?media=1674642103?ver=1674212136:4 Uncaught (in promise) Error: Attempted to embed using config {“accessToken”:””,”settings”:{“filterPaneEnabled”:false,”navContentPaneEnabled”:false,”localeSettings”:{}}} on element , but could not determine what type of component to embed. You must specify a type in the configuration or as an attribute such as ‘powerbi-type=”report”‘.
at t.embedNew (powerbi.min.js?media=1674642103?ver=1674212136:4:162818)
at t.embedInternal (powerbi.min.js?media=1674642103?ver=1674212136:4:162498)
at t.embed (powerbi.min.js?media=1674642103?ver=1674212136:4:162062)
at processReportData (powerbi-report.js?media=1674642103?ver=1674212136:137:174)
Hello,
Thank you for your great efforts and work!
After I installed Version: 1.1.5 (fresh) and activated the plugin, I see the below messages on the plugins page. Your help is truly appreciated. The website is vanilla and no other plugins are installed.
<br>Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 37
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 38
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 39
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 40
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 41
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 42
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 43
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 44
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 45
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 46
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 47
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 48
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 49
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 50
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 143
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 143
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 90
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 91
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 92
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 93
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 143
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 144
Warning: Trying to access array offset on value of type bool in mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 145
Warning: Cannot modify header information - headers already sent by (output started at mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php:37) in mywebsite.com/wp-admin/includes/misc.php on line 1416
Warning: Cannot modify header information - headers already sent by (output started at mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php:37) in mywebsite.com/wp-includes/functions.php on line 6865
Warning: Cannot modify header information - headers already sent by (output started at mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php:37) in mywebsite.com/wp-admin/admin-header.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php:37) in mywebsite.com/wp-includes/option.php on line 1138
Warning: Cannot modify header information - headers already sent by (output started at mywebsite.com/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php:37) in mywebsite.com/wp-includes/option.php on line 1139
]]>
AADSTS65001: The user or administrator has not consented to use the application with ID ‘b2640477-9d22-45f4-b872-064d51b69889’ named ‘Power BI’. Send an interactive authorization request for this user and resource. Trace ID: 7bbf3305-895a-445b-979b-b3b8cead1c00 Correlation ID: a05d08f9-6800-4708-aa15-ad0f51800714 Timestamp: 2023-01-23 14:10:13Z
I have done consent to use application with ID. Still get this message.
]]>Hi all.
I am new using this plugin and also with Power BI, and in my current project I need to do the registration to be able to show on the web the generated reports, but I have not been able to get past the initial configuration to be able to access the data. The error I get is:
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access ‘******5-****-*******’ Trace ID: 84*****-97**-4***-88a5-*****cd8**** Correlation ID: ****35a-**1*-**d4-8***-**0bc****** Timestamp: 2022-12-14 17:12:14Z
I honestly don’t have much knowledge based on Azure AD and how to enable or configure the MFA and API permissions needed to be able to have the initial configuration active.
]]>Hello,
I am using the plugin “Power BI Embedded for WordPress”
As mentioned in the documentation, I have registered an app with Azure AD and it now appears in WordPress in the PowerBI Settings page. (I can see the “Oauth Status=Connected”)
I have followed the “app owns data” process (so I don’t need “Client secret”)
Then I add a new Power BI item in WordPress with all requested Information:
Embed type=Report
Report Mode=View Mode
Report Id=xxxxx (found in the url)
Group Id= xxxxxxxx (found in the url)
Dataset Id: not mandatory because I don’t need “Create mode”
Page Name: not requested for report publishing
The problem is that when I preview this embed item, I get an empty screen.
Same thing when I add a new page in WordPress and insert the shortcode in this page
When I inspect the page, I find in the console the following:
Failed to load resource: the server responded with a status of 404 (Not Found)
/wp-json/powerbi/v1/getToken:1
Do you have any ideay that could help
(I’m a beginner in wordpress)
Instead of setting “language” and “format local”, let the user set the Culture string, like “en-US” or “pt-BR”.
Today, there is no way to set “pt-BR”, only “pt-pt”, and this is a problem when showing values, for example.
Let the culture be a free string, with a default value, like “en-US”, just to remember what to set there. The user who configs this plugin knows what it means and how to set the correct culture.
]]>Hi!
On version 1.1.4 and 1.1.5, the background of our embedded reports are not showing up. The last working version is 1.1.3. Is there any fix to this?
I know the plugin is funded by internal resources of Atlas Policy, so I don’t want to sound harsh or bossy.
Even though I have never developed a plugin, I have some experience with PHP and other languages. If anyone from the development team of this plugin could give at least a hint on what I could look at to see if I find the problem, I’d happily check it out.
In the meantime, I will keep looking at the plugin source code and trying to identify what is causing this issue. I thought of comparing all files from 1.1.3 (last working version) and 1.1.4 (when the bug started) to check what has changed and what could be causing this.
Thanks for this plugin, it’s very handy and besides these minor bugs, works great.
]]>Hi, I am trying to install the plugin but I get these error messages:
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 37
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 38
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 39
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 40
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 41
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 42
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 43
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 44
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 45
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 46
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 47
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 48
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 49
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 50
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 143
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 90
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 91
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 92
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 93
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 143
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 144
Warning: Trying to access array offset on value of type bool in /nas/content/live/devctgb/wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php on line 145
]]>
Hi Support,
We have an issue with Version 1.1.5 of this plugin. Our reports are not being displayed.
Please see error below:
Uncaught (in promise) Error: Attempted to embed using config {"accessToken":"","settings":{"filterPaneEnabled":false,"navContentPaneEnabled":false,"localeSettings":{}}} on element <div id="powerbi-embedded-874" class="powerbi-embed" style="height: 680px; width: 100%;" data-postid="874"></div>, but could not determine what type of component to embed. You must specify a type in the configuration or as an attribute such as 'powerbi-type="report"'.
at t.embedNew (powerbi.min.js?ver=1660142378:4:162818)
at t.embedInternal (powerbi.min.js?ver=1660142378:4:162498)
at t.embed (powerbi.min.js?ver=1660142378:4:162062)
]]>
The latest version, 1.1.5, running on WordPress 6.0.0, doesn’t allow render more than one shortcode per page, I mean, you can’t render more than one Power BI report per page, only the first one will render.
]]>After updated to latest plugin background version of my reports were not loaded in embedding.
]]>Im just here to see if this is dead or not? Its been 2 years since an update, we use this on about 36 different websites and if its dead we need to look into something else.
Thanks kindly.
]]>Boa noite, existe uma previs?o de sair atualiza??o e novos recursos?
]]>Hi,
Can we get analytics for WordPress contnet using powerBI wordpress plugin. or else is this to integrate or bring analytics for other data repository over wordpress application?
Regards,
Aruna.
Hi, I’m getting two Warnings on the screen, can you help me remove this?
Warning: Undefined array key “properties” in /var/www/html/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 229
Warning: Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php on line 229
]]>Hello!
We just started using this plugin and require some help configuring a filter that will show unique reports to users based off of their login credentials. We’ve seen the other threads about this issue but are having some trouble on our end implementing the steps in the forum. Could anyone please help?
]]>I saw the same request about 3 years ago with a suggestion to install another plug in to solve this. However, this Fun Easy plug in is not so good. Then, I’d like to know if there is some update in this plug in to add a botton for Fullscreen.
]]>Hi,
I am trying to embed a powerbi report to a wordpress website using your plugin. I have a powerbi pro account, I created an app on my Azure Portal, I gave permission for powerbi ( read / write for all reports, datasets..etc and Create_content ), I gave admin consent to those permissions, I connected my account to the plugin using my master account and my app ID and secret but when I try to embed the report, I still having an error in the javascript console :
GET https://mywebsite.com/wp-json/wp/v2/powerbi/getToken 500 Internal Error
Is there something else to configure for the getToken request to succes ?
Thanks a lot,
Micka?l
]]>Hi,
Upon installation and activation of the plugin, there seems to be a conflict/compatibility issue my LearnDash (LMS plugin). The courses and lessons page are continuously refreshed due to a failed request, and the pages never load.
This is LearnDash’s support reply:
I was successfully able to log in to your website and I found that the plugin named “Power BI Embedded for WordPress” was creating a conflict and hence the editor was not able to load properly and that was the reason for the page to refresh continuously. I have disabled that plugin, in order for it to work properly, you may contact their support.
This happens on WordPress 5.7.2, PHP 7.3, LearnDash LMS 3.4.1.1 and version 1.1.3 of the Power BI Embed plugin.
]]>Hello I am trying to make a filter using your javascript but I am not successful it just presents me with the following error. Can you help me?
Mensagem de erro: resolveCluster Exception: Failed to execute ‘setRequestHeader’ on ‘XMLHttpRequest’: ‘Bearer
is not a valid HTTP header field value.
My code
var relatedFilterObj = [{“$schema”:”https://powerbi.com/product/schema#basic”,”target”:{“table”:”User”,”column”:”Username”},”operator”:”=”,”values”:[“321”]}];
var pageURL = “https://dash.powerreports.com/powerbi”
var relatedURL = pageURL + “?filters=” + encodeURIComponent(JSON.stringify(relatedFilterObj));
I am trying to set this plugin up for a demo I am putting together for my company. We use multi-factor authentication for our Microsoft access. Is there any way to use this plugin with multi-auth seeing as it’s an organizational requirement these days?
]]>