site-kit-wp: Cannot read properties of undefined (reading 'Pe')
Bug Description
There have been reports of the below dashboard error appearing for 2 users.
Cannot read properties of undefined (reading 'Pe')
in GoogleChart
in ContextProvider
in Chart
in div
in GoogleChart
in div
in Sparkline
in div
in div
in DataBlock
in div
in DashboardImpressionsWidget
in WhenSearchConsoleActive(DashboardImpressionsWidget)
in div
in div
in Widget
in WithWidgetSlug(Widget)
in WidgetRenderer
in div
in Cell
in WidgetCellWrapper
in div
in Row
in div
in Grid
in div
in Cell
in div
in Row
in div
in div
in Grid
in WidgetAreaRenderer
in div
in WidgetContextRenderer
in DashboardApp
in GoogleSitekitDashboard
in RestoreSnapshots
in ErrorHandler
in Root
https://wordpress.org/support/topic/plugin-error-182/ | Open | Awaiting SH info https://wordpress.org/support/topic/sitekit-error-please-fix-your-app/ | Open | Awaiting SH info
Troubleshooting and third party conflict checks ongoing.
Steps to reproduce
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Screenshots
Additional Context
- PHP Version:
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Plugin Version [e.g. 22]
- Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
QA Brief
Changelog entry
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 15 (1 by maintainers)
@aaemnnosttv Thanks for checking this. I’ll open a support topic with the plugin developer and check with any impacted users.
Just a quick note here. Registration Magic have released an update to their plugin that includes a fix for this conflict, version 5.0.2.2.
For any users who encountered this error please update to this latest version of Registration Magic.
If you previously used the mini plugin proposed above as a temporary solution, you can now deactivate and uninstall this as it’s no longer required.
The RegistrationMagic team have confirmed they’ll a fix for this in place in an upcoming release. As there’s no action required on the Site Kit site I’m closing this issue while following up with impacted users.
I’ve been able to recreate this today on one site. This particular site is on a hosting platform that has a very restrictive Firewall and from testing doesn’t offer great performance.
On occasions this site often times out when performing AMP validation and on occasions the Site Health status (below) displays that the site cannot perform loopback requests.
Console Errors
Site Health info
Recording of experience
After deactivating the Breek theme and ACF pro this no longer occurs. I did have the Google Maps API connected within ACF pro.
@bethanylang @jamesozzie I tried to make some sense of this while looking at the code but running into a dead end. I was hoping to find some usage of a
Peproperty access in the compiled Site Kit code (1.43.0) as well as the Google Chart JS code (https://www.gstatic.com/charts/loader.jsandhttps://www.gstatic.com/charts/49/loader.js), but couldn’t pinpoint it to anything.Some early thoughts to point out here:
GoogleChartcomponent code that is called when wrapped with thereact-google-chartsContextProvidercomponent (see https://github.com/rakannimer/react-google-charts/blob/288ce66a2d8e89012305ee3bb5c200fed0a1c9ef/src/ReactGoogleCharts.tsx#L38). So I wonder whether one of our callbacks is the problem here.Sparklinecomponent in which the error here happens doesn’t provide any custom callbacks, so this seems to be a universal problem and not related to purely theSparklines in the dashboard.Some potential follow-up questions to ask the users that encountered the error:
Sparkline, but other types of Google charts)?cc @aaemnnosttv