Making phpBB2 working with PHP5
Officially, phpBB 2 (as of this writing, up to version 2.0.17) is not supporting PHP 5. If you install PHP 5, and use it to run phpBB, you will encounter the following symptoms and errors:
- You cannot post message - When you want to post new topic or reply to a topic, after writing your message, when you click “Submit”, a blank page or screen or error message is shown with address bar showing posting.php, instead of posting confirmation message.
- You unable to search - When you want to search by clicking oh “Search”, no search results are been returned, or a black page or screen, or error message is shown.
To enable PHP 5 to work properly with phpBB, some changes to the phpBB source code needs to be done. Just follow steps as below:
OPEN
admin/admin_ug_auth.phpFIND
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) )REPLACE WITH
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id]) )FIND
( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) ||REPLACE WITH
( !isset($auth_access[$forum_id][$auth_field]) && empty($change_acl_list[$forum_id][$auth_field]) ) ) ||
Finally, some changes are needed so that functions that get called with functions as parameters are not called ‘by reference’ with functions:
OPEN
includes/functions_post.phpFIND
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)REPLACE WITH
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length)OPEN
includes/functions_search.phpFIND
function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)REPLACE WITH
function clean_words($mode, $entry, &$stopword_list, &$synonym_list)FIND
function split_words(&$entry, $mode = ‘post’)REPLACE WITH
function split_words($entry, $mode = ‘post’)
For the above, the changes involved are some parameters have been stripped off the “&” sign.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1
- Using phpMyAdmin for Effective MySQL Management in Windows XP
- Job Hunting - Working in Google or Microsoft
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4
- Retro Wireless USB Microphone
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 2
- Google Browser Sync for Firefox Review by iTWire

































July 25th, 2006 03:15
It doesn’t work. Shame.
April 17th, 2007 16:03
I think, that is interesting for all.
August 31st, 2007 07:26
Hello
G’night
September 28th, 2007 02:40
Amerikanische Firma „ACG Logistics“ sucht nach Mitarbeiter in Europa fuer die Arbeit im Logistikbereich. Interessanter Job mit guter Verdienstmoeglichkeit.
[b]Schicken Sie bitte Ihre Bewerbung an info@acglogistics.biz[/b]
November 15th, 2007 22:28
download poker gratuito…
Ogni software Poker casino poker…
December 3rd, 2007 21:28
try this for working phpbb2 with php5
extension.inc
$HTTP_GET_VARS=$_GET;
$HTTP_POST_VARS=$_POST;
$HTTP_COOKIE_VARS=$_COOKIE;
that’s all… works now fine with php5
July 15th, 2008 19:18
Hi everybody
Just trapped on a little tool to slice website images.
Quick in preparing ready html from simple single-image site design.
Program is rather crappy and cheap (especially comparing to similar function in PhotoShop).
But there is a trick! Just look what books come as a bonus:
Search Engine Optimization: An Hour a Day
Web Design in a Nutshell, 3rd Edition
Webmaster in a Nutshell, 3rd Edition
etc…
I wonder how $270 priced books can be sold for just 20 dollars…
Anyway here’s link: http://www.sliceimage.com/
Hope these books will help you as well.
Regards,
Mark