OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Call to a member function url() on a non-object

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

Moderators: jmacgreg, michael, John

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.

Call to a member function url() on a non-object

Postby ramon » Mon Jan 31, 2011 1:49 pm

Hello PKPers,

I'm running OCS 2.3.3-1 for a conference.
Everything works fine except when clicking the Director link on the user's Home Page.
This is the error displayed:
Code: Select all
Page clicked: http://myocs/index.php/conference/instance/director
Error
Fatal error: Call to a member function url() on a non-object in ocs2/pages/trackDirector/TrackDirectorHandler.inc.php on line 216


This recommended patch was applied.

PS-1: I should say that all recommended patches were applied, when possible. Some did generate errors (tried with the --dry-run option, so no .rej file to see).
PS: On another note, OCS needs to "preserve" instances of a Conference with different layouts, much like OJS does with issues. A scheduled conference cannot have a different layout from the "parent" or "siblings", but provides structure for different content. This should be in another post, though.
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: Call to a member function url() on a non-object

Postby ramon » Tue Feb 01, 2011 1:20 pm

Hello all,

In line 216 of pages/trackDirector/TrackDirectorHandler.php I commented the code as follows and it now works:
Code: Select all
                $pageHierarchy[] = array(Request::url(null, null, 'user'), 'navigation.user');
                //$pageHierarchy[] = array($request->url(null, null, $roleSymbolic), $roleKey);


Somehow the patch creates this new line that does not actually work. Maybe it does on OJS, but not OCS.
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: Call to a member function url() on a non-object

Postby asmecher » Mon Feb 07, 2011 10:02 am

Hi Ramón,

The patch uploaded against that bug entry was written against pre-release OCS 2.3.4 code and wouldn't apply cleanly against OCS 2.3.3. I've uploaded a patch that'll apply against OCS 2.3.3; it's a little different than the change you made and I'd suggest using it instead.

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


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests