Error Installing OJS 3.x

i was done upgraded my php 5.6 to 7.2 but come out with this error below:-

Capture

[:error] [pid 7575] [client 103.101.244.251:63116] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /var/www/html/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 374

[root@ojs tools]# php -v
PHP 7.2.34 (cli) (built: Sep 30 2020 07:31:56) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

need help fix this error ! thx : (

Hello Ikram

You need to know that the php that running on cli and on your webserver is different. You should make sure your webserver use php 7.2.

@navotera thx for reply…

it solved now…
test on webserver it still running 5.6… instead of 7.2…
fix it by install PHP 7.2 on webserver then wont have issue anymore :grin:
thx !