PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/clockcl1/projects.crep-psych.org/OJS/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
After searching the forums, I made sure I have PHP 7.2, which I do:
Current PHP version: 7.2
I’ve checked out the server/database as well:
Database server
Server: Localhost via UNIX socket
Server type: MariaDB
Server connection: SSL is not being used
Server version: 10.3.22-MariaDB-cll-lve - MariaDB Server
I will suggest you double check the version PHP you are using. just of recent I also have similar problem am using PHP 7.4 but when I change it to 7.3 the problem was solve. Therefore, you can try it out. Alternatively, if is a new project, i will suggest that you download new xampp and install your OJS locally first before, moving it to live server.
I am hosting this on directnic, so don’t have offline option. I was going to chat with support about the version of PHP. Everything I’m seeing says I have 7.2+ though.
Thanks guys - it was both a php and php-mbstring error. They have three different places you have to change the php version, and I had only found two of them. Hosting support was able to install the missing Ubuntu package, and I got the installation page successfully.