• aclion111

    (@aclion111)


    I’ve installed

    WP-PIWIK Version 1.0.19

    on WP 4.9.6

    It’s connected, using PHP API, to my Matomo instance on localhost. Dashboard & tracking are working as expected. So far anyway.

    With the Plugin enabled, I get this warning displayed in my WP Admin UI

    Warning: session_cache_limiter(): Cannot change cache limiter when session is active in /srv/www/piwik/core/bootstrap.php on line 32

    Afaict, I do *NOT* see any error like this when directly logged into my Matomo Dashboard, not through the WP UI

    Looking in

    	cat piwik/core/bootstrap.php
    
    		...
    		// NOTE: the code above must be PHP 4 compatible
    		require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
    
    32		session_cache_limiter('nocache');
    		@date_default_timezone_set('UTC');
    		...

    How do I ‘cure’ this? Something I change/set in WP-PIWIK’s config/settings/setup?

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

    (@braekling)

    If you are running WP-Matomo in PHP mode, it includes several Piwik PHP files. This may cause conflicts between Matomo and WordPress or Matomo and WordPress plugins. In your case, a session setting is changed after the session was started already…

    Of course, you don’t get the message if you log in to Matomo itself, because then WordPress is not loaded.

    There is nothing WP-Matomo can do about this. Matomo itself and WordPress or other plugins should check if the session is started already before calling session_cache_limiter.

    If the warning appears on all your WP admin sites, did you try to disable the top bar widget? It should appear on sites showing Matomo stats only.

    Anyway, on live systems “notices” and “warnings” should always be disabled, also for security reasons.

    Thread Starter aclion111

    (@aclion111)

    Hi @braekling

    I asked over on Matomo issues,

    https://github.com/matomo-org/matomo/issues/12963#issuecomment-391442991

    and, as advised, added

    session.auto-start = 0;

    to my “php.ini”

    That *does* appears to remove the warning above^

    BUT, not, _in_ WP, the WP-Matomo top-bar item *always* says “Loading …”,

    When I visit the respective link

    https://example.com/wp-admin/?page=wp-piwik_stats

    I get all my numerical/table data, but no graphics/charts.

    If I remove

    session.auto-start = 0;

    from php.ini, I’m back to normal with the Plugin — BUT, again, have that warning^

    Plugin Author braekling

    (@braekling)

    Did you check for JavaScript errors on your pages? The graphics are generated by JavaScript, maybe this will give a hint.

    https://codex.ww.wp.xz.cn/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Seeing same php error regarding session_cache_limiter() within the mentioned Matomo file.
    It must be called after session_start.
    Not sure how to solve this from within WordPress, but it seems an issue in php 7.2
    I didnt see this issue in php 7.0

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

The topic ‘” session_cache_limiter” warnings when WP-PIWIK is enabled’ is closed to new replies.