简体   繁体   English

$tlCfg->results['status_code'] = array (

[英]Testlink Installation problem with $tlCfg->results['status_code'] = array (

I am installing Testlink on a fairly vanilla laptop using XAMPP v3.3.0 and using testlink 1.8.5b and/or 1.9.0.我正在使用 XAMPP v3.3.0 并使用 testlink 1.8.5b 和/或 1.9.0 在相当普通的笔记本电脑上安装 Testlink。

I am unable to find support online and the below is my error message that I get on both versions of Testlink that I have tried:我无法在线找到支持,以下是我在尝试过的两个版本的 Testlink 上收到的错误消息:

Fatal error: Uncaught Error: Attempt to modify property "results" on null in C:\Program Files\XAMPP\htdocs\testlink\cfg\const.inc.php:360 Stack trace: #0 C:\Program Files\XAMPP\htdocs\testlink\install\index.php(11): require_once() #1 {main} thrown in C:\Program Files\XAMPP\htdocs\testlink\cfg\const.inc.php on line 360致命错误:未捕获错误:尝试在 C 中修改 null 上的属性“结果”:\ htdocs\testlink\install\index.php(11): require_once() #1 {main} throw in C:\Program Files\XAMPP\htdocs\testlink\cfg\const.inc.php on line 360

I receive this error once I start Xampp and going to http://localhost/testlink/install/index.php this is before I even get the Testlink installation window.我在启动 Xampp 并转到http://localhost/testlink/install/index.php后收到此错误,这是在我什至获得 Testlink 安装 window 之前。

I have not yet made the changes to the directories in config.inc.php.我还没有对 config.inc.php 中的目录进行更改。 At this point I have created the MySql user as advised via documentation but this occurs even before the creation of the user.此时,我已经按照文档中的建议创建了 MySql 用户,但这甚至发生在创建用户之前。

My config files everywhere is untouched across xampp and Testlink, and on Xampp Apache and MySQL (Tomcat) starts just fine.我的配置文件在 xampp 和 Testlink 上都没有受到影响,在 Xampp Apache 和 MySQL (Tomcat) 上启动得很好。

Any advise that I might be missing?有什么建议我可能会失踪吗?

Thank you in advance先感谢您

I am also see this error message, however I couldnt find any resolution online either.我也看到此错误消息,但是我也无法在线找到任何解决方案。 My inline of error is on line 409 though not我的内联错误在第 409 行,但不是

//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 not 360// //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} 在 C:\xampp\htdocs\Testlink\cfg\const.inc.php 中抛出,第 409 行不是 360//

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

there is some issue that I also cannot indicate, but i try to download a different version or fix the version at https://github.com/TestLinkOpenSourceTRMS/testlink-code/tree/testlink_1_9_20_fixed有一些我也无法指出的问题,但我尝试下载不同的版本或在https://github.com/TestLinkOpenSourceTRMS/testlink-code/tree/testlink_1_9_20_fixed修复版本

seems this code is successful in setup testlink.似乎此代码在设置 testlink 中是成功的。 I try some workaround in your issue because it's similar to the issue that I had but no luck to make it.我在您的问题中尝试了一些解决方法,因为它与我遇到的问题相似,但没有成功。

I speak Spanish, sorry for the English.我说西班牙语,对不起英语。

Solution: Enter the file "..\testlink\cfg\const.inc.php" and locate line 360, it should look something like this:解决方案:进入文件“..\testlink\cfg\const.inc.php”并找到第360行,它应该看起来像这样:

$tlCfg->results['status_code'] = array (
'failed' => 'f',
'blocked' => 'b',
'passed' => 'p',

The problem is that the object was not previously initialized, for this we must place the following line of code to initialize the object and then be able to call it:问题是之前没有初始化 object,为此我们必须放置以下代码行来初始化 object 然后才能调用它:

$tlCfg = new stdClass();

Now it should look something like this:现在它应该看起来像这样:

$tlCfg = new stdClass();
$tlCfg->results['status_code'] = array (
'failed' => 'f',
'blocked' => 'b',
'passed' => 'p',

You save and try, greetings and I hope I have helped.您保存并尝试,问候,希望我有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM