Upgrade from 1.9.3 to 1.9.4 ends with errors

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
hades
TestLink user
Posts: 3
Joined: Mon Oct 29, 2012 6:13 pm

Upgrade from 1.9.3 to 1.9.4 ends with errors

Post by hades »

Hallo everybody, I have a problem with Testlink upgrade from version 1.9.3 to 1.9.4.
Here are steps which i done:
1) Backed up database
2) Backed up content of Testlink folder
3) Deleted content of Testlink folder
4) Coppied content from testlink-1.9.4.tar.gz to Testlink folder
5) Coppied old config files (config.inc.php, custom_config.inc.php, config_db.inc.php) into Testlink folder
6) Ran both update scripts from \install\sql\alter_tables\1.9.4\mysql\DB.1.5\

At step 6 I got some errors about duplicate datas, that I am trying to instert into database, so I ran scripts step-by-step.
It seems that my database is partially upgraded, that can happen due to my experiments.
Maybe one thing, which can solve my problem, is to revert database to old version 1.4, but I dont know how.

And at the end, when I open browser and connect to testlink I got these messages:

Code: Select all

Warning: Missing argument 1 for get_home_url(), called in C:\Program Files\EasyPHP5.2.10\home\testlink\config.inc.php on line 1380 and defined in C:\Program Files\EasyPHP5.2.10\home\testlink\lib\functions\configCheck.php on line 33

Notice: Undefined variable: opt in C:\Program Files\EasyPHP5.2.10\home\testlink\lib\functions\configCheck.php on line 48

Notice: Use of undefined constant TL_CSS_CUSTOM - assumed 'TL_CSS_CUSTOM' in C:\Program Files\EasyPHP5.2.10\home\testlink\config.inc.php on line 1444

Warning: Invalid argument supplied for foreach() in C:\Program Files\EasyPHP5.2.10\home\testlink\lib\functions\logger.class.php on line 215

Fatal error: Call to undefined function utf8_strtolower() in C:\Program Files\EasyPHP5.2.10\home\testlink\lib\functions\gpc_api.php on line 17
So I am asking: How can I resolve this problem?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Upgrade from 1.9.3 to 1.9.4 ends with errors

Post by fman »

Each TestLink version has it's OWN config.inc.php, then is WRONG to overwrite 1.9.4 config.inc.php with 1.9.3.
All your customizations has to be ON custom* files.

My suggestion is:
put again on place 1.9.4 config.inc.php, and retest.
DO NOT FORGET TO GET LASTEST 1.9.4 patched version using instructions provided on mantis
hades
TestLink user
Posts: 3
Joined: Mon Oct 29, 2012 6:13 pm

Re: Upgrade from 1.9.3 to 1.9.4 ends with errors

Post by hades »

Thaks for answer. I checked differences between my old config.inc.php and the new one from 1.9.4.
I also modified new config.inc.php and put in it changes made in my old file.
But this doesn't helped me too.
I still think that problem is in DB...
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Upgrade from 1.9.3 to 1.9.4 ends with errors

Post by fman »

Important things - Please provide answer to each question
1. have you got latest patched 1.9.4 version ?

Do things in slow mode:
1. do a fresh install of 1.9.4 WITH NEW EMPTY DB
2. login and see what happens.

Only if everything is OK
1. get a BACKUP of your 1.9.3 DB
2. restore it in a NEW DB
3. APPLY ALL SQL SCRIPTS to this db as explained on README
4. configure your FRESH 1.9.4 to point to this DB

ALWAYS give a look to TESTLINK Event Viewer
Post Reply