Native XML Plugin OJS 3.3.0.8: Imported xml article published with error

Have created new article in clean installation of OJS 3.3.0.8
Published it in issue.
Works well.

Exported article to XML by Native XML Plugin and make one letter correction in title so that to distinguish the exported article
Import exported XML file back to OJS
Works fine and is presented in the issue of the journal as next article.
However, when click to view the article (not PDF, but article page: “fullpathtoojs/index.php/journal/article/view/x” it generates HTTP 500 error

Was tried different combinations: published article with issue assigned, unpublished, unassigned, … the same situation.

You can download screen video of demonstration:
Import XML failure

Would be great if you could help.
I have 500+ papers published earlier in my journal and want to upload all of them to OJS.
However, unsuccessful till now

Sincerely,
Andrey

Hi @Diplodok

What’s the error being logged in your server log? For 500 errors, there should be a PHP “fatal error” in there some where.

Best
Jason

Oh, will check in a few days.
At business trip now

Hi, @jnugent
I have downloaded error log
I’m placing its text here. It seems, there are 2 errors but I am not sure

Tue Dec 28 14:38:01.648869 2021] [lsapi:error] [pid 21808:tid 139823565649664] [client 213.110.123.20:0] [host chiffa.org] Backend fatal error: PHP Fatal error:  Uncaught Error: Non-static method Core::removeBaseUrl() cannot be called statically in /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/usageStats/UsageStatsLoader.inc.php:777\nStack trace:\n#0 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/usageStats/UsageStatsLoader.inc.php(172): UsageStatsLoader->_getUrlMatches()\n#1 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/task/FileLoader.inc.php(167): UsageStatsLoader->processFile()\n#2 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/usageStats/UsageStatsLoader.inc.php(127): FileLoader->executeActions()\n#3 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/scheduledTask/ScheduledTask.inc.php(146): UsageStatsLoader->executeActions()\n#4 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php(257): ScheduledTask->execute()\n#5 [internal function]: PKPAcronPlugin->shutdownFunction()\n#6 {main}\n  thrown in /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/usageStats/UsageStatsLoader.inc.php on line 777\n, referer: https://chiffa.org/ojs.html

[Tue Dec 28 14:38:25.334773 2021] [lsapi:error] [pid 21808:tid 139823834216192] [client 213.110.123.20:0] [host chiffa.org] Backend fatal error: PHP Fatal error:  Uncaught TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php:91\nStack trace:\n#0 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php(91): htmlspecialchars()\n#1 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/plugins/HookRegistry.inc.php(107): GoogleScholarPlugin->submissionView()\n#2 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/pages/article/ArticleHandler.inc.php(319): HookRegistry::call()\n#3 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/core/PKPRouter.inc.php(395): ArticleHandler->view()\n#4 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()\n#5 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()\n#6 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()\n#7 /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/index.php(68): PKPApplication->execute()\n#8 {main}\n  thrown in /home/chiffa/domains/chiffa.org/public_html/JournalEngine/engine/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 91\n, referer: https://chiffa.org/JournalEngine/engine/index.php/msj```

Hi @Diplodok

What version of PHP are you using? It looks like maybe your PHP configuration also has very strict error handling turned on in your php.ini file.

Best
Jason

@jnugent
I use php 8.0.

you may need to downgrade to 7.3. At PKPPS, we do not use PHP 8 yet, and stick with either 7.3 or 7.4.

Best
Jason

Yes, you are right
Thank you Jason @jnugent
7.3 and 7.4 are both working

Sincerely,
Andrey

1 Like