Hello! My first post here and I'm crying for help 🙁
I updated PHP (as the subject says) and encountered a problem where all my php pages would come up completely blank. I searched for an answer and found it: all I had to do was replace the new php.ini with my original php.ini (yeay!).
I thought everything was fixed, I was wrong. One of my pages still won’t display anything; no errors either (unless I purposely create them). The page is comprised of includes (a header, body, and footer). I believe it is the header that is creating the problem since when I call the header separately nothing shows but when I call the others, they work.
I am at a loss; hopefully it’s something simple that I have forgotten…
Here’s the header (php) code:
if (!defined('IN_PHPBB')) {
define('IN_PHPBB', true);
}
$phpbb_root_path = 'beta2/';
if (!file_exists($phpbb_root_path . 'extension.inc'))
{
die ('<tt><b>BP6.Com Portal Error:</b>
$phpbb_root_path is wrong.</tt>');
}
include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.'.$phpEx);
include_once ($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include_once ($phpbb_root_path . 'portal/common.'.$phpEx);
include_once ($phpbb_root_path . 'portal/stats.'.$phpEx);
include_once ($phpbb_root_path . 'portal/users.'.$phpEx);
include_once ($phpbb_root_path . 'portal/polls.'.$phpEx);
include_once ($phpbb_root_path . 'portal/posts.'.$phpEx);
include_once ($phpbb_root_path . 'portal/forums.'.$phpEx);
include_once ($phpbb_root_path . 'portal/toplist_function.'.$phpEx);
// start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
// span pages - we need to set the page offset
if (isset($HTTP_GET_VARS['start']) or isset($HTTP_POST_VARS['start'])) {
$CFG['posts_span_pages_offset'] = isset($HTTP_GET_VARS['start']) ? $HTTP_GET_VARS['start'] : $HTTP_POST_VARS['start'];
}
$files_latest = toplist_newest();
$files_downloads = toplist_download();
$new_posts = phpbb_fetch_new_posts();
$stats = phpbb_fetch_stats();
$top_poster = phpbb_fetch_top_poster();
$random_user = phpbb_fetch_random_user();
$forums = phpbb_fetch_forums();
$member = phpbb_fetch_users();
$poll = phpbb_fetch_poll(38);
$download = phpbb_fetch_topics(1);
$CFG['posts_trim_topic_number'] = 15;
$recent = phpbb_fetch_posts(null, POSTS_FETCH_LAST);
// posts
$CFG['posts_trim_topic_number'] = 40;
$CFG['posts_span_pages'] = false;
$CFG['posts_limit'] = 25;
$news = phpbb_fetch_posts(22);
$news2 = phpbb_fetch_posts(50);
As you can see, it’s porting information from my phpBB message board for use on my index.
This is my current running php.ini file (thought it may help to post it)
[code=php]
engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = Off
output_buffering = Off
output_handler =
zlib.output_compression = Off
implicit_flush = Off
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_ TZ
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
highlight.string = #CC0000
highlight.comment = #FF9900
highlight.keyword = #006600
highlight.bg = #FFFFFF
highlight.default = #0000CC
highlight.html = #000000
expose_php = On
max_execution_time = 240 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
track_errors = On
;error_prepend_string = "<font color=ff0000>"
;error_append_string = "</font>"
error_log = phperrors.log
;error_log = syslog
warn_plus_overloading = Off
;arg_separator.output = "&"
;arg_separator.input = ";&"
variables_order = "EGPCS"
register_globals = Off
register_argc_argv = On
post_max_size = 8M
gpc_order = "GPC"
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
include_path = ".:/php/includes:/usr/share/php"
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
doc_root =
user_dir =
extension_dir = /usr/lib/php4
enable_dl = On
file_uploads = On
;upload_tmp_dir =
upload_max_filesize = 2M
allow_url_fopen = On
;from="john@doe.com"
;extension=cpdf.so
;extension=curl.so
;extension=cybercash.so
;extension=db.so
;extension=dbase.so
;extension=domxml.so
;extension=dotnet.so
;extension=exif.so
;extension=fdf.so
extension=ftp.so
;extension=gd.so
extension=gettext.so
;extension=ifx.so
extension=imap.so
;extension=interbase.so
;extension=java.so
extension=ldap.so
extension=mcrypt.so
extension=mhash.so
;extension=mssql65.so
;extension=mssql70.so
extension=mysql.so
;extension=oas.so
extension=odbc.so
;extension=oci8.so
;extension=oracle.so
;extension=pdf.so
extension=pgsql.so
;extension=sablot.so
;extension=swf.so
;extension=sybase_ct.so
;extension=zlib.so
define_syslog_variables = Off
SMTP = localhost
sendmail_from = [email]me@localhost.com[/email]
;sendmail_path =
;logging.method = db
;logging.directory = /path/to/log/directory
;java.class.path = .\php_java.jar
;java.home = c:\jdk
;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
;java.library.path = .\
sql.safe_mode = Off
;odbc.default_db = Not yet implemented
;odbc.default_user = Not yet implemented
;odbc.default_pw = Not yet implemented
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
pgsql.allow_persistent = On
pgsql.max_persistent = -1
pgsql.max_links = -1
sybase.allow_persistent = On
sybase.max_persistent = -1
sybase.max_links = -1
;sybase.interface_file = "/usr/sybase/interfaces"
sybase.min_error_severity = 10
sybase.min_message_severity = 10
sybase.compatability_mode = Off
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
bcmath.scale = 0
;browscap = extra/browscap.ini
ifx.default_host =
ifx.default_user =
ifx.default_password =
ifx.allow_persistent = On
ifx.max_persistent = -1
ifx.max_links = -1
ifx.textasvarchar = 0
ifx.byteasvarchar = 0
ifx.charasvarchar = 0
ifx.blobinfile = 0
ifx.nullformat = 0
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
;mssql.textlimit = 4096
;mssql.textsize = 4096
;mssql.batchsize = 0
;assert.active = On
;assert.warning = On
;assert.bail = Off
;assert.callback = 0
;assert.quiet_eval = 0
ingres.allow_persistent = On
ingres.max_persistent = -1
ingres.max_links = -1
ingres.default_database =
ingres.default_user =
ingres.default_password =
pfpro.defaulthost = "test.signio.com"
pfpro.defaultport = 443
pfpro.defaulttimeout = 60
;pfpro.proxyaddress =
;pfpro.proxyport =
;pfpro.proxylogon =
;pfpro.proxypassword =
sockets.use_system_read = On
;com.typelib_file =
;com.allow_dcom = true
;printer.default_printer = ""
; tab-width: 4
; End:
I’m looking for anything, even just posts of condolences! 🙂
Thanks,
Derek