JATS Parser v2.0: JATS XML to HTML and PDF conversion

The link construction looks OK now. There is an HTTP 500 error, what’s the associated error in PHP log? There should be more info there about the problem.

Here are some error logs I could find.

[Tue Aug 24 23:07:53 2021] [error] [client 196.75.200.174] [host agromaroc.com] End of script output before headers: index.php, referer: Se connecter | Revue Marocaine des Sciences Agronomiques et Vétérinaires
[Tue Aug 24 23:14:01 2021] [error] [client 196.75.200.174] [host agromaroc.com] End of script output before headers: index.php, referer: Se connecter | Revue Marocaine des Sciences Agronomiques et Vétérinaires

[Thu Aug 26 03:30:14 2021] [error] [client 41.214.83.57] [host www.agromaroc.com] End of script output before headers: index.php

Can you output errors to the log file rather than the browser?

In the config set debugging option to off. This is a common reason for such an error to occur.

In my config file, debugging is off. The error lines were from my webhost.

;;;;;;;;;;;;;;;;;;
; Debug Settings ;
;;;;;;;;;;;;;;;;;;

[debug]

; Display a stack trace when a fatal error occurs.
; Note that this may expose private information and should be disabled
; for any production system.
show_stacktrace = Off

; Display an error message when something goes wrong.
display_errors = Off

; Display deprecation warnings
deprecation_warnings = Off

; Log web service request information for debugging
log_web_service_info = Off

; declare a cainfo path if a certificate other than PHP’s default should be used for curl calls.
; This setting overrides the ‘curl.cainfo’ parameter of the php.ini configuration file.
[curl]
; cainfo = “”

If this is the only error that occurs in the log when you are reproducing the problem, unfortunately, I don’t have any more info to help you. The message isn’t specific, and a quick search on the web shows that it also can be due to a permission issue or server misconfiguration. Or it can be just a general message that the output sent isn’t expected…

Are you handy with debugging? I would recommend making a copy and debug it locally, thus, the production instance will remain safe and running. This requires some degree of knowledge in system administration. The easiest way would be probably to install XAMPP Installers and Downloads for Apache Friends and use it as an environment to install and run OJS.

But before that, can you specify what version of JATS Parser Plugin are you using? You mentioned that it’s the latest but I want just to check that it’s not the main branch (it’s compatible only with main branch of OJS, and not with 3.3)

Thank you Vitaliy for the extended response and for your genuine help.
I will look at the message on the local server when I have access to logs.
Actually, I first started upgrade tests on the XAMPP server locally ans when things looked ok I moved to online test site (agromaroc.com), the original website was not modified (agrimaroc.org).
The issue I raised didn’t show up till I was on online tests.
So will go back and report logs later then.

Thanks

Here some parts of the XAMPP logs:

