Blank install screen!

Installing and configuring Tera-WURFL on your server.

Blank install screen!

Postby ohdang888 » Thu Apr 28, 2011 10:08 pm

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!
ohdang888
 
Posts: 8
Joined: Thu Apr 28, 2011 10:05 pm

Re: Blank install screen!

Postby kamermans » Thu Apr 28, 2011 10:15 pm

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");
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank install screen!

Postby kamermans » Thu Apr 28, 2011 10:19 pm

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.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank install screen!

Postby ohdang888 » Thu Apr 28, 2011 11:14 pm

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?
ohdang888
 
Posts: 8
Joined: Thu Apr 28, 2011 10:05 pm

Re: Blank install screen!

Postby kamermans » Thu Apr 28, 2011 11:16 pm

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>
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank install screen!

Postby kamermans » Thu Apr 28, 2011 11:22 pm

If the spam filter blocks your reply you may need to PM it to me
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank install screen!

Postby ohdang888 » Thu Apr 28, 2011 11:33 pm

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
ohdang888
 
Posts: 8
Joined: Thu Apr 28, 2011 10:05 pm

Re: Blank install screen!

Postby kamermans » Thu Apr 28, 2011 11:42 pm

Excellent - the last line shows that the MySQLi extension is not installed or not enabled. Are you on Windows or Linux?
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank install screen!

Postby ohdang888 » Thu Apr 28, 2011 11:47 pm

Linux CentOs
ohdang888
 
Posts: 8
Joined: Thu Apr 28, 2011 10:05 pm

Re: Blank install screen!

Postby kamermans » Thu Apr 28, 2011 11:52 pm

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.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Next

Return to Installation / Configuration

Who is online

Users browsing this forum: No registered users and 2 guests

cron