Bug 8062 - PHP Fatal error: Call to undefined method PKPPublicFileManager::PKPPublicFileManager() in /var/www/ohs-2.3.2/classes/file/PublicFileManager.inc.php on line 25
PHP Fatal error: Call to undefined method PKPPublicFileManager::PKPPublicFil...
Status: RESOLVED FIXED
Product: OHS
Classification: Unclassified
Component: General
2.3.3
All All
: P3 blocker
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-17 06:38 PST by David Kane
Modified: 2012-12-17 12:45 PST (History)
1 user (show)

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kane 2012-12-17 06:38:00 PST
The error is:

 PHP Fatal error:  Call to undefined method PKPPublicFileManager::PKPPublicFileManager() in /var/www/ohs-2.3.2/classes/file/PublicFileManager.inc.php on line 25


The class constructor for PKPPublicFileManager is missing in the class that it inherits from.

Inheritance as follows: 

FileManager => PublicFileManager => PKPPublicFileManager

I added the following method to PKPPublicFileManager to fix it.

<code>

	function PKPPublicFileManager() {
		parent::FileManager();
	}

</code>

Things look okay now, but will obviously have to test.  This is an urgent one that you need to fix though.

All the best.

David.
Comment 1 Alec Smecher 2012-12-17 12:44:50 PST
David, this has already been fixed in git head, but I've committed the missing constructor to the ohs-stable-2_3 branch in case there is a follow-up 2.3.x release. Thanks for reporting.
Comment 2 Alec Smecher 2012-12-17 12:45:04 PST
Added missing constructor
https://github.com/pkp/pkp-lib/commit/cf9a24001aa5dfea49670e3de7323170540bbb59