[Mon Aug 30 23:42:33.949009 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:53940] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:33.952008 2021] [php7:warn] [pid 11152:tid 1792] [client ::1:62682] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:33.953007 2021] [php7:warn] [pid 11152:tid 1792] [client ::1:62682] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:33.968998 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:60676] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:33.969997 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:60676] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:34.130517 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:60676] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:34.131517 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:53940] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:34.131517 2021] [php7:warn] [pid 11152:tid 1792] [client ::1:62682] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:34.145533 2021] [php7:error] [pid 11152:tid 1820] [client ::1:53940] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:34.145533 2021] [php7:error] [pid 11152:tid 1804] [client ::1:60676] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:34.145533 2021] [php7:error] [pid 11152:tid 1792] [client ::1:62682] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.409970 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.410968 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.647967 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.648960 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.720922 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.720922 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.853996 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:50991] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:42:45.859016 2021] [php7:error] [pid 11152:tid 1820] [client ::1:50991] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Mon Aug 30 23:51:48.657189 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.657189 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.815462 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.815462 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.854425 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.854425 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.985286 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:48.985286 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:49.125568 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:49.126566 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:49.155553 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Mon Aug 30 23:51:49.155553 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:58392] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:00:47.857171 2021] [php7:warn] [pid 11152:tid 1828] [client ::1:50539] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:00:47.857171 2021] [php7:warn] [pid 11152:tid 1828] [client ::1:50539] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:00:47.858170 2021] [php7:warn] [pid 11152:tid 1808] [client ::1:57101] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/index
[Tue Aug 31 00:00:47.858170 2021] [php7:warn] [pid 11152:tid 1808] [client ::1:57101] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/index
[Tue Aug 31 00:00:59.058101 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/workflow/index/1068/4
[Tue Aug 31 00:00:59.058101 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/workflow/index/1068/4
[Tue Aug 31 00:01:03.726486 2021] [php7:warn] [pid 11152:tid 1828] [client ::1:50539] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:01:03.726486 2021] [php7:warn] [pid 11152:tid 1828] [client ::1:50539] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:01:03.799464 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/workflow/index/1068/4
[Tue Aug 31 00:01:03.799464 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/workflow/index/1068/4
[Tue Aug 31 00:01:03.814455 2021] [php7:warn] [pid 11152:tid 1808] [client ::1:57101] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/index
[Tue Aug 31 00:01:03.814455 2021] [php7:warn] [pid 11152:tid 1808] [client ::1:57101] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/index
[Tue Aug 31 00:01:08.016237 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/workflow/index/1068/4
[Tue Aug 31 00:01:08.017239 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/workflow/index/1068/4
[Tue Aug 31 00:01:08.017239 2021] [php7:warn] [pid 11152:tid 1808] [client ::1:57101] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/index
[Tue Aug 31 00:01:08.017239 2021] [php7:warn] [pid 11152:tid 1808] [client ::1:57101] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/index
[Tue Aug 31 00:01:08.023989 2021] [php7:warn] [pid 11152:tid 1828] [client ::1:50539] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:01:08.023989 2021] [php7:warn] [pid 11152:tid 1828] [client ::1:50539] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1082
[Tue Aug 31 00:01:08.610430 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:08.610430 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:10.679409 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:10.680408 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:10.736377 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:10.736377 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:14.366336 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:57451] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:14.417742 2021] [php7:error] [pid 11152:tid 1820] [client ::1:57451] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:33.991369 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:33.991369 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:33.991369 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:33.991369 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:33.991369 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:33.992368 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.425453 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.429558 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.440777 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.440777 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.489664 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.490665 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.524157 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.524157 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.524157 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.524157 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.584131 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.585122 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Illegal string offset ‘fr_CA’ in F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\DataObject.inc.php on line 133, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.759016 2021] [php7:warn] [pid 11152:tid 1804] [client ::1:59301] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.759016 2021] [php7:warn] [pid 11152:tid 1832] [client ::1:57558] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.759016 2021] [php7:warn] [pid 11152:tid 1820] [client ::1:52710] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 41, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.770494 2021] [php7:error] [pid 11152:tid 1804] [client ::1:59301] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.770494 2021] [php7:error] [pid 11152:tid 1832] [client ::1:57558] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841
[Tue Aug 31 00:01:34.771496 2021] [php7:error] [pid 11152:tid 1820] [client ::1:52710] PHP Fatal error: Uncaught Error: Call to undefined method Dispatcher::handler404() in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php:45\nStack trace:\n#0 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPRouter.inc.php(395): FullTextArticleHandler->downloadFullTextAssoc(Array, Object(Request))\n#1 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#2 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))\n#3 F:\XAMPP\htdocs\remav33\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 F:\XAMPP\htdocs\remav33\index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in F:\XAMPP\htdocs\remav33\plugins\generic\jatsParser\FullTextArticleHandler.inc.php on line 45, referer: http://localhost/remav33/index.php/Actes_IAVH2/article/view/1068/version/841

