I can not install the program on my computer

there is always something wrong
etc

Warning: Missing argument 2 for Gibbon\Core::__construct(), called in C:\WWW\gpa\gibbon.php on line 30 and defined in C:\WWW\gpa\src\Gibbon\core.php on line 79

Notice: Undefined variable: domain in C:\WWW\gpa\src\Gibbon\core.php on line 82

Catchable fatal error: Argument 1 passed to Gibbon\Session::__construct() must be an instance of Gibbon\Core, instance of League\Container\Container given, called in C:\WWW\gpa\gibbon.php on line 31 and defined in C:\WWW\gpa\src\Gibbon\session.php on line 48

Comments

  • Hi John,

    Please can you tell us what PHP version you are using? The minimum for Gibbon is PHP v5.5.0. I suspect you might be using a version below this.

    Thanks,

    Ross
  • edited May 2018
    Hi johhxue,

    It looks like you may be using v16 of Gibbon (the League\Container\Container class is new this version), but that the contents of your src/ folder are not up to date with the v16 cutting edge branch. If you're new to Gibbon it may be best to start with the v15 stable release from https://gibbonedu.org/download/ rather than v16, which is the version currently in development. If you do wish to continue testing v16, be sure to use a complete copy of the source from GitHub https://github.com/GibbonEdu/core/tree/v16.0.00
    admin
  • there is always something wrong
    etc

    Warning: Missing argument 2 for Gibbon\Core::__construct(), called in C:\WWW\gpa\gibbon.php on line 30 and defined in C:\WWW\gpa\src\Gibbon\core.php on line 79

    Notice: Undefined variable: domain in C:\WWW\gpa\src\Gibbon\core.php on line 82

    Catchable fatal error: Argument 1 passed to Gibbon\Session::__construct() must be an instance of Gibbon\Core, instance of League\Container\Container given, called in C:\WWW\gpa\gibbon.php on line 31 and defined in C:\WWW\gpa\src\Gibbon\session.php on line 48
  • I'm using php5.5.38+apache,I will try v15
  • Hi,there
    Sorry for so much question.I'm a teacher not a professional coder.So I should I edit the code on line 52
    Original:$nonce = hash('sha256', substr(mt_rand().date('zWy'), 0, 36));

    Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\WWW\grade\installer\install.php on line 52
  • Hi John,

    Hmm, you shouldn't need to touch the code at all to install, this is interesting. Gibbon should be handling the timezone setting for you. I see a C:\ in your error message, are you using XAMPP? The testing for Gibbon tends to be done on Linux & Mac so perhaps this is something related that hasn't been caught yet.

    Luckily this is a PHP warning rather than an error, you should be able to proceed to the next steps where you select a timezone manually. If you do find it prevents your from installing, you could add date_default_timezone_set('Asia/Hong_Kong'); directly before the line 52 you've mentioned in your post.

    Hope this helps!
    admin
  • Hi,Sandra
    Is is that I can only use xampp ?I‘m using a another one.
  • Hi John, Gibbon should work with XAMPP (others have tested and reported it working in the past), but it also works with other server stacks. In production I tend to use an Ubuntu-based LAMP stack. Cheers, Ross.
Sign In or Register to comment.