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

Issue with save xml #28

Open
pawan001 opened this issue Jul 28, 2020 · 10 comments
Open

Issue with save xml #28

pawan001 opened this issue Jul 28, 2020 · 10 comments

Comments

@pawan001
Copy link

pawan001 commented Jul 28, 2020

Dear sir

We have uploaded xml in production stage and now when we save we got error An unexpected error occurred. You may have been logged out.new ojs 3.2.2_1
Screenshot_2020-07-28-11-33-29-592_com android chrome

@Vitaliy-1
Copy link
Owner

Are you using 2.1.9 release or the master branch?

@pawan001
Copy link
Author

We are using master branch

@pawan001
Copy link
Author

we have also use 2.1.9 release but we got same error

@pawan001
Copy link
Author

Error log
[28-Jul-2020 12:40:08 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'APIRouter' does not have a method 'getRequestedPage' in /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 760
[28-Jul-2020 12:40:08 UTC] Slim Application Error:
Type: Error
Message: Call to undefined function JATSParser\Body\array_key_last()
File: /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php
Line: 45
Trace: #0 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php(16): JATSParser\Body\Par->findExtractRemoveBlockElements(Object(DOMElement), Object(DOMXPath))
#1 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Section.php(88): JATSParser\Body\Par->__construct(Object(DOMElement))
#2 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Section.php(34): JATSParser\Body\Section->extractContent(Object(DOMElement))
#3 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php(121): JATSParser\Body\Section->__construct(Object(DOMElement))
#4 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php(32): JATSParser\Body\Document->extractContent()
#5 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JatsParserPlugin.inc.php(623): JATSParser\Body\Document->__construct('/home/vallerqu/...')
#6 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JatsParserPlugin.inc.php(610): JatsParserPlugin->getFullTextFromJats(Object(SubmissionFile))
#7 /home/vallerqu/public_html/ojs/lib/pkp/classes/plugins/HookRegistry.inc.php(107): JatsParserPlugin->editPublication('Publication::ed...', Array)
#8 /home/vallerqu/public_html/ojs/lib/pkp/classes/services/PKPPublicationService.inc.php(524): HookRegistry::call('Publication::ed...', Array)
#9 /home/vallerqu/public_html/ojs/lib/pkp/api/v1/submissions/PKPSubmissionHandler.inc.php(685): PKP\Services\PKPPublicationService->edit(Object(Publication), Array, Object(Request))
#10 [internal function]: PKPSubmissionHandler->editPublication(Object(Slim\Http\Request), Object(APIResponse), Array)
#11 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#12 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#13 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#14 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#15 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))
#16 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#17 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#18 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)
#19 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#20 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#21 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#22 [internal function]: ApiCsrfMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#23 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiCsrfMiddleware), Array)
#24 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#25 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#26 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#27 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#28 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)
#29 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#30 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#31 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#32 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#33 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#34 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#35 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#36 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#37 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#38 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#39 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#40 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#41 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#42 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#43 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#44 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#45 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#46 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#47 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#48 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#49 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#50 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#51 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#52 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#53 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#54 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#55 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#56 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#57 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#58 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#59 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#60 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#61 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#62 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/Dispatcher.inc.php(143): APIRouter->route(Object(Request))
#63 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPApplication.inc.php(279): Dispatcher->dispatch(Object(Request))
#64 /home/vallerqu/public_html/ojs/index.php(68): PKPApplication->execute()
#65 {main}
View in rendered output by enabling the "displayErrorDetails" setting.

[28-Jul-2020 12:40:09 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'APIRouter' does not have a method 'getRequestedPage' in /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 760
[28-Jul-2020 12:40:09 UTC] Slim Application Error:
Type: Error
Message: Call to undefined function JATSParser\Body\array_key_last()
File: /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php
Line: 45
Trace: #0 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php(16): JATSParser\Body\Par->findExtractRemoveBlockElements(Object(DOMElement), Object(DOMXPath))
#1 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Section.php(88): JATSParser\Body\Par->__construct(Object(DOMElement))
#2 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Section.php(34): JATSParser\Body\Section->extractContent(Object(DOMElement))
#3 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php(121): JATSParser\Body\Section->__construct(Object(DOMElement))
#4 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php(32): JATSParser\Body\Document->extractContent()
#5 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JatsParserPlugin.inc.php(623): JATSParser\Body\Document->__construct('/home/vallerqu/...')
#6 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JatsParserPlugin.inc.php(610): JatsParserPlugin->getFullTextFromJats(Object(SubmissionFile))
#7 /home/vallerqu/public_html/ojs/lib/pkp/classes/plugins/HookRegistry.inc.php(107): JatsParserPlugin->editPublication('Publication::ed...', Array)
#8 /home/vallerqu/public_html/ojs/lib/pkp/classes/services/PKPPublicationService.inc.php(524): HookRegistry::call('Publication::ed...', Array)
#9 /home/vallerqu/public_html/ojs/lib/pkp/api/v1/submissions/PKPSubmissionHandler.inc.php(685): PKP\Services\PKPPublicationService->edit(Object(Publication), Array, Object(Request))
#10 [internal function]: PKPSubmissionHandler->editPublication(Object(Slim\Http\Request), Object(APIResponse), Array)
#11 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#12 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#13 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#14 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#15 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))
#16 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#17 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#18 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)
#19 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#20 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#21 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#22 [internal function]: ApiCsrfMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#23 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiCsrfMiddleware), Array)
#24 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#25 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#26 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#27 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#28 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)
#29 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#30 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#31 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#32 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#33 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#34 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#35 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#36 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#37 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#38 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#39 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#40 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#41 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#42 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#43 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#44 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#45 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#46 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#47 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#48 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#49 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#50 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#51 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#52 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#53 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#54 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#55 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#56 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#57 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#58 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#59 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#60 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#61 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#62 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/Dispatcher.inc.php(143): APIRouter->route(Object(Request))
#63 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPApplication.inc.php(279): Dispatcher->dispatch(Object(Request))
#64 /home/vallerqu/public_html/ojs/index.php(68): PKPApplication->execute()
#65 {main}
View in rendered output by enabling the "displayErrorDetails" setting.

[28-Jul-2020 12:40:10 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'APIRouter' does not have a method 'getRequestedPage' in /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 760
[28-Jul-2020 12:40:10 UTC] Slim Application Error:
Type: Error
Message: Call to undefined function JATSParser\Body\array_key_last()
File: /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php
Line: 45
Trace: #0 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php(16): JATSParser\Body\Par->findExtractRemoveBlockElements(Object(DOMElement), Object(DOMXPath))
#1 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Section.php(88): JATSParser\Body\Par->__construct(Object(DOMElement))
#2 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Section.php(34): JATSParser\Body\Section->extractContent(Object(DOMElement))
#3 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php(121): JATSParser\Body\Section->__construct(Object(DOMElement))
#4 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php(32): JATSParser\Body\Document->extractContent()
#5 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JatsParserPlugin.inc.php(623): JATSParser\Body\Document->__construct('/home/vallerqu/...')
#6 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JatsParserPlugin.inc.php(610): JatsParserPlugin->getFullTextFromJats(Object(SubmissionFile))
#7 /home/vallerqu/public_html/ojs/lib/pkp/classes/plugins/HookRegistry.inc.php(107): JatsParserPlugin->editPublication('Publication::ed...', Array)
#8 /home/vallerqu/public_html/ojs/lib/pkp/classes/services/PKPPublicationService.inc.php(524): HookRegistry::call('Publication::ed...', Array)
#9 /home/vallerqu/public_html/ojs/lib/pkp/api/v1/submissions/PKPSubmissionHandler.inc.php(685): PKP\Services\PKPPublicationService->edit(Object(Publication), Array, Object(Request))
#10 [internal function]: PKPSubmissionHandler->editPublication(Object(Slim\Http\Request), Object(APIResponse), Array)
#11 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#12 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#13 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#14 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#15 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))
#16 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#17 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#18 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)
#19 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#20 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#21 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#22 [internal function]: ApiCsrfMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#23 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiCsrfMiddleware), Array)
#24 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#25 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#26 /home/vallerqu/public_html/ojs/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#27 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#28 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)
#29 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#30 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#31 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#32 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#33 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#34 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#35 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#36 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#37 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#38 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#39 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#40 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#41 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#42 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#43 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#44 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#45 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#46 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#47 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#48 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#49 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#50 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#51 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#52 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#53 /home/vallerqu/public_html/ojs/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#54 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#55 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#56 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#57 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#58 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#59 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#60 /home/vallerqu/public_html/ojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#61 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#62 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/Dispatcher.inc.php(143): APIRouter->route(Object(Request))
#63 /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPApplication.inc.php(279): Dispatcher->dispatch(Object(Request))
#64 /home/vallerqu/public_html/ojs/index.php(68): PKPApplication->execute()
#65 {main}
View in rendered output by enabling the "displayErrorDetails" setting.

@Vitaliy-1
Copy link
Owner

Check if your PHP version is 7.3 or higher

@pawan001
Copy link
Author

We are using PHP 7.3

@Vitaliy-1
Copy link
Owner

That's strange, the error message says that array_key_last() function is missing from your distribution. According to the function description, it was introduced in PHP 7.3. Note that OJS 3.2.1 will work with PHP 7.2.

Can you describe how you determine PHP version that your OJS instance is using?

@pawan001
Copy link
Author

pawan001 commented Aug 1, 2020

Than u for help problem have solved by change PHP version

@pawan001
Copy link
Author

pawan001 commented Aug 1, 2020

dear we have one more question we want add section latest article in home page can help us we have add this code in latest article but section not appear

{if $article->getSectionTitle()}


{$article->getSectionTitle()|escape}

{/if}

@pawan001
Copy link
Author

pawan001 commented Aug 1, 2020

we are using this code for latest article and article display proper but section not show

        <h2 class="ArticleHeading">Latest Articles</h2>
        <div class="width-wrapper">
  {foreach from=$publishedArticles item=article key=k}
	<div class="section">
	
		{if $article->getSectionTitle()}

{$article->getSectionTitle()|escape}

{/if}

	{/if}
	</div>
{/foreach}
                                  |
                                    
                                    	{if $article->getPages()}
			
				Page {$article->getPages()|escape}
		
		{/if}
                                    
                                </small>
                                <small class="text-muted">
                                   
                                    {$article->getDatePublished()|date_format:"%Y-%m-%d"}
                                   
		
		
                                    
                                </small>
                            </div>
                           
                              <div class="media-body">
	
                                    <a class="article-title"
                                       href="{url page="article" op="view" path=$article->getBestArticleId()}">
                                        {$article->getLocalizedTitle()|escape|truncate:1000}
                                    </a>
                                </h2>
                                <p class="card-text">{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW}
{assign var="showAuthor" value=true}

{/if}

                                  {if $showAuthor || $article->getPages() || ($article->getDatePublished() && $showDatePublished)}

		{if $showAuthor}
			<div class="meta">
				{if $showAuthor}
					<div class="authors">
						{$article->getAuthorString()}
					</div>
				{/if}
			</div>
		{/if}


        
  

		 <!-- Abstract <span class="glyphicon glyphicon-eye-open"></span> {$article->getViews()} |
            {assign var=galleys value=$article->getGalleys()}
            {if $galleys}
            {foreach from=$galleys item=galley name=galleyList}
            {$galley->getGalleyLabel()} Downloads <span class="glyphicon glyphicon-download-alt"></span> {$galley->getViews()}
            {/foreach} -->
        {/if}
	{/if}




                                </p>
                        

                        </div>
                        
                        <div class="article_footer">
                            
                          	{* Full-issue galleys *}
{if $issueGalleys}
	<div class="galleys">
		<{$heading} id="issueTocGalleyLabel">
			{translate key="issue.fullIssue"}
		</{$heading}>
		<ul class="galleys_links">
			{foreach from=$issueGalleys item=galley}
				<li>
					{include file="frontend/objects/galley_link.tpl" parent=$issue labelledBy="issueTocGalleyLabel" purchaseFee=$currentJournal->getData('purchaseIssueFee') purchaseCurrency=$currentJournal->getData('currency')}
				</li>
			{/foreach}
		</ul>
	</div>
{/if}
                            </div>
                        
                   </div>
                {/foreach}
 
 

 </div></div>

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