OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Error in SuppFileForm.inc.php (OJS 2.4)

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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Error in SuppFileForm.inc.php (OJS 2.4)

Postby springday » Fri Sep 07, 2012 3:54 pm

I've run into an error when trying to add a supplementary file to a published article. I started out from the page associated with the URL [journal]/editor/submission/[articleId] and clicked "Add supplementary file" (URL [journal]/editor/addSuppFile/[articleID]?from=submission). I received the following PHP error:

Fatal error: Call to a member function getData() on a non-object in C:\xampp\htdocs\ojs\classes\plugins\PubIdPluginHelper.inc.php on line 51


The PubIdPluginHelper is called from line 178 of SuppeFileForm.inc.php:

Code: Select all
$pubIdPluginHelper->init($this, $suppFile);


$suppFile is not defined at this stage, because I was trying to add a new supplementary file.
springday
 
Posts: 111
Joined: Wed Jul 25, 2012 2:56 pm
Location: Munich, Germany

Re: Error in SuppFileForm.inc.php (OJS 2.4)

Postby JasonNugent » Mon Sep 10, 2012 8:02 am

Hi Kai,

I've filed this bug against OJS 2.4 as

http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7868

And included a patch there against OJS 2.4. Can you verify that this patch solves your issue? If it does, I will commit and close.

Thanks for reporting,
Jason
JasonNugent
Site Admin
 
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: Error in SuppFileForm.inc.php (OJS 2.4)

Postby springday » Mon Sep 10, 2012 10:20 am

Hi Jason,

yes, moving those four lines up did the job, I can now add supplementary files without encountering an error message. Thanks a lot!

Kai
springday
 
Posts: 111
Joined: Wed Jul 25, 2012 2:56 pm
Location: Munich, Germany


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 2 guests

cron