OCS Conference and SchedConf URL Problem

Hi all,

I have problem regarding the URL in OCS. I have installed OCS 2.3.6.0 on a machine with Apache 2.4 and PHP 5.5.9. I activate restful_url in OCS configuration.

I define two dummy conferences :

  1. Conference 01 (path: Conf01)
  2. Conference 02 (path: Conf02)

Each of this conferences has it’s own CSS design.

The problem is :

  1. http://myOCS/Conf01/SchedConf02 ← This URL will display Conference 01 CSS, but content will appear is from Scheduled Conference 02.
  2. and apparently it happened vice versa → http://myOCS/Conf02/SchedConf01

I want to make the URL more persistent like if I access like the http://myOCS/Conf01/SchedConf02, this URL will redirect to the right Scheduled Conference (http://myOCS/Conf01/SchedConf01)

Any Suggestions?

Thank you very much in advance.

Hi @muhfiasbin,

Try this and confirm whether it works:

Edit classes/handler/validation/HandlerValidatorSchedConf.inc.php and change the isValid function from…

$conference =& Request::getConference();
$schedConf =& Request::getSchedConf();

if ( !$conference || !$schedConf ) return false;
return true;

…to…

$conference =& Request::getConference();
$schedConf =& Request::getSchedConf();

if ( !$conference || !$schedConf || $conference->getId() != $schedConf->getConferenceId()) return false;
return true;

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry for taking too long to respond.

I already tried this solution and it works.

Best Regards,
Muhfi