Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: PKP\submissionFile\Repository::get() #52

Closed
lordzik2012 opened this issue Oct 9, 2024 · 1 comment
Closed

Uncaught TypeError: PKP\submissionFile\Repository::get() #52

lordzik2012 opened this issue Oct 9, 2024 · 1 comment

Comments

@lordzik2012
Copy link

lordzik2012 commented Oct 9, 2024

Hello,
we're getting this error on oaiJats v. 1.0.5.1, OJS 3.4.0.6:

PHP Fatal error: Uncaught TypeError: PKP\submissionFile\Repository::get(): Argument #1 ($id) must be of type int, null given, called in /home/xxx/public_html/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.php on line 47 and defined in /home/xxx/public_html/lib/pkp/classes/submissionFile/Repository.php:76
Stack trace:
#0 /home/xxx/public_html/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.php(47): PKP\submissionFile\Repository->get()
#1 /home/xxx/public_html/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.php(107): APP\plugins\oaiMetadataFormats\oaiJats\OAIMetadataFormat_JATS->_findJats()
#2 /home/xxx/public_html/lib/pkp/classes/oai/OAI.php(825): APP\plugins\oaiMetadataFormats\oaiJats\OAIMetadataFormat_JATS->toXml()
#3 /home/xxx/public_html/lib/pkp/classes/oai/OAI.php(566): PKP\oai\OAI->formatMetadata()
#4 /home/xxx/public_html/lib/pkp/classes/oai/OAI.php(95): PKP\oai\OAI->ListRecords()
#5 /home/xxx/public_html/pages/oai/OAIHandler.php(47): PKP\oai\OAI->execute()
#6 [internal function]: APP\pages\oai\OAIHandler->index()
#7 /home/xxx/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#8 /home/xxx/public_html/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#9 /home/xxx/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route()
#10 /home/xx/public_html/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()
#11 /home/xx/public_html/index.php(21): PKP\core\PKPApplication->execute()
#12 {main}
thrown in /home/xxx/public_html/lib/pkp/classes/submissionFile/Repository.php on line 76

Can you fix it?

@asmecher
Copy link
Member

@lordzik2012, you should be able to resolve this by applying 7df59ee.

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

No branches or pull requests

2 participants