Title: PHP Warning: Cannot declare interface Twig_LoaderInterface
Last modified: July 3, 2019

---

# PHP Warning: Cannot declare interface Twig_LoaderInterface

 *  Resolved [Cyrille Sanson](https://wordpress.org/support/users/css31/)
 * (@css31)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-cannot-declare-interface-twig_loaderinterface/)
 * Hi,
 * After updating Matomo to 3.10 there is a conflict that disturb homepage display.
 * Here is the log:
 *     ```
       [03-Jul-2019 13:50:18 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/username/www/wp-content/plugins/addon-so-widgets-bundle/cmb/init.php on line 746
       [03-Jul-2019 13:50:19 UTC] PHP Warning: Cannot declare interface Twig_LoaderInterface, because the name is already in use in /home/username/piwik/vendor/twig/twig/src/Loader/LoaderInterface.php on line 61
       [03-Jul-2019 13:50:19 UTC] PHP Warning: Cannot declare interface Twig_ExistsLoaderInterface, because the name is already in use in /home/username/piwik/vendor/twig/twig/src/Loader/ExistsLoaderInterface.php on line 33
       ```
   
 * By disabling WP-matomo the display will return to normal.
 * How can it be solved?
 * Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Ingram Braun](https://wordpress.org/support/users/archaeopath/)
 * (@archaeopath)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-cannot-declare-interface-twig_loaderinterface/#post-11697541)
 * This was already reported, but no reply yet: [https://wordpress.org/support/topic/wp-piwik-doesnt-work-with-matomo-3-10-beta/](https://wordpress.org/support/topic/wp-piwik-doesnt-work-with-matomo-3-10-beta/)
 *  Thread Starter [Cyrille Sanson](https://wordpress.org/support/users/css31/)
 * (@css31)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-cannot-declare-interface-twig_loaderinterface/#post-11699056)
 * Hi,
 * Sorry for the duplication.
 * I Will wait an answer to the previous question.
 * Also posted on Matomo Forum
    [https://forum.matomo.org/t/wordpress-php-warning-cannot-declare-interface-twig-loaderinterface/33425](https://forum.matomo.org/t/wordpress-php-warning-cannot-declare-interface-twig-loaderinterface/33425)
 * Thanks,
    -  This reply was modified 6 years, 11 months ago by [Cyrille Sanson](https://wordpress.org/support/users/css31/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warning: Cannot declare interface Twig_LoaderInterface’ is closed
to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Cyrille Sanson](https://wordpress.org/support/users/css31/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-cannot-declare-interface-twig_loaderinterface/#post-11699056)
 * Status: resolved