Title: Fix &#8220;Undefined variable: output&#8221;
Last modified: June 20, 2020

---

# Fix “Undefined variable: output”

 *  [invokers](https://wordpress.org/support/users/invokers/)
 * (@invokers)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/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.

 * ![](https://s.w.org/plugins/geopattern-icon/multisite-robotstxt-manager_191919.
   svg)
 * [Multisite Robots.txt Manager](https://wordpress.org/plugins/multisite-robotstxt-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-robotstxt-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-robotstxt-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-robotstxt-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-robotstxt-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-robotstxt-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [invokers](https://wordpress.org/support/users/invokers/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/fix-undefined-variable-output/)
 * Status: not a support question