Blank page on index.php

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Chris_147
TestLink user
Posts: 7
Joined: Thu Sep 27, 2007 1:31 pm

Blank page on index.php

Post by Chris_147 »

Hi,

I wanted to try out TestLink 1.7, never used it before.

After following the automatic installation (which confirms I have correct version of everything), it doesn't work.

Deleted everything from the server (it's a hosted domain I'm working on) and FTP-ed everything again.
Made database, added tables, added default data
Made user, added that user to config_db.inc.php and uploaded it.
Changed permissions on gui/templates_c

However when I try to go to http://testlink.mysite.com/index.php it displays a white page.

Any ideas on what's going wrong here?

I don't know if I can look at logs, because it's on a hosted domain.
Chris_147
TestLink user
Posts: 7
Joined: Thu Sep 27, 2007 1:31 pm

Post by Chris_147 »

Nobody any idea on what's going wrong here?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Try http://testlink.mysite.com/login.php
It seems that you damaged some file(s) by manual editing. Configuration file?
Chris_147
TestLink user
Posts: 7
Joined: Thu Sep 27, 2007 1:31 pm

Post by Chris_147 »

Thanks for the response, but with login.php also gives a blank page.

Which configuration files do you mean?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

You can accidentally damage you config.inc.php file or any other core file.
Check source code of page in browser (CTRL+U in Firefox). There could be clue, what is damaged. Look at Apache log and/or testlink log if nothing here.
Chris_147
TestLink user
Posts: 7
Joined: Thu Sep 27, 2007 1:31 pm

Post by Chris_147 »

I really can't get it working.
The problem with the automatic install is that I don't have the 'root' password for the database. I can make a database user in Plesk, but if I provide that user to the TestLink installer, it complains it can't make another user.
But all dependencies are correct: MySQL, Apache, ...

So I follow the manual steps, what I did:
* Download testlink 1.70 from SF and unzip on my Windows machine.
* Upload to server with FileZilla. I have a seperate subdomain for testlink, so testlink.myserver.com and I upload it in testlink/httpdocs/
* Create db and user for it
* Create tables and populate db with PhpMyAdmin, goes OK.
* Create config_db.inc.php like in manual but with my parameters (host can still be localhost?) and upload to root of subdomain
* Change properties of templates_c
* open testlink.myserver.com/login.php

I get a blank page, no source code.
I also downloaded the testlink dir again and compared to my zip file, no differences, some binary differences, but text was always the same.

Where can I find the logs of testlink?
As said before, I don't think I can see the Apache logs.
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Edit config file to set logging:

/** [LOGGING] */
/** @see logging.inc.php for more information */
$g_log_path=TL_TEMP_PATH;

/** Default level of logging (NONE, ERROR, INFO, DEBUG, EXTENDED) */
$g_log_level='DEBUG';

TL logs into template_c directory as default way.

BTW: there is a few default data, which must be added into empty DB. I'm not sure if you added it.
Chris_147
TestLink user
Posts: 7
Joined: Thu Sep 27, 2007 1:31 pm

Post by Chris_147 »

I've changed config.inc.php to DEBUG, left the path to TL_TEMP_PATH, but I see no log file appearing in gui/templates_c.
Properties of templates_c is 777, so writable.
Data was also added with testlink_create_default_data.sql

Thanks for the help, but there is really something strange going on here.
I think this server is OK, because I got Drupal, Wordpress and a Wiki running.
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

It's really strange. It will be some stupid thing.

Add some simple php page into the directory, just to be sure that Apache has correct settings for the directory.
Check information about the blank page in browser. Is really no character sent by server?
Is created login smarty page in tempate_c directory.
Chris_147
TestLink user
Posts: 7
Joined: Thu Sep 27, 2007 1:31 pm

Post by Chris_147 »

havlatm wrote: Add some simple php page into the directory, just to be sure that Apache has correct settings for the directory.
I added a Hello World page, and that works:
<?php echo '<p>Hello World</p>'; ?>
And on the same server/webspace I have other programs running such as Drupal, Wordpress and MediaWiki, so normally everything is OK.
havlatm wrote: Check information about the blank page in browser. Is really no character sent by server?
Nothing in the page source, it also loads immediately.
havlatm wrote: Is created login smarty page in tempate_c directory.
I don't understand what you are saying here.
Templates_c is empty.
mikebuck57
TestLink user
Posts: 2
Joined: Mon Oct 29, 2007 2:51 pm

My Logfile

Post by mikebuck57 »

Was working fine all weekend. Went to login this morning, and get the blank screen, and can't login

Here is the Logfile:

[07/Oct/29 10:44:31][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 127.0.0.1
[07/Oct/29 10:44:51][DEBUG][/testlink/index.php][<unknown>][0jpvur4oh14pehu2r99abogaq7]
test /testlink/index.php
[07/Oct/29 10:44:51][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 127.0.0.1
[07/Oct/29 10:49:18][DEBUG][/testlink/index.php][<unknown>][43plp0100a7d4iittgd9enmbl5]
test /testlink/index.php
[07/Oct/29 10:49:18][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 127.0.0.1
[07/Oct/29 10:49:25][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 127.0.0.1
[07/Oct/29 10:50:01][DEBUG][/testlink/index.php][<unknown>][9emujjnlm8j9j9c2rf8bprdae5]
test /testlink/index.php
[07/Oct/29 10:50:02][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 127.0.0.1
[07/Oct/29 10:50:09][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 127.0.0.1

Please help!
laqs22
TestLink user
Posts: 7
Joined: Wed Oct 31, 2007 5:19 pm

same behavior

Post by laqs22 »

Hi Chris_147,

Seems I am not the only one with that strange behavior, I installed also the Testlink version 1.7 and when I finish a successful install I'm redirected to a blank page, from this moment there is no way to see any other page different that the ones at install folder.

Seems like this is a bug happening for some reason with a Webserver, in my case I'm using a Linux Apache 5.x, PHP might be missing something that is required.

Also take a look if you can to the apache server log. I got a strange error related to lang_api.php
Please if you get it working let me know.
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Could you add this strange log about lang_api.php. I still have no idea what should be wrong. It could depends on apache configuration.
The log file of testlink also get no useful information.
laqs22
TestLink user
Posts: 7
Joined: Wed Oct 31, 2007 5:19 pm

Testlink1.6.3 installs well, but Testlink1.7.0 don't

Post by laqs22 »

havlatm wrote:Could you add this strange log about lang_api.php. I still have no idea what should be wrong. It could depends on apache configuration.
The log file of testlink also get no useful information.

Thx havlatm
Listen up, our IT department told me that in the past they installed Testlink1.6.3 successfully so I decided to change to that previous version... and it works well!...

Seems like something was changed from 1.6.3 to 1.7 or 1.7.1 and that makesd the installation to fail.

I'll be attaching the server log ASAP.
laqs22
TestLink user
Posts: 7
Joined: Wed Oct 31, 2007 5:19 pm

Server log with lang_api.php error

Post by laqs22 »

Here is the log with the error:

[Fri Nov 02] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to undefined function iconv() in /home/qa/site/lib/functions/lang_api.php on line 54
[Fri Nov 02] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/qa/site/favicon.ico
[Fri Nov 02] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to undefined function iconv() in /home/qa/site/lib/functions/lang_api.php on line 54, referer: http://<HOSTNAME>/install/installNewDB.php

Any help... appreciated, thx
Post Reply