Most solutions found online for this problem are identical, but I ran into it again today. After trying it out, I can confirm it works:

Locate the php.ini configuration file in the WINDOWS folder on the C drive, then find the entry: output_buffering. Change its value from off to on, restart Apache, and it’s fixed…