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.php

FIND
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.php

FIND
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.php

FIND
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.


14 Responses to “Making phpBB2 working with PHP5”

  1. adult affiliate program
    July 5th, 2009 06:30
    14

    Topic of your article is very interesting, i have bookmarked your blog
    regards
    fluflaken

  2. Amourotat
    April 11th, 2009 14:01
    13

    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.

  3. edressupgamers
    March 12th, 2009 03:16
    12

    I’m new here! looking forward to having a great time here!

  4. robbiVes
    December 16th, 2008 17:59
    11

    ehi!

    qualcuno di voi conosce un concorso online per
    diventare una modella?

  5. PokerMosi
    December 3rd, 2008 09:20
    10

    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]

  6. rareenny
    December 2nd, 2008 12:15
    9

    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?

  7. eurolmece
    October 5th, 2008 15:46
    8

    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?

  8. spycrasher
    July 15th, 2008 19:18
    7

    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

  9. rk
    December 3rd, 2007 21:28
    6

    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

  10. free poker download free poker
    November 15th, 2007 22:28
    5

    download poker gratuito…

    Ogni software Poker casino poker…

  11. acghjwolhqa
    September 28th, 2007 02:40
    4

    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]

  12. Test
    August 31st, 2007 07:26
    3

    Hello

    G’night

  13. KenMarshall
    April 17th, 2007 16:03
    2

    I think, that is interesting for all.

  14. Alan
    July 25th, 2006 03:15
    1

    It doesn’t work. Shame.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

phpbb2 php5 - phpbb php5 - tvants porno - enabling php5 http_get_vars - tvants porn - $HTTP_COOKIE_VARS in php5 - php5 phpbb - porn on tvants - porn servers for tvants - servers tvants porno - phpbb2 php5 mail - install php phpbb - smtp php5 phpbb2 - Tvants porn Servers 2009 - phpbb2 plus php5 - $HTTP_COOKIE_VARS php5 - $_GET not working in php5 - porn tv tvants - working phpbb - $HTTP_POST_VARS replacement in PHP5 - phpbb2 und php5 - phpbb2 and php 5 - phpbb php5 admin "blank page" - phpbb2 admin blank - php5 $HTTP_GET_VARS[ - servers tvants porn - phpbb password is not working + php5 - phpbb2 unter php5 - PHPBB_Login + php 5 - mail phpbb php5 - "tvants porn servers" -inurl:(kelkoo|bizrate|pixmania|dealtime|pricerunner|dooyoo|pricegrabber|pricewatch|resellerratings|ebay|shopbot|comparestoreprices|ciao|unbeatable|shopping|epinions|nextag|buy|bestwebbuys) - HTTP_COOKIE_VARS php5 - phpbb forum in php5 - phpbb2 with php5 -