Error when upgrading from 3.3.0.13 to 3.4.0.4

We followed the steps in the “How to Upgrade” document to go upgrade from 3.3.0.13 to 3.4.0.4 and reached step 8 whereupon executing the command:

php tools/upgrade.php check

…produces the error shown in the stacktrace below. What should we do next?

Exception: Plugin material expected to inherit from MaterialThemePlugin, actual type NULL in /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/PluginRegistry.php:203
Stack trace:
#0 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin()
#1 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase()
#2 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory()
#3 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()
#4 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()
#5 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()
#6 /var/www/test-ojs-3.4.0-4/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.php(36): PKP\plugins\LazyLoadPlugin->register()
#7 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\googleAnalytics\GoogleAnalyticsPlugin->register()
#8 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()
#9 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}()
#10 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()
#11 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/cliTool/CommandLineTool.php(72): PKP\plugins\PluginRegistry::loadCategory()
#12 /var/www/test-ojs-3.4.0-4/lib/pkp/classes/cliTool/UpgradeTool.php(39): PKP\cliTool\CommandLineTool->__construct()
#13 /var/www/test-ojs-3.4.0-4/tools/upgrade.php(21): PKP\cliTool\UpgradeTool->__construct()
#14 {main}

If relevant, the PHP and OS levels are:
PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
Debian GNU/Linux 12 (bookworm)

We’ve solved this problem. The Material Theme was enabled from the admin control panel (although it wasn’t being used by the journal). It may not be compatible with 3.4. Unchecking the checkbox allowed the upgrade-check process to complete successfully.

Hi @rkemp,

That’s just a warning, and shouldn’t cause problems with OJS’s operations. However, there’s a tweak you an apply to avoid flooding your error log, and it’ll be included in the next release of OJS. See this thread for details.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 10 days. New replies are no longer allowed.