Error Spam?! Unknown#0

Hello,

my logfile gets spammed with Errors but i dont know how to handle them?!

{"reqId":"R5e4ry4AlZvG3UZxfMNv","level":3,"time":"2018-01-04T11:37:36+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/settings\/ajax\/checksetup","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"iSvMvThZcYS3JO7lKipl","level":3,"time":"2018-01-04T11:37:37+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/apporder\/getOrder","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"tlb4zLNAThCbwjSobFT1","level":3,"time":"2018-01-04T11:37:38+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/logreader\/get?offset=0&count=50","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"OBpeeRDivXySpTIOk2EY","level":3,"time":"2018-01-04T11:37:44+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/apporder\/getOrder","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"a8ojzdlGgsW38AC4FB7p","level":3,"time":"2018-01-04T11:37:45+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/logreader\/settings","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"TZkfTKBesDbz9xg6uxXh","level":3,"time":"2018-01-04T11:37:46+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/heartbeat","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"Xvb1fwgTyfRVAAe4VC1S","level":3,"time":"2018-01-04T11:37:50+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/heartbeat","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}
{"reqId":"QU6VNGqYa65duguIBwQI","level":3,"time":"2018-01-04T11:37:51+00:00","remoteAddr":"123.123.123.123","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/heartbeat","message":"Comments starting with '#' are deprecated in Unknown on line 1 at Unknown#0","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}

Anyone know how to handle thos?

regards.

I googled this error message real quick and found:

So obviously this error message means that somewhere in files read by PHP there are comments written starting the comment with #.
However comments have to start with ; instead.
The solution provided in that link should help to find the comments with # and replace them with ;

Maybe you rather start with the find command first and maybe save some backups of found files.
find /etc/php5/cli/conf.d/ -name "*.ini"

Afterwards replace the #s with sed:
find /etc/php5/cli/conf.d/ -name "*.ini" -exec sed -i -re 's/^(\s*)#(.*)/\1;\2/g' {} \;

Hello,

this i found too, but i don’t got this folder ‘/etc/php5/’ on my QNAP …

regards

Hi,

Sorry, I should have mentioned, that you have to adapt the path to your environment. Especially because in this example it’s only for cli and you are probably rather looking for
/etc/php*/apache or /etc/php*/php-fpm

Try this command first:
find /etc/php* -name "*.ini" | xargs grep -E "^#"

Hello,

it replies nothing. Sorry …:persevere:
i found ‘/etc/php-fpm-sys-proxy.conf’ but it not got a ‘#’ in there.

regards.

Could you please provide some more information about your server then? Please use the app “Issue Template”, that delivers the most useful information about your server. Just copy all the details and paste them here.
Thanks.

Server configuration detail

Operating system: Linux 4.2.8 #1 SMP Fri Dec 8 02:17:06 CST 2017 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 5.5.57

PHP version: 5.6.31
Modules loaded: Core, date, ereg, libxml, pcre, ctype, dom, fileinfo, filter, hash, json, SPL, openssl, posix, Reflection, SimpleXML, session, tokenizer, xml, xmlreader, xmlwriter, cgi-fcgi, imagick, zlib, curl, calendar, iconv, gd, standard, PDO, sqlite3, mysqlnd, pdo_mysql, pdo_sqlite, mysql, mysqli, Phar, zip, bcmath, dba, mbstring, ftp, gettext, imap, ldap, exif, mcrypt, pcntl, shmop, soap, sockets, wddx, xmlrpc, xsl, Zend OPcache

Nextcloud version: 12.0.4 - 12.0.4.3

Updated from an older Nextcloud/ownCloud or fresh install: New

Where did you install Nextcloud from: unknown

Signing status

Array

List of activated apps
Enabled:
 - activity: 2.5.2
 - apporder: 0.4.1
 - audioplayer: 2.2.2
 - bookmarks: 0.10.1
 - bruteforcesettings: 1.0.3
 - calendar: 1.5.7
 - comments: 1.2.0
 - contacts: 2.0.1
 - dav: 1.3.0
 - federatedfilesharing: 1.2.0
 - federation: 1.2.0
 - files: 1.7.2
 - files_clipboard: 0.6.4
 - files_downloadactivity: 1.1.1
 - files_pdfviewer: 1.1.1
 - files_reader: 1.0.4
 - files_sharing: 1.4.0
 - files_texteditor: 2.4.1
 - files_trashbin: 1.2.0
 - files_versions: 1.5.0
 - files_videoplayer: 1.1.0
 - firstrunwizard: 2.1
 - gallery: 17.0.0
 - groupfolders: 1.1.0
 - issuetemplate: 0.3.0
 - logreader: 2.0.0
 - lookup_server_connector: 1.0.0
 - mail: 0.7.6
 - metadata: 0.6.0
 - nextcloud_announcements: 1.1
 - notes: 2.3.2
 - notifications: 2.0.0
 - oauth2: 1.0.5
 - password_policy: 1.2.2
 - provisioning_api: 1.2.0
 - radio: 0.6.0
 - richdocuments: 1.12.39
 - serverinfo: 1.2.0
 - sharebymail: 1.2.0
 - survey_client: 1.0.0
 - systemtags: 1.2.0
 - tasks: 0.9.5
 - theming: 1.3.0
 - theming_customcss: 1.0.0
 - twofactor_backupcodes: 1.1.1
 - updatenotification: 1.2.0
 - user_usage_report: 1.0.1
 - workflowengine: 1.2.0
Disabled:
 - admin_audit
 - encryption
 - files_external
 - user_external
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "oc4baox28ek7",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "192.168.178.20",
        "192.168.178.21",
        "***REMOVED SENSITIVE VALUE***",
        "***REMOVED SENSITIVE VALUE***",
        "***REMOVED SENSITIVE VALUE***"
    ],
    "datadirectory": "\/share\/CE_CACHEDEV1_DATA\/.qpkg\/NextCloud\/nextcloud\/data",
    "overwrite.cli.url": "https:\/\/192.168.178.20:8081\/nextcloud",
    "dbtype": "mysql",
    "version": "12.0.4.3",
    "dbname": "nextcloud",
    "dbhost": "127.0.0.1",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpsecure": "ssl",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false
}

Bump that up