• Resolved swinggraphics

    (@swinggraphics)


    When saving the plugin settings, these warnings are generated:

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/post-types-order/include/class.options.php:40) in /wp-includes/functions.php on line 6221

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/post-types-order/include/class.options.php:40) in /wp-admin/includes/misc.php on line 1259

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/post-types-order/include/class.options.php:40) in /wp-admin/admin-header.php on line 9

Viewing 2 replies - 1 through 2 (of 2 total)
  • That looks like somebody tried to add an admin notice the wrong way. The quick fix for that is to comment out line 40 in /wp-content/plugins/post-types-order/include/class.options.php which should read:

    echo '<div class="updated fade"><p>' . esc_html__('Settings Saved', 'post-types-order') . '</p></div>';

    just add two slashes so that it reads:

    //echo '<div class="updated fade"><p>' . esc_html__('Settings Saved', 'post-types-order') . '</p></div>';

    • This reply was modified 4 years, 4 months ago by OldGrumpyDE. Reason: added clarification
    Plugin Author Maya

    (@tdgu)

    Thanks for your feedback, this has been fixed in the version 1.9.5.1

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Generates warnings’ is closed to new replies.