So far though, even the basic setup header code does not seem to work in 3.2.1. Or rather it does, but even a fairly simple PHP command later in the page fails. Here's a really simplified test page which doesn't even try to do anything with the content yet, it just sets up the system:
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require_once($phpbb_root_path . 'common.' . $phpEx);
require_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
require_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
require_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
?>
<!DOCTYPE html>
<html>
<head>
<title>phpBB Test Page</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
</head>
<body>
<h1>Test with phpBB 3.0.14 forum (using folder /forum/)</h1>
<p>
<?php
echo 'Test of PHP echo command. ' ;
echo 'Filedate = ' . date("Y-m-d",filemtime(substr($_SERVER['PHP_SELF'],1))) ;
?>
</p>
</body>
</html>
./forum/
as shown above) the simple test page behaves as expected. See results at http://www.portorleans.org/test_3.0.phpHowever when I point that first line to the new 3.2.1 system (
./forumtest
) I get an error as soon as any subsequent PHP code tries to do anything useful. See results at http://www.portorleans.org/test_3.2.phpAny thoughts as to what I need to change for use with 3.2.1? If I can't get even that basic test snippet working there's not much point looking at the more complex stuff yet...
Andre