nextcloud / notify_push

Update notifications for nextcloud clients
GNU Affero General Public License v3.0
224 stars 40 forks source link

Error: php_literal_parser::unexpected_token #430

Closed wonderfulShrineMaidenOfParadise closed 5 months ago

wonderfulShrineMaidenOfParadise commented 5 months ago
$ sudo -u nextcloud /var/lib/nextcloud/apps/notify_push/bin/armv7/notify_push --port 7867 /etc/nextcloud/config.php
Error: php_literal_parser::unexpected_token

  × Error while parsing nextcloud config.php
  ╰─▶ Error while parsing '/etc/nextcloud/config.php':
      No valid token found, expected one of ',' or ')'
    ╭─[58:1]
 58 │   'loglevel' => 0,
 59 │   'remember_login_cookie_lifetime' => 60 * 5,
    ·                                          ┬
    ·                                          ╰── Expected ',' or ')'
 60 │   'session_lifetime' => 60 * 5,
    ╰────

Workaround: use 300 instead of 60 * 5

joshtrichards commented 5 months ago

Same underlying cause as #323. Please upvote that matter for prioritization and subscribe to it if you wish to monitor it. Thanks for the report/ reminder! :)