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

Call to undefined method JATSParser\Body\Par::getType() #3

Open
mtoreihi opened this issue Oct 9, 2018 · 8 comments
Open

Call to undefined method JATSParser\Body\Par::getType() #3

mtoreihi opened this issue Oct 9, 2018 · 8 comments

Comments

@mtoreihi
Copy link

mtoreihi commented Oct 9, 2018

Hi,
Thanks for the great work you have done. We have generated an XML file from one of the DOCX files (the output shows "BUILD SUCCESSFUL"), but unfortunately upon uploading the XML in the galley section the following error shows up:
Fatal error
: Uncaught Error: Call to undefined method JATSParser\Body\Par::getType() in /home/admin/web/waocp.com/public_html/j/cache/t_compile/6267f877acd9b945f8a07db7bb24329a969a952a^%%A2^A2D^A2DEEC56%%articleMainText.tpl.php:69 Stack trace: #0 /home/admin/web/waocp.com/public_html/j/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include() #1 /home/admin/web/waocp.com/public_html/j/lib/pkp/classes/template/PKPTemplateManager.inc.php(406): Smarty->_smarty_include(Array) #2 /home/admin/web/waocp.com/public_html/j/cache/t_compile/89d777ad47fee49321727969b42b912e77adc9cd^%%2D^2D7^2D7EC92F%%article.tpl.php(30): PKPTemplateManager->_smarty_include(Array) #3 /home/admin/web/waocp.com/public_html/j/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1257): include('/home/admin/web...') #4 /home/admin/web/waocp.com/public_html/j/lib/pkp/classes/template/PKPTemplateManager.inc.php(797): Smarty->fetch('frontend/pages/...', NULL, '89d777ad47fee49...', true) #5 /home/admin/web/waocp.com/public_html/j/lib/pkp/lib/ve in
/home/admin/web/waocp.com/public_html/j/cache/t_compile/6267f877acd9b945f8a07db7bb24329a969a952a^%%A2^A2D^A2DEEC56%%articleMainText.tpl.php
on line
69
It should be mentioned that everything works perfectly with the "example.xml" file included in the JATSParser plugin.
Any clues to resolve the issue would be highly appreciated.

@Vitaliy-1
Copy link
Owner

Hi @mtoreihi

You use JATS Parser plugin, right?

@Vitaliy-1
Copy link
Owner

And also can you specify what version of JATS Parser plugin you are using

@mtoreihi
Copy link
Author

mtoreihi commented Oct 9, 2018

Hi @Vitaliy-1
We are using JATS Parser 2.0.0

@Vitaliy-1
Copy link
Owner

Can you send me JATS XML that causes this error on vitaliybezsh at gmail dot com?

@mtoreihi
Copy link
Author

I sent you an email.

@mtoreihi
Copy link
Author

Any clues so far?

@Vitaliy-1
Copy link
Owner

Hi @mtoreihi

Sorry, I've completely forgotten. Using your XML I'm receiving other error with latest JATS Parser plugin code:
Uncaught TypeError: Return value of JATSParser\Body\Table::getLabel() must be of the type string, null returned

I've added nullable return types for the table elements, to avoid this inside JATS Parser library: Vitaliy-1/JATSParser@f961da2

It works, but after conversion for good look the file should be manually corrected.

@helenum
Copy link

helenum commented Jan 23, 2019

Hi Vitali

I cannot open your plugin with my Mac. Any imput?
Many thanks,

Helena

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

3 participants