WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] BUG Can't access to tabs in setting after configuration (21 posts)

  1. thelezinouarlax
    Member
    Posted 4 months ago #

    Hello,

    I have tested 0.9.9.9 and the last snapshot

    When i want to configure the plugin no problem. The tabs show correctly. But just after enabling everything i need the (http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=tracking)
    give me a source HTML page "<!DOCTYPE html>
    <!--[if IE 8]>
    <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 wp-toolbar" lang="fr-FR">
    <![endif]-->"--------------------------

    If i copy all the text on a file, and i rename it .html i can see the configuration page.

    I'am using firefox, do you know why the page is not displaying correctly ?

    Thanks a lot

    https://wordpress.org/plugins/wp-piwik/

  2. thelezinouarlax
    Member
    Posted 4 months ago #

    Problem occured with Piwik path (PHP API, beta) option.

  3. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    Does this problem also occur using the REST API?

    Which PHP and Piwik versions are you using?

    Can you enable WP_DEBUG in your WordPress config file?
    define('WP_DEBUG', true);
    Maybe you will get some error messages.

  4. thelezinouarlax
    Member
    Posted 4 months ago #

    REST API works fine. I will try debug

  5. thelezinouarlax
    Member
    Posted 4 months ago #

    With debug in piwik settings tabs
    --------
    Notice: Constant PIWIK_INCLUDE_PATH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1432

    Notice: Constant PIWIK_USER_PATH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1433

    Notice: Constant PIWIK_ENABLE_DISPATCH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1434

    Notice: Constant PIWIK_ENABLE_ERROR_HANDLER already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1435

    Notice: Constant PIWIK_ENABLE_SESSION_START already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1436
    -----

    Tracking show a blanck page with source code.

  6. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    Can you please tell me, which version of PHP and Piwik you are using?

    Thank you!

  7. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    Did 0.9.9.10 resolve this issue?

  8. thelezinouarlax
    Member
    Posted 4 months ago #

    Sadly no...

    Same issue

    Here is what i see :
    http://files.skrik.fr/piwikbug.png

    Here is the error on apache2 :

    [Thu May 08 18:07:43.568549 2014] [:error] [pid 5904] [client 81.66.138.167:51453] PHP Notice:  Constant PIWIK_INCLUDE_PATH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1430, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=piwik
    [Thu May 08 18:07:43.568578 2014] [:error] [pid 5904] [client 81.66.138.167:51453] PHP Notice:  Constant PIWIK_USER_PATH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1431, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=piwik
    [Thu May 08 18:07:43.568585 2014] [:error] [pid 5904] [client 81.66.138.167:51453] PHP Notice:  Constant PIWIK_ENABLE_DISPATCH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1432, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=piwik
    [Thu May 08 18:07:43.568600 2014] [:error] [pid 5904] [client 81.66.138.167:51453] PHP Notice:  Constant PIWIK_ENABLE_ERROR_HANDLER already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1433, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=piwik
    [Thu May 08 18:07:43.568605 2014] [:error] [pid 5904] [client 81.66.138.167:51453] PHP Notice:  Constant PIWIK_ENABLE_SESSION_START already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1434, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=piwik
    [Thu May 08 18:09:03.356886 2014] [:error] [pid 5981] [client 81.66.138.167:51562] PHP Notice:  Constant PIWIK_INCLUDE_PATH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1430, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=views
    [Thu May 08 18:09:03.356918 2014] [:error] [pid 5981] [client 81.66.138.167:51562] PHP Notice:  Constant PIWIK_USER_PATH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1431, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=views
    [Thu May 08 18:09:03.356925 2014] [:error] [pid 5981] [client 81.66.138.167:51562] PHP Notice:  Constant PIWIK_ENABLE_DISPATCH already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1432, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=views
    [Thu May 08 18:09:03.356931 2014] [:error] [pid 5981] [client 81.66.138.167:51562] PHP Notice:  Constant PIWIK_ENABLE_ERROR_HANDLER already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1433, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=views
    [Thu May 08 18:09:03.356936 2014] [:error] [pid 5981] [client 81.66.138.167:51562] PHP Notice:  Constant PIWIK_ENABLE_SESSION_START already defined in /websites/www-nxt/wp-content/plugins/wp-piwik/wp-piwik.php on line 1434, referer: http://www.nxtnet.fr/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=views
  9. thelezinouarlax
    Member
    Posted 4 months ago #

    by the way thanks a lot for your answer

  10. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    Are you using a second plugin connecting to Piwik?

    Otherwise WP-Piwik seems to call the Piwik constant definition twice... I'll check this.

  11. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    Are you using the toolbar widget? Can you try to disable it?

  12. thelezinouarlax
    Member
    Posted 4 months ago #

    You are right I must test all the plugins... On my other blog it's working...

    I come back to you when i find the problematic plugin

  13. thelezinouarlax
    Member
    Posted 4 months ago #

    WP Review is the problematic plugin

  14. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    Does this plugin use Piwik or some WP-Piwik functionality? Can you give me a brief description?

    Maybe there is a way to avoid the potential conflict.

  15. thelezinouarlax
    Member
    Posted 4 months ago #

    No it does'nt, it's a plugin build by MyThemeShop for a theme.
    Here is the description :

    "WP Review plugin is an easy yet powerful way to review content easily, without affecting the speed of your site. If you're a blogger, you probably occasionally review or rank products, services, tools, recipes, or other content on your site. WP Review plugin is a customizable and lightweight way to create reviews, using stars, percentage or point rating, and it includes support for translation, WPMU, Google rich snippets and unlimited colors. Just install it and follow the simple configuration instructions to place it in your desired location."

  16. te-deum
    Member
    Posted 4 months ago #

    Hello,

    I have the same issue with my own WordPress Network when I use WP-Piwik in PHP mode. I try per website config and network wide configuration. Both mode give the same result text/plain content-type instead of text/html.

    I try to desactivate every plugin to find wich plugin is problematic and I have the same result. I will try to find why later (it might be a network plugin).

    Regards.

  17. gingerling
    Member
    Posted 4 months ago #

    Hi, in mine the plugin causing the problem was

    Rating: A new Plugin to add and customize rating per post type with geo location tracking.

    This plugin is REALLY central to the purpose of my site.

    I have had to disable wp piwik as I need the otherone, sorry :(

  18. braekling
    Member
    Plugin Author

    Posted 4 months ago #

    It looks like an issue in using the PHP API and WordPress in multisite mode.

    If define('PIWIK_ENABLE_DISPATCH', false); is set, the WordPress admin area does not work anymore. If define('PIWIK_ENABLE_DISPATCH', true); is set, the admin area works fine, but the blog itself isn't available anymore.

    I hope to solve this very soon.

  19. te-deum
    Member
    Posted 3 months ago #

    Hello,

    After some debug/test, I find where the problem is. It is Piwik that send a header command to set response as text/plain instead of text/html.
    The function that send the header command is in /core/DataTable/Renderer.php :

    /**
         * Output HTTP Content-Type header
         */
        protected function renderHeader()
        {
            @header('Content-Type: text/plain; charset=utf-8');
        }

    If I comment the line, I retrieve my WordPress panel...
    I hope that this will help :)

    Regards.

  20. braekling
    Member
    Plugin Author

    Posted 3 months ago #

    Ok, this looks like a good hint. I hope to finish the patch in the next days.

  21. braekling
    Member
    Plugin Author

    Posted 3 months ago #

    Fixed in 0.9.9.11.

Reply

You must log in to post.

About this Plugin

About this Topic