Page 1 of 2

Blank install screen!

PostPosted: Thu Apr 28, 2011 10:08 pm
by ohdang888
I downloaded 2.1.4 and uploaded it to my site

I go to mysite.com/tera-wurfl/admin/install.php and it brings up a blank screen! No errors throw, nothing (i checked the error_log file, empty!)

So i begin testing which line is doing something, so i put die("here"); and found where the issue is:

These are the top lines:

require_once realpath(dirname(__FILE__).'/../TeraWurfl.php');
error_reporting(E_ERROR);
## "HERE" IS DISPLAYED
@$tw = new TeraWurfl();
## NOTHING!
$dir = $tw->rootdir.TeraWurflConfig::$DATADIR;
$logfile = TeraWurflConfig::$LOG_FILE;


thus, @$tw = new TeraWurl must be throwing a weird error.


Any thoughts?
Thanks!

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 10:15 pm
by kamermans
Hmm, strange. It must be throwing an exception, probably because of a missing extension or something. Can you put this line above the error_reporting() line?:

Code: Select all
ini_set("display_errors","on");

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 10:19 pm
by kamermans
Actually, can you replace @$tw = new TeraWurfl(); with this:

Code: Select all
try{
   @$tw = new TeraWurfl();
}catch(Exception $e){
   echo "Tera-WURFL threw an exception while initializing, cannot continue.<hr/>".$e->getMessage();
   die();
}


This is probably something that I should put in the production code anyway.

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:14 pm
by ohdang888
I now have
Code: Select all
require_once realpath(dirname(__FILE__).'/../TeraWurfl.php');
error_reporting(E_ERROR);

ini_set("display_errors","on");

try{
   @$tw = new TeraWurfl();
}catch(Exception $e){
   echo "Tera-WURFL threw an exception while initializing, cannot continue.<hr/>".$e->getMessage();
   die();
}


Which is once again keeping a blank screen, and an empty error_log

To make sure its uploading, etc, I editted it with a syntax error, and it threw the appropriate error.

GAH! Any other ideas?

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:16 pm
by kamermans
GAH! Thanks for helping me test this - it's been a problem for a while, but I haven't reproduced it yet :)

Can you put this in a file called something like debug.php, then visit it for me please?:

Code: Select all
<pre>
<?php
echo "PHP ".phpversion()."\n\n";
$exts = array('xml', 'libxml', 'SimpleXML', 'XMLReader', 'mysql', 'MySQLi');
foreach($exts as $extname){
   try{
      $ext = new ReflectionExtension($extname);
      echo $ext->info();
   }catch(Exception $e){
      echo "ERROR: Extension $extname is not available\n\n";
   }
}
?>
</pre>

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:22 pm
by kamermans
If the spam filter blocks your reply you may need to PM it to me

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:33 pm
by ohdang888
Code: Select all
PHP 5.2.9

xml


XML Support   active
XML Namespace Support   active
libxml2 Version   2.7.8


libxml


libXML support   active
libXML Version   2.7.8
libXML streams   enabled


SimpleXML


Simplexml support   enabled
Revision   $Revision: 1.151.2.22.2.46 $
Schema support   enabled


xmlreader


XMLReader   enabled


mysql


MySQL Support   enabled
Active Persistent Links   0
Active Links   0
Client API version   5.0.92
MYSQL_MODULE_TYPE   external
MYSQL_SOCKET   /var/lib/mysql/mysql.sock
MYSQL_INCLUDE   -I/usr/include/mysql
MYSQL_LIBS   -L/usr/lib64 -lmysqlclient


Directive   Local Value   Master Value
mysql.allow_persistent   On   On
mysql.max_persistent   Unlimited   Unlimited
mysql.max_links   Unlimited   Unlimited
mysql.default_host   no value   no value
mysql.default_user   no value   no value
mysql.default_password   no value   no value
mysql.default_port   no value   no value
mysql.default_socket   no value   no value
mysql.connect_timeout   60   60
mysql.trace_mode   Off   Off


ERROR: Extension MySQLi is not available

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:42 pm
by kamermans
Excellent - the last line shows that the MySQLi extension is not installed or not enabled. Are you on Windows or Linux?

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:47 pm
by ohdang888
Linux CentOs

Re: Blank install screen!

PostPosted: Thu Apr 28, 2011 11:52 pm
by kamermans
Well, I've got to get some sleep, but you'll need to install MySQLi, the improved MySQL Extension: http://bit.ly/iuzXRj

On Windows this mean downloading the MySQLi dll and/or enable it in your php.ini
On Linux you can usually install it with your package manager, like sudo apt-get install php5-mysqli on Debian variants.