Be able to open matomo 4.9.1 on wordpress
Only a part of the interface is displayed. there is a js error
removing the method getJsInclusionDirective in the plugins/WordPress/WpAssetManager.php file solves the issue.
@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
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?
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.