We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 6308 - Custom Block Manager fatal error
Custom Block Manager fatal error
Product: OCS
Classification: Unclassified
Component: General
All All
: P3 normal
Assigned To: PKP Support
Depends on:
  Show dependency treegraph
Reported: 2010-12-16 13:36 PST by James MacGregor
Modified: 2011-02-09 16:15 PST (History)
2 users (show)

See Also:
Version Reported In:
Also Affects:

Patch against OCS pre-2.3.4 (3.45 KB, patch)
2010-12-17 09:19 PST, Alec Smecher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James MacGregor 2010-12-16 13:36:11 PST
I'm trying to troubleshoot the following forum thread: http://pkp.sfu.ca/support/forum/viewtopic.php?f=3&t=6958&p=26896#p26896. 

However, when I enable the Custom Block Manager, add two blocks, and click save, I get a blank page with the following errors: 

[Thu Dec 16 13:28:57 2010] [error] [client] ocs2 has produced an error\n  Message: WARNING: assert(): Assertion failed\n  In file: /Users/jmacgreg/git/ocs/plugins/generic/customBlockManager/CustomBlockManagerPlugin.inc.php\n  At line: 162\n  Stacktrace: \n  Server info:\n   OS: Darwin\n   PHP Version: 5.3.3\n   Apache Version: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8l DAV/2 PHP/5.3.3 mod_fastcgi/2.4.2\n   DB Driver: mysql\n   DB server version: 5.1.38

[Thu Dec 16 13:28:57 2010] [error] [client] PHP Fatal error:  Call to a member function getPluginPath() on a non-object in /Users/jmacgreg/git/ocs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 43

I'm not sure whether this has anything to do with Bug 6076 or not, and I don't believe it has anything to do with John's problem. I have a very recent git checkout, and have also very recently run the upgrade script.
Comment 1 Alec Smecher 2010-12-17 09:19:18 PST
Created attachment 3399 [details]
Patch against OCS pre-2.3.4