Upgrading to 3.4.0-3 - php error when running upgrade.php upgrade

Hi!

I’m currently upgrading to 3.4.0 on our system (from 3.3.0.14
).I’m done with all configuration and when I run the upgrade script (sudo php upgrade.php upgrade).

I get the following error message at the terminal:

PHP Fatal error: Uncaught Error: Class “PKPUserImportExportPlugin” not found in /var/www/informationr_ojs/htdocs/plugins/importexport/users/UserImportExportPlugin.inc.php:18
Stack trace:
#0 /var/www/informationr_ojs/htdocs/plugins/importexport/users/index.php(20): require_once()
#1 /var/www/informationr_ojs/htdocs/lib/pkp/classes/plugins/PluginRegistry.php(259): include(‘…’)
#2 /var/www/informationr_ojs/htdocs/lib/pkp/classes/plugins/PluginRegistry.php(193): PKP\plugins\PluginRegistry::_deprecatedInstantiatePlugin()
#3 /var/www/informationr_ojs/htdocs/lib/pkp/classes/plugins/PluginRegistry.php(241): PKP\plugins\PluginRegistry::_instantiatePlugin()
#4 /var/www/informationr_ojs/htdocs/lib/pkp/classes/plugins/PluginRegistry.php(113): PKP\plugins\PluginRegistry::_loadFromDisk()
#5 /var/www/informationr_ojs/htdocs/lib/pkp/classes/plugins/PluginRegistry.php(177): PKP\plugins\PluginRegistry::loadCategory()
#6 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}()
#7 /var/www/informationr_ojs/htdocs/lib/pkp/classes/plugins/PluginRegistry.php(177): array_reduce()
#8 /var/www/informationr_ojs/htdocs/lib/pkp/classes/install/Installer.php(126): PKP\plugins\PluginRegistry::loadAllPlugins()
#9 /var/www/informationr_ojs/htdocs/classes/install/Upgrade.php(56): PKP\install\Installer->__construct()
#10 /var/www/informationr_ojs/htdocs/lib/pkp/classes/cliTool/UpgradeTool.php(93): APP\install\Upgrade->__construct()
#11 /var/www/informationr_ojs/htdocs/lib/pkp/classes/cliTool/UpgradeTool.php(69): PKP\cliTool\UpgradeTool->upgrade()
#12 /var/www/informationr_ojs/htdocs/tools/upgrade.php(22): PKP\cliTool\UpgradeTool->execute()
#13 {main}
thrown in /var/www/informationr_ojs/htdocs/plugins/importexport/users/UserImportExportPlugin.inc.php on line 18

The server is running PHP 8.1.2-1ubuntu2.14 on Ubuntu 22.04.3 LTS.

Do I miss any PHP extension or anything?

Best regards, Tobias
University of Borås

Hi @tbca,

Did you accidentally mix your 3.3.0-x and 3.4.0-x codebases together? I see some .inc.php suffixes in the stack trace, but they should be .php in 3.4.0-x.

Regards,
Alec Smecher
Public Knowledge Project Team

Yes maybe I did. We use to copy the plugins directory when we update. I was actually thinking this might be the problem, since it’s a file in the plugins folder.

Do we actually need to copy the plugins directory when upgrading?

Hi @tbca,

No, you shouldn’t copy the plugins directory; many plugins are included in OJS, and copying the old directory will result in out of date files being mixed in with the new version.

Regards,
Alec Smecher
Public Knowledge Project Team

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