[Bug] PHP Parse error: syntax error, unexpected '|', expecting '{' in .../lib/lib_rss.php on line 166 #7539
-
Describe the bugI have this issue To Reproduceexecute or visit the webpage Expected behaviorNo response FreshRSS version1.26.1 System information
Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
|
Let me check when I am in front of my computer |
Beta Was this translation helpful? Give feedback.
-
|
The error message you have is a sign of a PHP version older than PHP 8.1. |
Beta Was this translation helpful? Give feedback.
-
|
I have seen a lot of issue reported here been replied wrong PHP version called. |
Beta Was this translation helpful? Give feedback.
-
|
nah your right. i decided to throw on my server and check on browser. it called php 7 i have fixed this. Now ok. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Please try: php -v
php -l lib/lib_rss.phpand make a new file <?php
echo PHP_VERSION, "\n";and call it: php version.php |
Beta Was this translation helpful? Give feedback.
-
|
There is now a better version test and error message in the |
Beta Was this translation helpful? Give feedback.
The error message you have is a sign of a PHP version older than PHP 8.1.
So you probably have several versions of PHP on your machine, and somehow the wrong version is called.