xampptestlink

Fatal error: Uncaught Error: Attempt to modify property "results" on null in C:\xampp\htdocs\TestLink\cfg\const.inc.php:409


I am trying to install TestLink following this tutorialspoint guide. However, when I navigate to http://localhost/Testlink in my browser to access the installation page, I get the following error message:

Fatal error: Uncaught Error: Attempt to modify property "results" on null in C:\xampp\htdocs\TestLink\cfg\const.inc.php:409 Stack trace: #0 C:\xampp\htdocs\TestLink\install\index.php(20): require_once() #1 {main} thrown in C:\xampp\htdocs\TestLink\cfg\const.inc.php on line 409

My config files everywhere are untouched except config.inc.php to edit path $tlCfg->log_path and $g_repositoryPath.

How do I install TestLink?


Solution

  • Edit this in const.inc.php

    $tlCfg = new stdClass();
    $tlCfg->results['status_code'] = array (
        'failed' => 'f',
        'blocked' => 'b',
        'passed' => 'p',
        'not_run'       => 'n',
        'not_available' => 'x',
        'unknown'       => 'u',
        'all'           => 'a'
    );