Skip to content

fullJournalTransfer - Uncaught AssertionError: assert(count($journalFilters) == 1) #27

@joelfan

Description

@joelfan

Let me start by thanking you for the work.
Very useful idea.

But, at the moment, we get a PHP Fatal error when trying to use the plugin. The error is:
PHP Fatal error: Uncaught AssertionError: assert(count($journalFilters) == 1)

It seems that a library call does not return the $journalFilters array which is set in the instruction:
if ($isImport) { $journalFilters = $filterDao->getObjectsByGroup('native-xml=>journal'); } else { $journalFilters = $filterDao->getObjectsByGroup('journal=>native-xml'); }

We are trying to export from an OJS 3.3.0.21 running on Windows11 to an OJS 3.3.0.21 running on RedHat 8, but unfortunately the export process stops very soon. The command we are using is:
php -d memory_limit=-1 tools/importExport.php FullJournalImportExportPlugin export export20251217.gz dc

Is this due to the Windows platform?
Is it due to any missing library?

Thanks a lot in advance for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions