Attempted upgrade failure

Keith Miller Posted in Technical Support 2 years ago

I had a working version of OSSN up and running and uploaded the new version and performed the YOUR-WEBSITE-URL/upgrade/upgrade.php command and have the following error

ParseError: syntax error, unexpected '|', expecting ';' or '{' in /var/www/html/components/OssnPhotos/classes/OssnPhotos.php:236
Stack trace:

0 /var/www/html/classes/OssnComponents.php(244): include_once()

1 /var/www/html/libraries/ossn.lib.components.php(69): OssnComponents->loadComs()

2 /var/www/html/system/start.php(39): include_once('/var/www/html/l...')

3 /var/www/html/upgrade/upgrade.php(16): require_once('/var/www/html/s...')

4 {main}

any assistance would be great

Replies
German Michael Zülsdorff Replied 2 years ago

Please do as advised in https://www.opensource-socialnetwork.org/wiki/view/1101/how-to-report-a-bug-error-issue
CASE A
and provide the PHP version of your webserver

us Keith Miller Replied 2 years ago

Line 236 has
public function searchPhotoa($params): array | bool {