Skip to content

Add OJS/OMP/OPS 3.5 compatibility#1

Open
edersotto wants to merge 1 commit into
lepidus:mainfrom
edersotto:feature/ojs35-compat
Open

Add OJS/OMP/OPS 3.5 compatibility#1
edersotto wants to merge 1 commit into
lepidus:mainfrom
edersotto:feature/ojs35-compat

Conversation

@edersotto

Copy link
Copy Markdown

Hi Lepidus team — thanks for this handy plugin! 🙌

While installing it on an OJS 3.5.0.5 journal we hit a fatal error, because the plugin relies on PKP\session\SessionManager, which was removed in 3.5 when session handling moved to a Laravel-based guard.

This is the smallest possible change to make the plugin run on 3.5:

  • use PKP\session\SessionManager;use PKP\core\PKPSessionGuard;
  • SessionManager::isDisabled()PKPSessionGuard::isSessionDisable()
  • bump version.xml release to 3.5.0.0

Everything else the plugin uses is unchanged in 3.5 — I checked each dependency against pkp/pkp-lib@stable-3_5_0:

API 3.5 status
Locale::getFormattedDisplayNames() same signature
LocaleMetadata::LANGUAGE_LOCALE_ONLY present (value 3)
PKPRequest::isPost() present
BlockPlugin::getContents() unchanged
templates/block.tpl ({translate}, {url}, {foreach}) unchanged

Testing: deployed on a live OJS 3.5.0.5 journal — the plugin installs, enables and renders the language block correctly; php -l passes.

A small note on your branch/versioning convention: since main currently targets 3.4, you may prefer to snapshot the current state into a stable-3_4 branch before advancing main to 3.5 — happy to adjust the PR (or drop the version.xml bump) to fit whatever workflow you'd like. 🙂

Thanks again!

The `PKP\session\SessionManager` class was removed in 3.5, where session
handling moved to a Laravel-based guard. Replace the removed
`SessionManager::isDisabled()` call with `PKP\core\PKPSessionGuard::isSessionDisable()`.

Everything else the plugin relies on (Locale::getFormattedDisplayNames,
LocaleMetadata::LANGUAGE_LOCALE_ONLY, PKPRequest::isPost, BlockPlugin,
templates/block.tpl) is unchanged in 3.5.

Bump release to 3.5.0.0.
@iudizm iudizm self-assigned this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants