Hi everybody:
I’m using PHPMaker v2019.0.10
I’m suddenly getting the subject error, the same than these two posts:
http://www.hkvforums.com/viewtopic.php?f=4&t=43548&p=135313
http://www.hkvforums.com/viewtopic.php?f=4&t=45381&p=143581
A few days ago, I solved the issue with the last post of arbei saying:
“check FTP client and change the transfer type to “Binary””
But now I’m receiving the error again in a lookup search.
The complete error in /api/index.php is
Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /var/www/clients/client1/web1/web/vendor/slim/slim/Slim/App.php:621 Stack trace: #0 /var/www/clients/client1/web1/web/vendor/slim/slim/Slim/App.php(317): Slim\App->finalize(Object(Slim\Http\Response)) #1 /var/www/clients/client1/web1/web/classes/Api.php(323): Slim\App->run() #2 /var/www/clients/client1/web1/web/api/index.php(12): PHPMaker2019\semicom\Api->run() #3 {main} thrown in /var/www/clients/client1/web1/web/vendor/slim/slim/Slim/App.php on line 621
I’ve opened /api/index.php with Notepad++ and show all characters.
In some lines I get CRLF characters, in other ones just CR.
If I delete all the CRLF lines, then the output of api/index.php is: run();?>
If I remove the CR character between <?php and the next line (<?php namespace PHPMaker2019.… then I get not output from /api/index.php, but there’s no response in console too.
I’ve re-generated index.php (api), the class, and I’ve made an update composer and uploaded again the vendor folder, in binary mode…
Any ideas?
Thanks in advance