Unwanted output after update
-
Hi,
I have a lot of problems with unwanted output after the update. Sometimes I use my own PHP scripts to extend or to add new functionality to my websites and for that I include wp-load.php to be able to use some wordpress functions etc. Until the 4.9 update everything worked fine. Since than, the inclusion of wp-load.php outputs 2 new line characters (line feed – 0A). I found that out after my cronjobs started to have output, (I get an email if a cronjob outputs anything like an error or something). Now I get, apparently empty emails, every time the cronjob runs.
For example in a new file:
echo 'output_start'; $parse_uri = explode('wp-content', $_SERVER['SCRIPT_FILENAME']); require_once( $parse_uri[0] . 'wp-load.php' ); echo 'output_end';
echoes as output_start output_end
If I comment out the require_once method I get output_startoutput_end as expected.This new behavior brakes the functionality if you use something like ZipArchive because by the output to the browser it pushes this two characters in front of the zip file and makes the archive unreadable.
Is there something I could do? Because until the output is repaired part of the functionality of my site is gone. Thanks for your help.
Greetings,
Manuel
- The topic ‘Unwanted output after update’ is closed to new replies.