passman icon indicating copy to clipboard operation
passman copied to clipboard

header information error

Open mind22 opened this issue 8 years ago • 8 comments

Bug report

Passman app continuously generates error in log file.

Steps to reproduce

  1. 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.

mind22 avatar Jan 27 '18 07:01 mind22

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.

mind22 avatar Jan 27 '18 08:01 mind22

Sorry. Was too quick with response :)

OS3DrNick avatar Jan 27 '18 08:01 OS3DrNick

Same error on nextcloud 13.0.0 Apache 2.4.29 php 7.2.1

mesamoo avatar Feb 13 '18 19:02 mesamoo

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 -->

personal php_before

After

<?php
?>

personal php_after

nickth76 avatar Feb 21 '18 01:02 nickth76

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 avatar Feb 21 '18 11:02 madmath03

@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.

nickth76 avatar Feb 21 '18 13:02 nickth76

Better is without closing the tags, as @animalillo pointed out. Just <?php is enough.

PR updated.

nickth76 avatar Feb 21 '18 14:02 nickth76

E.g. comparing with nextcloud/apps/pushnotifications personal.php. It has just the opening <?php like NikTh says.

mind22 avatar Feb 21 '18 15:02 mind22