WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Causes issues with MU & Domain Mapping (7 posts)

  1. kwisatz
    Member
    Posted 1 year ago #

    Using WP-Piwik on a single site of a Network (formerly known as MU) install gives me the following fatal error message when trying to save the configuration:

    [Thu Feb 07 09:20:17 2013] [error] [client 192.168.97.1] PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/wp.host.tld/wp-content/mu-plugins/domain_mapping.php on line 173, referer: http://subdomain.host.tld/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php

    (I edited the host names of course)

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    domain_mapping.php, line 173 contains

    $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->dmtable} WHERE domain = %s", $domain ) );

    A lot of questions to get behind this:

    I'm not sure if this message is caused by WP-Piwik? Maybe a recursion is used there by the domain_mapping plugin?

    Did you have a look at this one: http://stackoverflow.com/questions/8656089/solution-for-fatal-error-maximum-function-nesting-level-of-100-reached-abor ?

    What is the domain_mapping plugin expected to do in this context?

    This evening I'll try to install the mapping plugin at my development system. Maybe I can reconstruct your issue.

  3. kwisatz
    Member
    Posted 1 year ago #

    I do not have xdebug configured on that system, nor do we use Zend.
    Turns out the domain mapping module wasn't even needed for this site, but disabled the mapping didn't change a thing.

    I presume that the 100 nested functions stems from the fact that we have over 45 sites in our piwik installation, making the plugin do 45 times

    [...]
    [Thu Feb 07 17:51:48 2013] [error] [client 192.168.97.1] PHP  34. wp_piwik->callPiwikAPI() /var/www/wp.domain.tld/wp-content/plugins/wp-piwik/wp-piwik.php:867, referer: http://subdomain.domain.tld/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
    [Thu Feb 07 17:51:48 2013] [error] [client 192.168.97.1] PHP  35. wp_piwik->addPiwikSite() /var/www/wp.domain.tld/wp-content/plugins/wp-piwik/wp-piwik.php:968, referer: http://subdomain.domain.tld/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
    [...]

    ..but that's just a wild guess.
    And before that we have:

    [Thu Feb 07 17:51:48 2013] [error] [client 192.168.97.1] PHP   7. wp_piwik->__construct() /var/www/wp.domain.tld/wp-content/plugins/wp-piwik/wp-piwik.php:1474, referer: http://subdimain.domain.tld/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
    [Thu Feb 07 17:51:48 2013] [error] [client 192.168.97.1] PHP   8. wp_piwik->applySettings() /var/www/wp.domain.tld/wp-content/plugins/wp-piwik/wp-piwik.php:162, referer: http://subdimain.domain.tld/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php

    I could probably send you the complete traceback though.

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for sending your trackback.

    I'll try to figure this out.

  5. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    I currently reduce the function calls and try to optimize the plugin's "overall behavior", too. The changes will be released in 0.9.8.1 soon.

  6. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Please try 0.9.8.1 - I hope this will solve your issue.

  7. braekling
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic