Install problem with lang_api.php

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
schaff
TestLink user
Posts: 1
Joined: Fri Oct 02, 2009 9:47 am

Install problem with lang_api.php

Post by schaff »

Hi,

I installed testlink 1.8.4 with xampp 1.7.2 to my local windows xp.
I followed the lines of the installation guide.
after the steps of http://localhost/testlink/install/index.php
I tried to login, and I got
"Deprecated: Function ereg_replace() is deprecated in C:\bin\xampp\xampp\htdocs\testlink\lib\functions\lang_api.php on line 173"
in a lot of lines.
brunoasrojo
TestLink user
Posts: 4
Joined: Tue Feb 26, 2008 6:03 pm

change line 173

Post by brunoasrojo »


simple, change this line:

$t_lang_var = ereg_replace( '^TLS_', '', $t_var );

to:
$t_lang_var = preg_replace( '/^TLS_/', '', $t_var );

:lol:
greaze
Advanced user
Posts: 25
Joined: Mon Dec 08, 2008 4:03 pm

Post by greaze »

bruno...

worked fine.
thanks for this post.
Amaradana
Member of TestLink Community
Posts: 398
Joined: Mon Feb 16, 2009 11:19 am
Contact:

Post by Amaradana »

perfact. Thanks for digging this

NOTE: This error will come if you try to install with MSSQL.
Thanks,
TesterWorld
Http://amartester.blogspot.com
Post Reply