WordPress.org

Ready to get started?Download WordPress

Forums

Googlyzer
[resolved] Multi site Error? (3 posts)

  1. marcdubeau
    Member
    Posted 2 years ago #

    I currently have a multi site install and I am wondering if this plugin works without issue normally. I am currently getting a error: unable to load settings html. My browser is chrome and any feedback to help me get this great plugin running is appreciated.

    http://wordpress.org/extend/plugins/googlyzer/

  2. wmsedgar
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for your post. Googlyzer has not been tested on WP MS, but it has been tested and runs fine on a standard WP install.

    The error you noted is a path error. Googlyzer looks for the settings html file in the base plugin path, it's standard path is:

    BASE_URL../wordpress/wp-content/plugins/googlyzer/html/settings.htm

    Googlyzer gets BASE_URL from running the get_bloginfo('url') function. However, I believe get_bloginfo may return a sub-blog address on WP MS, and not the root URL.

    Try editing the googlyzer.php file as follows:

    Add this line at the top, just after the // define constants comment on line 51:

    define( 'BASE_URL', network_site_url() );

    Then modify the line that defines GOOGLYZER_PLUGIN_DIR (was line 54) as follows:

    define( 'GOOGLYZER_PLUGIN_DIR', BASE_URL .
    	'/' . PLUGINDIR . '/' . dirname( plugin_basename( __FILE__ ) ) . '/' );

    Let me know if that resolves your error. If so, I'll incorporate the change into the next version.

  3. wmsedgar
    Member
    Plugin Author

    Posted 2 years ago #

    Marc, the above changes were included in the Googlyzer v1.1 release. We're going to mark this as resolved. Let us know if that is not the case.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags