Plugin Registry on Line 186 (OJS 3.4.0.5)

Hello Everyone;

After successfully upgrading and testing the new version (OJS 3.4.0.5) on a subdomain, I attempted to migrate the upgraded version to my main domain. However, I encountered an issue with the plugins.

Error log is this:

[08-Mar-2024 05:45:36 UTC] PHP Fatal error:  Uncaught Exception: Invalid product name "public_html" in /home/Webroot/public_html/lib/pkp/classes/plugins/PluginRegistry.php:186
Stack trace:
#0 /home/Webroot/public_html/lib/pkp/classes/plugins/PluginRegistry.php(242): PKP\plugins\PluginRegistry::_instantiatePlugin('generic', 'public_html')
#1 /home/Webroot/public_html/lib/pkp/classes/plugins/PluginRegistry.php(113): PKP\plugins\PluginRegistry::_loadFromDisk('generic')
#2 /home/Webroot/public_html/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.php(194): PKP\plugins\PluginRegistry::loadCategory('generic')
#3 /home/Webroot/public_html/controllers/grid/settings/plugins/SettingsPluginGridHandler.php(49): PKP\controllers\grid\plugins\PluginGridHandler->loadCategoryData(Object(APP\core\Request), 'generic', Array)
#4 /home/Webroot/public_html/lib/pkp/classes/controllers/grid/CategoryGridHandler.php(148): APP\controllers\grid\settings\plugins\SettingsPluginGridHandler->loadCategoryData(Object(APP\core\Request), 'generic', Array)
#5 /home/Webroot/public_html/lib/pkp/classes/controllers/grid/CategoryGridHandler.php(540): PKP\controllers\grid\CategoryGridHandler->getGridCategoryDataElements(Object(APP\core\Request), 'generic')
#6 /home/Webroot/public_html/lib/pkp/classes/controllers/grid/CategoryGridHandler.php(517): PKP\controllers\grid\CategoryGridHandler->_renderCategoryInternally(Object(APP\core\Request), Object(PKP\controllers\grid\plugins\PluginCategoryGridRow))
#7 /home/Webroot/public_html/lib/pkp/classes/controllers/grid/CategoryGridHandler.php(322): PKP\controllers\grid\CategoryGridHandler->_renderCategoriesInternally(Object(APP\core\Request))
#8 /home/Webroot/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(735): PKP\controllers\grid\CategoryGridHandler->doSpecificFetchGridActions(Array, Object(APP\core\Request), Object(APP\template\TemplateManager))
#9 [internal function]: PKP\controllers\grid\GridHandler->fetchGrid(Array, Object(APP\core\Request))
#10 /home/Webroot/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#11 /home/Webroot/public_html/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)
#12 /home/Webroot/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))
#13 /home/Webroot/public_html/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#14 /home/Webroot/public_html/index.php(21): PKP\core\PKPApplication->execute()
#15 {main}
  thrown in /home/Webroot/public_html/lib/pkp/classes/plugins/PluginRegistry.php on line 186

What application are you using?
For example, OJS 3.4.0.5

Additional information

When I access the “Website Settings” → “Installed Plugins” section, it displays a continuous loading animation.

and I’m trying to install a plugins and I got this error:

Best regards,

Darryl

Hi @OJS_Darryl,

It looks like you may have moved your public_html directory into plugins/generic by accident.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello;

I apologize for the delay in responding. To address the upgrade issue, I performed the OJS upgrade process multiple times to achieve compatibility with the latest version (OJS 3.4.0.5) from your previous version (OJS 3.3.0.10). Here’s a breakdown of the steps I took:

Upgrade Process:

Here are the steps I took during the upgrade process:

  1. Code Updates: I manually replaced outdated code with the latest version from OJS 3.4.0.5. (Note: Avoid using “copy and paste” for large code sections - utilize a version control system for better tracking.)
  2. Plugin Management: I opted to exclude outdated plugins (ORCID Profile, Themes, etc.) as they could potentially cause upgrade conflicts. These plugins will need to be upgraded or replaced with compatible versions.
  3. Files Folder Inclusion: I included the Files folder in the upgrade process.
  4. Log File Removal: To address a specific error, I deleted the log file “example: usage_events_20240314” within the UsageStats Plugins → UsageEventsLogs directory.
  5. Database Update: (Assuming the database was previously on a different server) I updated the database configuration to point to the local server (“localhost”).
  6. Upgrade Script Execution: I ran the official OJS upgrade script to complete the upgrade process.
  7. Server Transfer: I transferred the upgraded OJS installation to the web server/cPanel and made it publicly accessible.

Additional Notes:

If you encounter an error message mentioning “php_intl_version” after the upgrade, please see this: Troubleshooting OJS Upgrade: HTTP 500 Error on Subdomain (Version OJS-3.4.0.5)

Best Regards,
Darryl

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