[NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
sn82w
Advanced user
Posts: 45
Joined: Fri Apr 27, 2012 6:38 pm

[NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by sn82w »

Hi Am trying to install the testlink version both 1.9.4 and 1.9.5.
But am getting the error like below
"Checking if /var/testlink/logs/ directory exists [S] Failed!
Checking if /var/testlink/upload_area/ directory exists [S] Failed! "

Please any one can help me to resolve this error.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: TestLink1.9.4 and 1.9.5 installations fails

Post by fman »

Installation is not failing, installer is saying that these folders does not exists.
have you given a look to the forum section specific to 1.9.4 ?
IMHO no => http://www.teamst.org/forum/viewtopic.php?f=25&t=7007

As you can see is not important how hard we work if people do not spend 5 minutes trying to get the answer from our (sometime poor documentation).
sn82w
Advanced user
Posts: 45
Joined: Fri Apr 27, 2012 6:38 pm

Re: TestLink1.9.4 and 1.9.5 installations fails

Post by sn82w »

I have done below changes in Changes in the config.inc.php

$tlCfg->log_path = TL_ABS_PATH . 'logs' . DIRECTORY_SEPARATOR ;
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR;

now am able to install the testlink1.9.4 version. need to check it for 1.9.5 version also.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: TestLink1.9.4 and 1.9.5 installations fails

Post by fman »

The ONLY good practice is DO NOT DO ANY change on config.inc.php, we have created custom* file for this purpose.
sn82w
Advanced user
Posts: 45
Joined: Fri Apr 27, 2012 6:38 pm

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by sn82w »

thats fine.
But with out those changes am not able to continue the installation.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by fman »

wrong, you have to do the changes on custom_config.inc.php.
sn82w
Advanced user
Posts: 45
Joined: Fri Apr 27, 2012 6:38 pm

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by sn82w »

with out below changes in the config.inc.php file installation is not successful.

$tlCfg->log_path = TL_ABS_PATH . 'logs' . DIRECTORY_SEPARATOR ;
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR;

Can you share the information on what are changes need to be done in custom* file....
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by fman »

We supposed that logic has been clear from the beginning (there is a custo*example file)
1. copy lines from config.inc.php to custom_config.inc.php
2. do changes on custom_config.inc.php
things has to work
(just done on one installation 5 minutes ago)
sn82w
Advanced user
Posts: 45
Joined: Fri Apr 27, 2012 6:38 pm

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by sn82w »

fman wrote:We supposed that logic has been clear from the beginning (there is a custo*example file)
1. copy lines from config.inc.php to custom_config.inc.php
2. do changes on custom_config.inc.php
things has to work
(just done on one installation 5 minutes ago)

i have tried with above mentioned steps.
But am getting below error with login page. it is not allowing me to login with admin/admin credentials.


Notice: Constant TL_ABS_PATH already defined in C:\xampp\htdocs\testlink-ga-testlink-code\custom_config.inc.php on line 71

Notice: Undefined property: stdClass::$results in C:\xampp\htdocs\testlink-ga-testlink-code\custom_config.inc.php on line 524

Notice: Undefined property: stdClass::$results in C:\xampp\htdocs\testlink-ga-testlink-code\custom_config.inc.php on line 1378

Notice: Undefined property: stdClass::$results in C:\xampp\htdocs\testlink-ga-testlink-code\custom_config.inc.php on line 1410

Warning: array_flip() expects parameter 1 to be array, null given in C:\xampp\htdocs\testlink-ga-testlink-code\custom_config.inc.php on line 1410

Notice: Constant TL_BASE_HREF already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1367

Notice: Undefined index: status_label_for_exec_ui in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1378

Notice: Constant TL_DEFAULT_LOCALE already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1402

Notice: Undefined index: status_code in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1410

Warning: array_flip() expects parameter 1 to be array, null given in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1410

Notice: Constant REFRESH_SPEC_TREE already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1414

Notice: Constant TL_SORT_TABLE_ENGINE already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1415

Notice: Constant TL_REPOSITORY_MAXFILESIZE already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1416

Notice: Constant TL_XMLEXPORT_HEADER already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1418

Notice: Constant TL_THEME_BASE_DIR already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1420

Notice: Constant TL_THEME_IMG_DIR already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1421

Notice: Constant TL_THEME_CSS_DIR already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1422

Notice: Constant TL_TESTLINK_CSS already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1423

Notice: Constant TL_PRINT_CSS already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1424

Notice: Constant TL_TREEMENU_CSS already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1425

Notice: Constant TL_TESTLINK_CUSTOM_CSS already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1428

Notice: Constant TL_IMPORT_ROW_MAX already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1455

Notice: Constant TL_TPL_CHARSET already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1456

Notice: Constant TITLE_SEP already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1457

Notice: Constant TITLE_SEP_TYPE2 already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1458

Notice: Constant TITLE_SEP_TYPE3 already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1459

Notice: Constant TL_FRMWORKAREA_LEFT_FRAME_WIDTH already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1460

Notice: Constant TL_TEMP_PATH already defined in C:\xampp\htdocs\testlink-ga-testlink-code\config.inc.php on line 1461
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by fman »

Is impossible that addition of JUST TWO lines on custom_config.inc.php produce the effect indicated here.
IMHO you have copied more that needed
Then think best choice is : work in the way you like if is the way that allows you to use the product, but you are warned that you are going to need on next TestLink upgrade to compare changes you have done to all standard files with new files.
lchydp
TestLink user
Posts: 2
Joined: Sat May 25, 2013 6:34 pm
Location: China

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by lchydp »

To this solution,my understanding is,
1.Don't change anything in config.inc.php.
2.Make a copy to "custom_config.inc.php.example" and rename it to "custom_config.inc.php".
3.Do the changes in "custom_config.inc.php".
Am I right :?:
fman wrote:We supposed that logic has been clear from the beginning (there is a custo*example file)
1. copy lines from config.inc.php to custom_config.inc.php
2. do changes on custom_config.inc.php
things has to work
(just done on one installation 5 minutes ago)
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by fman »

@lchydp
custom_config.inc.php exists (as happens on mantisbt) to allow customization without touch defaults
that can be overwrited while installing a new version.
Steps that you have described (steps that I've adviced on past) are the right procedure
lchydp
TestLink user
Posts: 2
Joined: Sat May 25, 2013 6:34 pm
Location: China

Re: [NO ISSUE] - TestLink1.9.4 and 1.9.5 installations fails

Post by lchydp »

Thank you very much! :)
fman wrote:@lchydp
custom_config.inc.php exists (as happens on mantisbt) to allow customization without touch defaults
that can be overwrited while installing a new version.
Steps that you have described (steps that I've adviced on past) are the right procedure
Post Reply