This indicates the place where it fails. For some reason, the SUBMISSION_FILE_DEPENDENT constant isn’t defined as it should be.
Do you have it defined in your code in the SubmissionFile class, like here: https://github.com/pkp/pkp-lib/blob/stable-3_3_0/classes/submission/SubmissionFile.inc.php#L28

This is my bad, typo which resulted in error code 500 rather than 404. But it’s not related to the image upload. Fixed that.

This looks like a data problem, something related to one of the localized values in article 1068. Let’s leave it for now.

I don’t see any easy or simple solution for my problem of showing XML enbedded images.
Maybe some relics of earlier versions of OJS in the database are the problem.
I will just have to postpone this ojs upgrade for later times.
However, my original request was “Why XML written in the database doesn’t translate well the web links?” http%3A%2F%2F written instead of http://
Is there a solution to that for the moment?
Thank you again

I don’t see clues for now that the problem is in the database. According to the error message, it’s because of an undefined constant, which I mentioned earlier. If you checked and it’s defined in your SubmissionFile class, try to import it explicitly before the call to constant, like:

import('lib.pkp.classes.submission.SubmissionFile');

Put this line just after this comment here: https://github.com/Vitaliy-1/JATSParserPlugin/blob/main/FullTextArticleHandler.inc.php#L36 and let me know about results.

That’s because it’s deliberately escaped: Ensure image URL is properly encoded · Issue #40 · Vitaliy-1/JATSParserPlugin · GitHub.

Putting the line “import(‘lib.pkp.classes.submission.SubmissionFile’);” made the images to show.
A miracle.
see here online

https://agromaroc.com/index.php/Actes_IAVH2/article/view/1068
I will test other pages.
Thanks a lot

Why there is no option of showing full size of image like in here:

https://techagro.org/index.php/MJAS/article/view/909

Thanks for confirming.

There should be an arrow on the top right side of the image block that implements it.

I don’t see the arrow next to the image:

https://agromaroc.com/index.php/Actes_IAVH2/article/view/1068

Also, when I want to show the image in another window of the browser, it sends me to saving the image rather than displaying it at full size.

Ahh, yes, it’s implemented on the theme level (only for Old Gregg theme). The idea is that the theme should implement the styling for article landing page, the same as for others.

Ok, Thank you for all the help.

Hello Dear @Vitaliy

I have proposed a feature request for JATS Parser. Can you able to do HTML as a galley file. The embedded galley looks nice. But I am asking about the inline version of the HTML file. So we can add to the galley version.
Picture1

This type of look we want after the paper is published. As of right now, we can show XML and PDF.

Hi @Editor_IJIER,

I deliberately remove the creation of the HTML galley from the main code. The concept is that the full text is the same article’s component as an abstract or keywords and it feels more natural to see it on the landing page rather than be available by the separate link.

Probably, I may consider making conversion available from a command line, just like the DOCX Converter.

For now, I see 2 options, extend an example and run parser externally: https://github.com/Vitaliy-1/JATSParser/blob/main/examples/example.php; it requires some programming skills. Another option is just to copy converted full text from a database to a file.

Hello @Vitaliy

Hope you are fine. I was testing the XML publishing workflow. I have seen few lacks of features which are missing. I am using OJS ver 3.3.0-7 and plugins are DOCX to JATS XML Converter Plugin, JATSParser Plugin, JATS Template Plugin, Texture Editor Plugin, JATS Metadata Format the XML and PDF creation with the help of plugin only.

I am writing the issues below;

  • Image/figure is missing from article landing page and in pdf
  • Text alignment feature not available in texture or the HTML, XML, PDF
  • Table not looking good at the HTML page
  • Custom page number input (All PDF starting with 01)
  • Google schema need to introduce
  • Same look for HTML, XML, PDF

As I am not don’t have programming skills except little knowledge of HTML, CSS. I like to do visual editing software like Texture. I searched a few journals that publish XML, HTML, PDF. Please take a look in this journal maybe it will be helpful to you.