• Resolved Ingram Braun

    (@archaeopath)


    It appears that WP-Piwik ist not going to work with Matomo 3.10. On a test system I get in the browser (even if not logged in, so the whole WP environment is crashed!)

    TypeError thrown
    Argument 1 passed to Twig\Loader\ChainLoader::addLoader() must implement interface Twig\Loader\LoaderInterface, instance of Twig_Loader_Filesystem given, called in C:\xampp\htdocs\vhosts\piwik.ib\vendor\twig\twig\src\Loader\ChainLoader.php on line 35

    and in the log
    [Wed Jun 12 14:46:17.389164 2019] [php7:warn] [pid 11224:tid 1912] [client 127.0.0.1:53817] PHP Warning: Cannot declare interface Twig_ExistsLoaderInterface, because the name is already in use in C:\\xampp\\htdocs\\vhosts\\piwik.ib\\vendor\\twig\\twig\\src\\Loader\\ExistsLoaderInterface.php on line 33
    The same happens on a CentOS 7 server (both PHP 7.3). Judged from the file sizes the files in the Loader folder have been changed massively since the current stable release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author braekling

    (@braekling)

    Hi @archaeopath, @css31,

    looks like a conflict between a WordPress plugin and Matomo itself. WP-Matomo does not use Twig.

    So, how to solve this? Regarding WP-Matomo, I have no chance to handle this, because the conflicting component is not part of the plugin.

    – First, you can switch to WP-Matomos HTTP-Mode. This is at least a short term solution to get it working again, because by using Matomos REST interface, WP-Matomo does not have to include Matomos libraries.
    – Second, try to identify the plugin which is also using Twig. You can contact the plugin’s developer and the Matomo team, maybe both will implement a check if the component is already available, so that it is not loaded twice and the issue is also solved for future conflicts (e.g., if other WordPress plugins use Twig as well, they may also cause conflicts with each other).

    Hope this helps.

    Hi @braekling,

    Thanks a lot, that’s OK with API HTTP.

    Best,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Piwik does’n’t work with Matomo 3.10 beta’ is closed to new replies.