header information error
Bug report
Passman app continuously generates error in log file.
Steps to reproduce
- No steps here just installed app.
Configuration
Passman version: 2.1.4
Operating system: Ubuntu 16.04 LTS
Web server:. Nginx 1.12.2
Database: MariaDB
PHP version:. 7.1
cloud server: Nextcloud
cloud version: 13RC3
Cloud log
Cloud log
Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/apps/passman/personal.php:1) at /var/www/nextcloud/lib/private/AppFramework/Http/Output.php#69
No others errors appear in log file.
I did include the error message in section cloud log (Cloud log). The passman app is as i can say normally working. But it continuously shows this in the log file when the app is activated.
Sorry. Was too quick with response :)
Same error on nextcloud 13.0.0 Apache 2.4.29 php 7.2.1
Modifying personal.php seems fixing this error.
Passman version: 2.1.5 (git version)
Operating system: Ubuntu 16.04 LTS
Nextcloud version: 13.0.0
Before
<!-- Placeholder file -->

After
<?php
?>

I do not know for sure how the personal.php file is used, maybe to store information about the personal settings like email and notifications?
@NikTh with your fix, after removing the troublesome, did you encounter any issues using the app? If not, maybe you could send a PR?
@madmath03 I don't know if 1 day of testing is enough. I'm using Passman from yesterday, personal.php is updated, also Chrome Extension and Firefox Addon. No issues. So far so Good.
PR submitted.
Better is without closing the tags, as @animalillo pointed out.
Just
<?php
is enough.
PR updated.
E.g. comparing with nextcloud/apps/pushnotifications personal.php. It has just the opening <?php like NikTh says.