Is vBulletin version 4.2.4 Beta 3 or 4.2.5 compatable to run on PHP 7.0 ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    Is vBulletin version 4.2.4 Beta 3 or 4.2.5 compatable to run on PHP 7.0 ?

    HI

    What version of vBulletin 4 works with PHP 7+ ?

    Currently I have the following setup running vBulletin 4.2.4 Beta 3

    Server Type Linux
    Web Server Apache (cgi-fcgi)
    PHP 7.0.10
    PHP Max Post Size 8.00 MB
    PHP Maximum Upload Size 2.00 MB
    PHP Memory Limit 128.00 MB
    MySQL Version 10.0.27-MariaDB
    MySQL Packet Size 256.00 MB

    All seems fine except when I post a message that includes a url eg: http://www.cnn.com or www.cnn.com I get the following error:

    Function name must be a string on line 1587 in /home/audiforu/public_html/includes/class_bbcode.php
    #0 /home/audiforu/public_html/includes/class_bbcode.php(1042): vB_BbCodeParser->parse_array(Array, 1, 1, 0)
    #1 /home/audiforu/public_html/includes/class_bbcode.php(563): vB_BbCodeParser->parse_bbcode('[url]www.cnn.co...', 1, 1, 0)
    #2 /home/audiforu/public_html/includes/class_bbcode.php(477): vB_BbCodeParser->do_parse('[url]www.cnn.co...', 0, 1, 1, 1, true, false, NULL, false, 1)
    #3 /home/audiforu/public_html/includes/class_dm.php(1597): vB_BbCodeParser->parse('[url]www.cnn.co...', 8, 1, true)
    #4 /home/audiforu/public_html/includes/class_dm_threadpost.php(483): vB_DataManager->verify_image_count('pagetext', 'allowsmilie', 8, 'post')
    #5 /home/audiforu/public_html/includes/class_dm_threadpost.php(732): vB_DataManager_ThreadPost->pre_save_post(true)
    #6 /home/audiforu/public_html/includes/functions_newpost.php(616): vB_DataManager_Post->pre_save()
    #7 /home/audiforu/public_html/newreply.php(451): build_new_post('reply', Array, Array, Array, Array, Array)
    #8 {main}


    What is the issue ?

    If I run the above setup with PHP 5.6 it works fine ....

    ----------------------------------------------------------

    Using vBulletin 4.2.5 Alpha 2 with PHP 7 I cannot get anything other than the following error being displayed:

    Call to undefined function mb_detect_encoding() on line 958 in /home/audiforu/public_html/includes/functions.php
    #0 /home/audiforu/public_html/includes/functions_forumlist.php(281): fetch_censored_text('Skoda Kodiaq Wo...')
    #1 /home/audiforu/public_html/includes/functions_forumlist.php(230): construct_forum_bit('1', 2, 0)
    #2 /home/audiforu/public_html/forum.php(611): construct_forum_bit(-1)
    #3 /home/audiforu/public_html/index.php(43): require('/home/audiforu/...')
    #4 {main}

    Once I restore PHP back to 5.6 and use vBulletin 4.2.5 Alpha 2 I can access the ACP but any page on the forum displays the following error:

    Fatal error: Call to undefined function mb_detect_encoding() in /home/audiforu/public_html/includes/functions.php on line 958

    I want to run php 7 as to increase the forum speed...

    Please let me know what i need to do to get this to work

    Thanks in advance
    Last edited by Guest; Wed 31 Aug '16, 1:31am.
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    Only 4.2.5 adds php 7 compatibility, however it's still in alpha at this stage and is made available only for testing purposes.

    It will mostly work but some issues may be encountered due to the nature of it being an alpha release.

    4.2.4 is not compatible with php 7.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Guest

      #3
      Thanks Mark so 4.2.5+ is for PHP 7+

      Im now running:

      vBulletin 4.2.5 Alpha 2 with PHP 7

      I cannot get anything other than the following error being displayed:

      Call to undefined function mb_detect_encoding() on line 958 in /home/audiforu/public_html/includes/functions.php
      #0 /home/audiforu/public_html/includes/functions_forumlist.php(281): fetch_censored_text('Skoda Kodiaq Wo...')
      #1 /home/audiforu/public_html/includes/functions_forumlist.php(230): construct_forum_bit('1', 2, 0)
      #2 /home/audiforu/public_html/forum.php(611): construct_forum_bit(-1)
      #3 {main}

      Any suggestions ?
      Last edited by Guest; Wed 31 Aug '16, 1:56am.

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24287
        • 6.0.X

        #4
        Originally posted by Rory2000
        Thanks Mark so 4.2.5+ is for PHP 7+

        Im now running:

        vBulletin 4.2.5 Alpha 2 with PHP 7

        I cannot get anything other than the following error being displayed:

        Call to undefined function mb_detect_encoding() on line 958 in /home/audiforu/public_html/includes/functions.php
        #0 /home/audiforu/public_html/includes/functions_forumlist.php(281): fetch_censored_text('Skoda Kodiaq Wo...')
        #1 /home/audiforu/public_html/includes/functions_forumlist.php(230): construct_forum_bit('1', 2, 0)
        #2 /home/audiforu/public_html/forum.php(611): construct_forum_bit(-1)
        #3 {main}

        Any suggestions ?
        Would need reporting in the tracker as an issue with 4.2.5.
        Paul M will then look into it.

        It's only an alpha so as mentioned earlier, there are likely to be issues.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • Paul M
          Former Lead Developer
          vB.Com & vB.Org
          • Sep 2004
          • 9886

          #5
          Thats a problem with your php set-up.
          You dont have the mbstring extension enabled, contact your host, or enable it yourself if you are able, its a pretty standard requirement these days.
          Baby, I was born this way

          Comment

          • Guest

            #6
            Hi Paul

            Please confirm where i need to change... thanks...

            This is an extract from the ini php 7.0 file:

            [mbstring]
            ; language for internal character representation.
            ; This affects mb_send_mail() and mbstring.detect_order.
            ; http://php.net/mbstring.language
            ;mbstring.language = Japanese

            ; Use of this INI entry is deprecated, use global internal_encoding instead.
            ; internal/script encoding.
            ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
            ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
            ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
            ;mbstring.internal_encoding =

            ; Use of this INI entry is deprecated, use global input_encoding instead.
            ; http input encoding.
            ; mbstring.encoding_traslation = On is needed to use this setting.
            ; If empty, default_charset or input_encoding or mbstring.input is used.
            ; The precedence is: default_charset < intput_encoding < mbsting.http_input
            ; http://php.net/mbstring.http-input
            ;mbstring.http_input =

            ; Use of this INI entry is deprecated, use global output_encoding instead.
            ; http output encoding.
            ; mb_output_handler must be registered as output buffer to function.
            ; If empty, default_charset or output_encoding or mbstring.http_output is used.
            ; The precedence is: default_charset < output_encoding < mbstring.http_output
            ; To use an output encoding conversion, mbstring's output handler must be set
            ; otherwise output encoding conversion cannot be performed.
            ; http://php.net/mbstring.http-output
            ;mbstring.http_output = pass

            ; enable automatic encoding translation according to
            ; mbstring.internal_encoding setting. Input chars are
            ; converted to internal encoding by setting this to On.
            ; Note: Do _not_ use automatic encoding translation for
            ; portable libs/applications.
            ; http://php.net/mbstring.encoding-translation
            ;mbstring.encoding_translation = Off

            ; automatic encoding detection order.
            ; "auto" detect order is changed according to mbstring.language
            ; http://php.net/mbstring.detect-order
            ;mbstring.detect_order = auto

            ; substitute_character used when character cannot be converted
            ; one from another
            ; http://php.net/mbstring.substitute-character
            ;mbstring.substitute_character = none

            ; overload(replace) single byte functions by mbstring functions.
            ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
            ; etc. Possible values are 0,1,2,4 or combination of them.
            ; For example, 7 for overload everything.
            ; 0: No overload
            ; 1: Overload mail() function
            ; 2: Overload str*() functions
            ; 4: Overload ereg*() functions
            ; http://php.net/mbstring.func-overload
            ;mbstring.func_overload = 0

            ; enable strict encoding detection.
            ; Default: Off
            ;mbstring.strict_detection = On

            ; This directive specifies the regex pattern of content types for which mb_output_handler()
            ; is activated.
            ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
            ;mbstring.http_output_conv_mimetype=
            Last edited by Guest; Wed 31 Aug '16, 3:40pm.

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              That isn't going to do it. I would suggest reading this - http://www.knowledgebase-script.com/...in-php-46.html

              Please don't PM or VM me for support - I only help out in the threads.
              vBulletin Manual & vBulletin 4.0 Code Documentation (API)
              Want help modifying your vbulletin forum? Head on over to vbulletin.org
              If I post CSS and you don't know where it goes, throw it into the additional.css template.

              W3Schools &lt;- awesome site for html/css help

              Comment

              Related Topics

              Collapse

              Working...