seintitus Posted October 2, 2020 Posted October 2, 2020 Below I am including the code where it throws the error message: ** * Cleans or flushes output buffers up to target level. * * Resulting level can be greater than target level if a non-removable buffer has been encountered. * * @final */public static function closeOutputBuffers(int $targetLevel, bool $flush): void{ $status = ob_get_status(true); $level = \count($status); $flags = PHP_OUTPUT_HANDLER_REMOVABLE | ($flush ? PHP_OUTPUT_HANDLER_FLUSHABLE : PHP_OUTPUT_HANDLER_CLEANABLE); while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) { if ($flush) { ob_end_flush(); } else { ob_end_clean(); } }}
Krydos Posted October 2, 2020 Posted October 2, 2020 Please post the following information:Your cPanel usernameYour main domainThe server that you are onThe version of PHP that you're using
seintitus Posted October 2, 2020 Author Posted October 2, 2020 Cpanel username: tchesoenMain domain:damicotrust.heliohost.orgServer: tommyPhp version: 7.3
Krydos Posted October 2, 2020 Posted October 2, 2020 Try putting this code in your php script: ini_set("zlib.output_compression", "Off"); Zlib.compression is on by default on Tommy's php 7.3. Ob_end_flush and zlib.compression don't play well together. You can usually only use one or the other.
seintitus Posted October 2, 2020 Author Posted October 2, 2020 On kiwhat folder should or file specifically should I add the above code?
Krydos Posted October 2, 2020 Posted October 2, 2020 I'm not sure how Laravel works, but most php software has one index.php and then includes all the rest of the code that it needs. It might be enough to put it just in the main index.php file.
seintitus Posted October 2, 2020 Author Posted October 2, 2020 I find it strange thou because yesterday I installed the same script here and it was working fine but I decided to delete it since I was having slight error with sending email. But now that am trying to reinstall. It has completely refused to work.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now