Validate.php and daily.sh failure

Output of validate.php

-bash-4.2$ ./validate.php
PHP Parse error: syntax error, unexpected ‘<<’ (T_SL), expecting case (T_CASE) or default (T_DEFAULT) or ‘}’ in /opt/librenms/includes/functions.php on line 868

Parse error: syntax error, unexpected ‘<<’ (T_SL), expecting case (T_CASE) or default (T_DEFAULT) or ‘}’ in /opt/librenms/includes/functions.php on line 868

-bash-4.2$ php -version
PHP 7.3.24 (cli) (built: Oct 27 2020 11:01:59) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright © 1998-2018 Zend Technologies
-bash-4.2$

You have modified your install files?

git status should show something interesting.

git reset --hard will remove your local changes, take caution, but should fix your issue.

No modifications were done. No joy with the git commands.

-bash-4.2$ git status
On branch master
Your branch is ahead of ‘origin/master’ by 50 commits.
(use “git push” to publish your local commits)

Untracked files:
(use “git add …” to include in what will be committed)

deletion_list
nothing added to commit but untracked files present (use “git add” to track)
-bash-4.2$ git reset --hard
HEAD is now at 4e38f71 Merge branch ‘master’ of GitHub - librenms/librenms: Community-based GPL-licensed network monitoring system
-bash-4.2$

I was able to resolve this using the command below:

git reset --hard origin/master

Credit: https://stackoverflow.com/questions/16288176/your-branch-is-ahead-of-origin-master-by-3-commits

1 Like