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.

Share and contribute or get technical support and help at My Digital Life Forums.



7 Responses to “Making phpBB2 working with PHP5”

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

    It doesn’t work. Shame.

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

    I think, that is interesting for all.

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

    Hello

    G’night

  4. 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]

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

    download poker gratuito…

    Ogni software Poker casino poker…

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

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

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 without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

tvants porn - phpBB2 php5 - phpbb php5 - tvants porno - porn on tvants - porn tvants - phpbb and php5 - phpbb 2 php5 - phpbb 2 php 5 - Porn on TV ANTS - tv ants porn - php5 phpbb2 - phpbb submit_post - phpbb blank page - phpbb blank page php5 - phpbb Porn - tvants server porn - phpbb2 and php5 - phpbb and php 5 - phpbb2 with php5 - phpbb with php5 - porn servers for tvants - "tvants server" porn - phpbb2 - P2P.Porno - phpbb porno - blank page PHPBB2 - apache2 php5 empty page phpbb2 - phpbb+php5 - phpbb2 turk - tvants server porno - "tvants" +porn - php5 phpbb - phpbb2 php5 hack - phpbb submit_post function - porn tv ants - running phpbb2 with PHP5 - phpbb na php5 - phpbb 2. .22 on php 5 - phpbb2. php 5 - php5 work with chinese - phpbb2 php 5 - porn servers on tvants - $HTTP_POST_VARS php5 convert to $_POST - phpbb2 search not working - porn phpbb - tvants porno - phpbb2 php5 blank screen - phpbb2 + php5 - phpbb blank -