Menu

#333 Undefined index notification when crating a session course

claroline_1.12
closed
nobody
None
5
2014-07-18
2014-07-17
No

Undefined index notification when crating a session course.

Stack trace :

( ! ) Notice: Undefined index: versionDb in /var/www/claroline/claroline/inc/lib/add_course.lib.inc.php on line 438
Call Stack

Time Memory Function Location

1 0.0000 245768 {main}( ) ../create.php:0
2 0.0231 1882200 ClaroCourse->save( ) ../create.php:96
3 0.1740 1888968 register_course( ) ../claroCourse.class.php:263
( ! ) Notice: Undefined index: clarolineVersion in /var/www/claroline/claroline/inc/lib/add_course.lib.inc.php on line 439
Call Stack

Time Memory Function Location

1 0.0000 245768 {main}( ) ../create.php:0
2 0.0231 1882200 ClaroCourse->save( ) ../create.php:96
3 0.1740 1888968 register_course( ) ../claroCourse.class.php:263

Discussion

  • Frederic Minne

    Frederic Minne - 2014-07-18
    • status: open --> closed
     
  • Frederic Minne

    Frederic Minne - 2014-07-18

    This bug is due to a variable scope issue under PHP 5.5. The installer has been fixed in rev14884, but this will not change the existing file on the disk.

    The only solution is to edit the platform/currentVersion.inc.php and replace $versionDb with $GLOBALS['versionDb'] and $clarolineVersion with $GLOBALS['clarolineVersion'].

    I will check the upgrade script to see if we can solve that issue when upgrading the platform.

     

Log in to post a comment.