OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



XML Galley Plugin not working after upgrade

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

XML Galley Plugin not working after upgrade

Postby jhallida » Tue Feb 18, 2014 10:02 am

Hello, we recently upgraded from OJS 2.3.6 to the latest version of 2.4. After the upgrade, the XML galley plugin we use on one of our journals is broken. The text renders without using the XSL transformation, even though all the settings look correct. Turning on debugging I see an error being generated from code (see below). Can you help? Thanks!

ojs2 has produced an error Message: WARNING: Invalid argument supplied for foreach() In file: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/classes/article/ArticleHTMLGalley.inc.php
At line: 50 Stacktrace: File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/classes/article/ArticleHTMLGalley.inc.php line 50 Function: PKPApplication->errorHandler(2, "Invalid argument supplied for foreach()", "/srv/www/scholarworks.iu.edu/htdocs/journals-playground/classes/article/ArticleHTMLGalley.inc.php", 50, Array(5)) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/plugins/generic/xmlGalley/ArticleXMLGalley.inc.php line 137 Function: ArticleHTMLGalley->getHTMLContents() File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/cache/t_compile/%%38^38D^38D7420B%%article.tpl.php line 20 Function: ArticleXMLGalley->getHTMLContents() File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/lib/smarty/Smarty.class.php line 1256 Function: include("/srv/www/scholarworks.iu.edu/htdocs/journals-playground/cache/t_compile/%%38^38D^38D7420B%%article.tpl.php") File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/classes/template/PKPTemplateManager.inc.php line 296 Function: Smarty->fetch("article/article.tpl", Null, Null, True) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/classes/template/PKPTemplateManager.inc.php line 347 Function: PKPTemplateManager->fetch("article/article.tpl", Null, Null, True) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/pages/article/ArticleHandler.inc.php line 224 Function: PKPTemplateManager->display("article/article.tpl") File: (unknown) line (unknown) Function: ArticleHandler->view(Array(2), Object(Request)) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/classes/core/PKPRouter.inc.php line 362 Function: call_user_func(Array(2), Array(2), Object(Request)) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/classes/core/PKPPageRouter.inc.php line 220 Function: PKPRouter->_authorizeInitializeAndCallRequest(Array(2), Object(Request), Array(2), False) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/classes/core/Dispatcher.inc.php line 134 Function: PKPPageRouter->route(Object(Request)) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/lib/pkp/classes/core/PKPApplication.inc.php line 190 Function: Dispatcher->dispatch(Object(Request)) File: /srv/www/scholarworks.iu.edu/htdocs/journals-playground/index.php line 64 Function: PKPApplication->execute() Server info: OS: Linux PHP Version: 5.3.3 Apache Version: Apache DB Driver: postgres DB server version: PostgreSQL 8.4.13 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit
jhallida
 
Posts: 24
Joined: Fri Aug 20, 2010 8:03 am

Re: XML Galley Plugin not working after upgrade

Postby asmecher » Tue Feb 18, 2014 10:07 am

Hi jhallida,

Have you tried the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8404?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9043
Joined: Wed Aug 10, 2005 12:56 pm

Re: XML Galley Plugin not working after upgrade

Postby jhallida » Tue Feb 18, 2014 10:29 am

Yes, that fixes the problem perfectly. Thanks for the quick response!

- Jim
jhallida
 
Posts: 24
Joined: Fri Aug 20, 2010 8:03 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 11 guests