Support » Plugin: Multisite Robots.txt Manager » Fix “Undefined variable: output”

  • If you have display errors and notices turn on in PHP you will receive the following notice which you can of course ignore but it will make the robot.txt file invalid.

    Error:
    <b>Notice</b>: Undefined variable: output in <b>……/wp-content/plugins/multisite-robotstxt-manager/inc/classes/class-robotstxt.php</b> on line <b>92</b><br />

    To fix this:
    Edit the following file:

    /wp-content/plugins/multisite-robotstxt-manager/inc/classes/class-robotstxt.php

    After Line 89: $public = get_option( ‘blog_public’ );

    Add the following code:

    $output = ”;

    Thanks for the great plugin.

  • The topic ‘Fix “Undefined variable: output”’ is closed to new replies.