Need HELP with OCS-2.3.6 With Php 7.3

Hello
[ OCS 2.3.6, PHP 7.3, Apache 2.4.10, Debian 8, Mysql 5.5.62]
I’m tring to put an old conference website back online, abandoned since 2014 at the request of my director, I tried to fix some errors and found @asmecher updated version on GIT ocs-ocs-stable-2_3_6 where the “String” class name problem is solved.
but now I have a blanc home page and here is my apache2 error log :slight_smile:

[Tue May 23 11:36:40.482553 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of Plugin::getSetting($conferenceId, $schedConfId, $name) should be compatible with PKPPlugin::getSetting($context, $name)\n In file: /var/www/html/jipc2/classes/plugins/Plugin.inc.php\n At line: 20\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.482703 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of Plugin::updateSetting($conferenceId, $schedConfId, $name, $value, $type = NULL) should be compatible with PKPPlugin::updateSetting($context, $name, $value, $type = NULL)\n In file: /var/www/html/jipc2/classes/plugins/Plugin.inc.php\n At line: 20\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.482948 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of CustomLocalePlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/customLocale/CustomLocalePlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.483225 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of PhpMyVisitesPlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/phpMyVisites/PhpMyVisitesPlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.483367 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of AnnouncementFeedPlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/announcementFeed/AnnouncementFeedPlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.483504 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of AcronPlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/acron/AcronPlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.483726 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of GoogleAnalyticsPlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.483886 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of TinyMCEPlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/tinymce/TinyMCEPlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1,
[Tue May 23 11:36:40.484037 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of TranslatorPlugin::manage($verb, $args, &$message) should be compatible with PKPPlugin::manage($verb, $args)\n In file: /var/www/html/jipc2/plugins/generic/translator/TranslatorPlugin.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1,
[Tue May 23 11:36:40.513346 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of IndexHandler::index($args, $request) should be compatible with PKPHandler::index()\n In file: /var/www/html/jipc2/pages/index/IndexHandler.inc.php\n At line: 20\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:
[Tue May 23 11:36:40.513765 2023] [php7:notice] [pid 14400] [client 41.111.178.116:16550] ocs2 has produced an error\n Message: WARNING: Declaration of ConferenceHandler::index($args) should be compatible with PKPHandler::index()\n In file: /var/www/html/jipc2/pages/conference/ConferenceHandler.inc.php\n At line: 0\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 7.3.14-5+0~20200202.52+debian8~1.gbpa71879\n Apache Version: Apache/2.4.10 (Debian)\n DB Driver: mysqli\n DB server version: 5.5.62-0+deb8u1, referer:

If Anyone Can help with that, I appreciate …

Hi @azzedine,

I would strongly recommend using an older version of PHP that was contemporary with the latest release of OCS, before you get too involved in making comprehensive changes throughout the system. This might require a containerized approach, if that’s possible in your environment. You’ll find that PHP has changed quite a bit over the years since we last maintained OCS; the work required to modernize it, especially as the gap between OCS’s last maintenance and the oldest maintained version of PHP grows, will become quite a challenge. This applies not just to the OCS codebase, but all the third-party dependencies on which it relies.

If you’re just looking to revive the installation for the purposes of data extraction, you might try going directly to the database backup and extracting the data from there.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks a lot for the quick reaction
I think the solution is a virtual machine with Php 5.6.40 to make the site available again because we are running sites with Php 7.3 on the server, we can’t go back to php 5.
I wonder if there is a good open-source alternative to OCS ?

Regards