• Hi, I just noticed that I get an error when requesting /wp-json/wp/v2/pages for my site. Before the json output, I get a dreaded \n\n\nWarning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/osm/osm_map_v3/osm-sc-osm_map_v3_backend.php:1) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.ph
    p on line 1752\n

    This seems to be happening out of the blue. If I deactivate OSM, the error disappears. I’ve tried to remove/reinstall the plugin, same thing.

    What can I do to fix this?

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter foormea

    (@foormea)

    I tried deactivating all my other plugins, the issue persists with only the OSM plugin enabled. As soon as I disable the plugin, /wp-json/wp/v2/pages returns valid JSON data.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Cannot modify header information – headers already sent by’ is closed to new replies.