Blank pages after installing 3.0.5 or 2.11.10

Questions & Problems about Installing or Upgrading with Version 3 phpList.
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

Blank pages after installing 3.0.5 or 2.11.10

Postby tog » 10:49pm, Sun 13 Apr, 2014

Hello, I'm trying to get 3.0.5 going and I can only get a blank page out of /index.php or /admin/index.php. I can't get any basic errors or debug info from the application or from php no matter what I try, including editing index.php or config.php to turn error_reporting to -1 or 63, php.ini settings to turn all forms of error reporting and display on, etc.

I've unpacked 3.0.5 and used a working config.php from 2.10.x and blank page. I've unpacked everything as complete untouched defaults into /lists and blank page.

2.10.x works perfectly fine on this server without any issues, 2.11.x and 3.0.x will do nothing but silently display a blank page. Our php_linktrack table size is getting completely out of hand and I don't want to have to constantly manually expire things from it so I really want to update beyond 2.10.

This is php 5.4.21 running under mod_fcgid, mysql 5.6.14, apache 2.4.6. I've attached my phpinfo() output.

SO, due to complete lack of information, I've turned on Xdebug and gotten traces of the following two situations (also should be attached to this post):
1) Lightly configured config.php with phplist 3.0.5 installed the way I'd normally install phplist which is in to the docroot and config.php having $pageroot = ''; and $adminpages = '/admin'; and database info populated, etc.

2) 100% complete defaults, unpacked into /lists with all files untouched.

Uploaded attachments seem to be silently discarded here on this forum, so here's the link to the three files of interest:
http://tog.net/phplist1/

From the traces, it seems like the php script just fizzles out and stops within admin/init.php after running through unregister_globals.php and magic_quotes.php.
tog
phpList newbie
 
Posts: 3
Joined: 10:22pm, Sun 13 Apr, 2014

Re: Blank pages after installing 3.0.5 or 2.11.10

Postby Dragonrider » 6:34am, Mon 14 Apr, 2014

A blank page usually means that the config.php has an error in it, more often than not, a missing semi-colon or missing or mis-matched set of quotes.

I know you say docroot is where you have your phpList install, but is the lists directory there?

Can you share the URL to the install, even if it's just domain.com/lists for example?
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Blank pages after installing 3.0.5 or 2.11.10

Postby tog » 8:10am, Mon 14 Apr, 2014

I understand the usual cause is config.php being messed up, which is why I've also tested with 100% untouched default everything, expecting an initial complaint from the phplist app telling me no database connection or something along those lines. But, blank white page. Permissions are fine, all files 644 and directories 755. The Xdebug traces which you can find that that URL I posted show phplist's /lists/index.php running through the usual motions, but then ceasing within init.php. Running CLI php -e config.php confirms no open quotes or missing semicolon errors.

The docroot is /disk1/sites/domain.com/httpdocs/. When testing with untouched defaults, I place the contents of public_html/lists/ into /disk1/sites/domain.com/httpdocs/lists/ which translates to URL http://domain.com/lists/ which means I'm using all of the URL and path defaults that phplist expects. The second identical Xdebug trace output I provided is from a /lists/index.php run-through with untouched 100% defaults from the dist file. It acts no differently from a lightly-configured config.php saying everything is contained within docroot rather than docroot/lists/.

I can always unpack a fresh new 2.10.19 and everything comes right up no problem in any configuration, but unpacking a fresh new 2.11.10 or 3.0.5 gets me nothing but blank white page no matter what I try.

As an aside, my usual setup is to place the contents of public_html/lists/* into /disk1/sites/domain.com/httpdocs/ and configure $pageroot and $adminpages in config.php appropriately, and that works fine with phplist 2.10.x, but that's neither here nor there at this point since I'm also experiencing the blank white page issue with untouched default dist files which are free of any error introduced by me.
tog
phpList newbie
 
Posts: 3
Joined: 10:22pm, Sun 13 Apr, 2014

Re: Blank pages after installing 3.0.5 or 2.11.10

Postby Dragonrider » 10:07am, Mon 14 Apr, 2014

Have you set the install directory to lists.domain.com? If so, you will I believe need to set $pageroot="/lists"; in your config.php file, under 3.0.5 you don't normally need to set $adminpath

Oh, and just out of curiosity, what is your site ErrorDocument 404 set to please?
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Blank pages after installing 3.0.5 or 2.11.10

Postby tog » 7:30pm, Mon 14 Apr, 2014

Dragonrider wrote:Have you set the install directory to lists.domain.com? If so, you will I believe need to set $pageroot="/lists"; in your config.php file, under 3.0.5 you don't normally need to set $adminpath

Oh, and just out of curiosity, what is your site ErrorDocument 404 set to please?


Sorry, but I'm not sure what precisely you mean by setting the install directory. The only ways I am aware of to set anything about where phplist is installed are $pageroot for the relative URL and $adminpath also for the relative URL.

In order to satisfy this question as best as I can, I've started anew by moving public_html/lists/ over to /disk1/sites/domain.com/httpdocs/lists/ (where /disk1/sites/domain.com/httpdocs/ is the docroot) and made a single change to the distributed config/config.php, simply adding: $pageroot = "/lists" ; to the end of the file.

This had no effect, /lists/index.php and /lists/admin/index.php are still a blank white page.

Our ErrorDocument 404 is unset so it's handled by the default internal apache simple hardcoded message. I can confirm this functions as expected by trying a URL that doesn't exist. The Xdebug output I linked to clearly shows that /lists/index.php does begin to run as one would expect and stops somewhere in init.php.

So, perhaps I was tired yesterday but the Xdebug output should have easily directed me to do what I just did... I just made progress by commenting out the next line, 205, in admin/init.php:

## remember the length of a hashed string
#$hash_length = strlen(hash(ENCRYPTION_ALGO,'some text'));

Now my fresh install of 3.0.5 does what I would have expected it to do, which is to complain about the database connection.

So, testing hash() on my system I see PHP Fatal error: Call to undefined function hash() in /disk1/sites/domain.com/httpdocs/test.php on line 2
PHP Stack trace:
PHP 1. {main}() /disk1/sites/domain.com/httpdocs/test.php:0

FreeBSD's php from ports is rather silly and almost every basic thing included in php core like hash() is broken out into ports/security/php5-hash for example. Anyway, I added hash() and put init.php back the way it comes and now I am not getting a blank white page. I do wish debug/error messages were not so completely suppressed in phplist, it would have taken a lot less effort to track this down.

Thanks for your help, though!
tog
phpList newbie
 
Posts: 3
Joined: 10:22pm, Sun 13 Apr, 2014


Return to Installing and Upgrading

Who is online

Users browsing this forum: No registered users and 2 guests