Windows XP
phpnuke 7.8 unpatched
Apache2
MySql 5.0.19
PHP 5.1.2
PHP test file works and gives me the phpinfo
Config.php has the line:
ini_set('display_errors','1');
possible mysql problems or php? I have no idea...
I have ran phpnuke site under same setup before like a couple of years ago and had no problems.. so I must be missing something simple.
I know blank page posts are getting old for you experts, but after searching the several posts and looking for a simular problem, I come up a dead end everytime so this is my last resort of sorts. Im thinking that my problem may be with php or mysql but not for sure. I look at the typical setup for this and my files fit the templates and all the paths are correct.
I have the exact same problem described, but it's on a Windows server with php 4.3 and mySQL 4.1 (and php-nuke 7.8 )
In all pages's html, everything is fine except nothing after </head> is output. Is there any resolution to this problem?
To note: the admin pages worked correctly until I changed a few config variables, like the site title etc. After that, nothing past </head> is output in either the admin page, or index.php or any other page on the site. What is output in the header is correct, ie the site title is set properly. I have also enabled the error reporting by the ini_set('display_errors','1'); but still nothing after </head> is output in the page source, and all pages remain blank.
banners.php missing...is also the cause of blank white pages. From my personnel experience.
Some were along the line banners.php was taken out of the zip file phpnuke 7.8, 7.9 maybe earlier. I upgraded from 7.5 to 7.9 when this problem occured was getting no errors just a blank page and no other pages were woking. I went back and looked at my old installation of 7.5 and sure enough banners.php was not in the files. So I created one with just this
Code:
<?php ?>
and named it banners.php and everything came to life after that.
Now I do not run Banners on my site so if you do or going to want to I suggest other means. I tryed and used the banners.php from 7.5 in 7.9 version it worked fine as well, but again I do not run banners and can not tell you if 7.5 banners.php will run your banners in 7.9. However it solved the blank page problem
GPR Nuke Cadet
Joined: Apr 17, 2008
Posts: 2
Posted:
Thu Apr 17, 2008 1:59 am
Sorry but I cannot find $display_errors = false;
I have copied the config page.
<?php
######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2007 by Francisco Burzi
# http://phpnuke.org
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################
if (stristr(htmlentities($_SERVER['PHP_SELF']), "config.php")) {
Header("Location: index.php");
die();
}
######################################################################
# Database & System Config
#
# dbhost: SQL Database Hostname
# dbuname: SQL Username
# dbpass: SQL Password
# dbname: SQL Database Name
# $prefix: Your Database table's prefix
# $user_prefix: Your Users' Database table's prefix (To share it)
# $dbtype: Your Database Server type. Supported servers are:
# MySQL, mysql4, sqlite, postgres, mssql, oracle,
# msaccess, db2 and mssql-odbc
# Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey: Security Key. CHANGE it to whatever you want, as long
# as you want. Just don't use quotes.
# $subscription_url: If you manage subscriptions on your site, you
# must write here the url of the subscription
# information/renewal page. This will send by
# email if set.
# $admin_file: Administration panel filename. "admin" by default for
# "admin.php". To improve security please rename the file
# "admin.php" and change the $admin_file value to the
# new filename (without the extension .php)
######################################################################
/**********************************************************************/
/* You finished to configure the Database. Now you can change all */
/* you want in the Administration Section. To enter just launch */
/* your web browser pointing it to http://xxxxxx.xxx/admin.php */
/* (Change xxxxxx.xxx to your domain name, for example: phpnuke.org) */
/* */
/* Remember to go to Preferences section where you can configure your */
/* new site. In that menu you can change all you need to change. */
/* */
/* Congratulations! now you have an automated news portal! */
/* Thanks for choose PHP-Nuke: The Future of the Web */
/**********************************************************************/
// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
$prefix = empty($user_prefix) ? $prefix : $user_prefix;
$reasons = array("As Is","Offtopic","Flamebait","Troll","Redundant","Insighful","Interesting","Informative","Funny","Overrated","Underrated");
$badreasons = 4;
/* If you want to use the IMG tag in your HTML code, to include images in News for example, you must use the following line and comment the old $AllowableHTML */
/* $AllowableHTML = array("img"=>2,"b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1); */
/* or just include "img"=>2 in the $AllowableHTML array bellow. This feature isn't included by default due to possible security issues */
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);
$CensorList = array("Rainbow Brite","cunt","person","Rainbow Brite","pussy","Rainbow Brite","c0ck","cum","twat","clit","Rainbow Brite","fuk","fuking","motherfucker");
$tipath = "images/topics/";
//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://phpnuke.org/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT PHP-NUKE'S AUTHOR WRITTEN AUTHORIZATION
// THE USE OF COMMERCIAL LICENSE MODE FOR PHP-NUKE HAS BEEN APPROVED BY THE FSF (FREE SOFTWARE FOUNDATION)
// YOU CAN REQUEST INFORMATION ABOUT THIS TO GNU.ORG REPRESENTATIVE. THE EMAIL THREAD REFERENCE IS #213080
// YOU'RE NOT AUTHORIZED TO CHANGE THE FOLLOWING VARIABLE'S VALUE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://phpnuke.org/modules.php?name=Commercial_License)
//***************************************************************
$commercial_license = 0;
movieman Lieutenant
Joined: Feb 29, 2004
Posts: 261
Location: New York
Posted:
Thu Apr 17, 2008 11:08 am
If you read Evaders post you would know,
Quote:
If you are using the Patched files
in config.php
Code:
$display_errors = false;
Change false to true to enable error reporting
Using non-Patched phpNuke
depending on your version, you may have this code in config.php
If not, add it
Code:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum