Skip to content

Fix for OJS 3.5 #28

@Tulurdes

Description

@Tulurdes

Hello,

I was updating our OJS to 3.5 and the mostRead plugin was trowing an error

[26-Mar-2026 21:46:21 UTC] PHP Fatal error: Uncaught Error: Call to undefined function APP\plugins\blocks\mostRead\import() in /public/plugins/blocks/mostRead/MostReadBlockPlugin.php:62

But since line 62 is only the
import('lib.pkp.classes.linkAction.request.AjaxModal');

And AjaxModal is already being imported on line 27
use PKP\linkAction\request\AjaxModal;
Line 62 can be safely removed making it work fine with the new version.

Just sending this issue so it can help others with upgrade issues

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions