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.
Related Articles
- 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 2
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 – Part 1
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working
- Google Phone (or GPhone) in the Making?
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 – Part 4
- Making Easy Money While Surfing the Net
- Making the Right Choice: LCD TV or Plasma TV?
- Fix Windows Vista Search Indexer Has Stopped Working with KB952093
- Nintendo Wii Owners Making CelebriMiis










































July 5th, 2009 06:30
Topic of your article is very interesting, i have bookmarked your blog
regards
fluflaken
April 11th, 2009 14:01
I have been considering switching from TV to another service like satellite. I know there at a lot of options out there and wanted some advice on what I should look for or purchase. It’s sad, but I am spending about 125 dollars a month on my tv service and I am getting less than 70 channels. I would love more channels, hd television, and a tivo/tv recording box. Any ideas or suggestions would be helpful.
March 12th, 2009 03:16
I’m new here! looking forward to having a great time here!
December 16th, 2008 17:59
ehi!
qualcuno di voi conosce un concorso online per
diventare una modella?
December 3rd, 2008 09:20
Hello everyone…
iam pretty new to poker, mostly playing at home with friends. now i also want to play online…so my question is. where do you play onlne? any hints you got for me, what should i look for?
Greetings and thx to everyone… [img]http://www.einfachpokern.de/smile.gif[/img]
December 2nd, 2008 12:15
Hi. I on numerous occasions scan this forum. This is the head culture undisputed to ask a ridiculous.
How numberless in this forum are references progressive behind, knavish users?
Can I bank all the advice that there is?
October 5th, 2008 15:46
I got rid of my cable connection recently and went “internet only.” I know about those places like Hulu and such where you can watch pre-recorded TV shows. But I’m looking for a service where you can watch actual TV channels live as a replacement for cable. You know, where you can flip through channels of the big broadcasters and see TV shows and sports games as they’re broadcasted.
What do you guys think?
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
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
November 15th, 2007 22:28
download poker gratuito…
Ogni software Poker casino poker…
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]
August 31st, 2007 07:26
Hello
G’night
April 17th, 2007 16:03
I think, that is interesting for all.
July 25th, 2006 03:15
It doesn’t work. Shame.