AVideo icon indicating copy to clipboard operation
AVideo copied to clipboard

after the last update with git pull

Open lpadumorvan opened this issue 1 year ago • 4 comments

Hi

I have : Parse error: syntax error, unexpected '|', expecting '{' in /var/www/AVideo/vendor/thecodingmachine/safe/lib/special_cases.php on line 434

Thanks

DV

lpadumorvan avatar Sep 02 '24 13:09 lpadumorvan

What PHP version are you using?

I guess you need to udpate it to version 8 or higher

DanielnetoDotCom avatar Sep 02 '24 13:09 DanielnetoDotCom

php 7.4.3

idem this : https://github.com/MISP/MISP/issues/9204 ? resolve idem => php 8.0 ? Thanks DV

lpadumorvan avatar Sep 02 '24 13:09 lpadumorvan

yes PHP 8+ may resolve it

DanielnetoDotCom avatar Sep 02 '24 14:09 DanielnetoDotCom

php7.4.3 update to 8.3: problem solved ! Thanks DV

lpadumorvan avatar Sep 02 '24 14:09 lpadumorvan

Hi Daniel, after upgrading to 8.3.15 im still seeing:

Parse error: syntax error, unexpected '|', expecting '{' in /var/www/html/vendor/thecodingmachine/safe/lib/special_cases.php on line 434

since latest git update

only thing logged in the videos.log is: [08-Jan-2025 11:10:01 America/Whitehorse] AVideoLog::DEBUG: is_port_open(2053, 127.0.0.1) error Connection refused SCRIPT_NAME: /var/www/html/plugin/Scheduler/run.php [08-Jan-2025 11:10:01 America/Whitehorse] AVideoLog::DEBUG: WatchDog: socket port is not opened [2053] SCRIPT_NAME: /var/www/html/plugin/Scheduler/run.php [08-Jan-2025 11:10:02 America/Whitehorse] AVideoLog::ERROR: Socket server For better performance install PDO SQLite in your PHP SCRIPT_NAME: /var/www/html/plugin/YPTSocket/server.php [08-Jan-2025 11:10:02 America/Whitehorse] AVideoLog::DEBUG: Starting Socket server at port 2053 SCRIPT_NAME: /var/www/html/plugin/YPTSocket/server.php [08-Jan-2025 11:10:02 America/Whitehorse] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Socket\Message::__construct(), 0 passed in /var/www/html/plugin/YPTSocket/server.php on line 254 and exactly 1 expected in /var/www/html/plugin/YPTSocket/Message.php:23 Stack trace: #0 /var/www/html/plugin/YPTSocket/server.php(254): Socket\Message->__construct() #1 {main} thrown in /var/www/html/plugin/YPTSocket/Message.php on line 23

whats strange is port 2053 is open both ways and was working before php and avideo update.

anything else i need to check?

millzee01 avatar Jan 08 '25 18:01 millzee01

what php version are you using?

DanielnetoDotCom avatar Jan 08 '25 18:01 DanielnetoDotCom

Sorry I just see 8.3

Make sure you run this sudo apt-get install php8.3-sqlite3

DanielnetoDotCom avatar Jan 08 '25 18:01 DanielnetoDotCom

Hi,

i'll try this today thanks!

millzee01 avatar Jan 09 '25 12:01 millzee01

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 09:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 07:07 stale[bot]