@mattmary opened this Issue on May 11th 2022 Contributor

Expected Behavior

Be able to open matomo 4.9.1 on wordpress

Current Behavior

Only a part of the interface is displayed. there is a js error
Screenshot from 2022-04-20 11-14-49

Possible Solution

removing the method getJsInclusionDirective in the plugins/WordPress/WpAssetManager.php file solves the issue.

@mattmary commented on May 11th 2022 Contributor
@peterhashair commented on May 11th 2022 Contributor

@mattmary @justinvelluppillai
I fixed it by remove /plugins/WordPress/WpAssetManager.php

replace below with

use Piwik\AssetManager; 
$assetManager = new AssetManager(); 


PR here https://github.com/matomo-org/matomo-for-wordpress/pull/607

@mattmary commented on May 11th 2022 Contributor

the wordpress asset manager does not load the new js files.
to be able to do it, I need access to the assetManager::getPluginUmdChunks from the wpAssetManager. Can you switch its visibility to protected?

@justinvelluppillai commented on May 11th 2022 Contributor

Most of the changes needed here are in the WpAssetManager, but @peterhashair can you please change AssetManager::getPluginUmdChunks from private to protected? We can merge this change to 4.10.0 before release, on next_release branch.

This Issue was closed on May 15th 2022
Powered by GitHub Issue Mirror