Page 1 of 1

updatedb.php failing with blank screen

PostPosted: Thu Mar 24, 2011 8:47 am
by tkroll
Hello,

updatedb.php is failing with no errors. Don't see anything in error logs either. install.php exectues fine. Tables are created.
DATADIR chmod 777 and chgrp to nobody:nobody

Noticed updatedb.php didn't have the trailing ?>. Added that but it didn't help. Also ran the file from the shell and it
give Segmentation Fault.

I'm on a dedicated Liquid Web server.

Any ideas?

Thanks.

Re: updatedb.php failing with blank screen

PostPosted: Thu Mar 24, 2011 10:33 pm
by kamermans
A segfault is a serious error, can you try the suggestion in this post:? viewtopic.php?f=2&t=97#p441

I have heard that some people have a segfault when using XMLReader.

The trailing ?> is not required and is no longer recommended since it makes it easy to accidentally add whitespace to the script output.

Re: updatedb.php failing with blank screen

PostPosted: Fri Mar 25, 2011 3:47 am
by tkroll
Thanks for the quick response.

Your first response to OP fixed it.

Cheers,
Ty

Re: updatedb.php failing with blank screen

PostPosted: Fri Apr 29, 2011 12:09 am
by kamermans
If you don't mind helping me narrow this problem down, can you please paste this code into a file on the server you were having problems with and visiting it in a browser, then replying with the result? I'm trying to narrow down which versions of XMLReader / libxml are causing the fault.
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: updatedb.php failing with blank screen

PostPosted: Fri Apr 29, 2011 3:41 am
by tkroll
PHP 5.3.6
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.7.8

libxml
libXML support active
libXML Compiled Version 2.7.8
libXML Loaded Version 20708
libXML streams enabled

SimpleXML
Simplexml support enabled
Revision $Revision: 308262 $
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 /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock
mysql.connect_timeout 60 60
mysql.trace_mode Off Off
mysql.allow_local_infile On On

mysqli
MysqlI Support enabled
Client API library version 5.0.92
Active Persistent Links 0
Inactive Persistent Links 0
Active Links 0
Client API header version 5.0.92
MYSQLI_SOCKET /var/lib/mysql/mysql.sock

Directive Local Value Master Value
mysqli.max_links Unlimited Unlimited
mysqli.max_persistent Unlimited Unlimited
mysqli.allow_persistent On On
mysqli.default_host no value no value
mysqli.default_user no value no value
mysqli.default_pw no value no value
mysqli.default_port 3306 3306
mysqli.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock
mysqli.reconnect Off Off
mysqli.allow_local_infile On On

Re: updatedb.php failing with blank screen

PostPosted: Fri Apr 29, 2011 9:56 am
by kamermans
Thanks for the info tkroll!