Announcement

Collapse
No announcement yet.

vBulletin and php 7

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

  • vBulletin and php 7

    Will vBulletin 3.8 work with php 7?

  • #2
    Originally posted by sexypbobb View Post
    Will vBulletin 3.8 work with php 7?
    Version 3.8.11 will work with php 7.1 (no higher).

    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      Sorry I didn't see the notice at the top

      Comment


      • #4
        Is there anyway I can get vBulletin 3.8.11 to work with php 7.3.11? These are the errors I am getting in install.php

        Warning
        : Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in
        /home/xxx/community/install/init.php
        on line
        114

        Warning
        : Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in
        /home/xxx/community/install/init.php
        on line
        114

        Warning
        : Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in
        /home/xxx/community/install/init.php
        on line
        114

        Comment


        • #5
          Originally posted by sexypbobb View Post
          Is there anyway I can get vBulletin 3.8.11 to work with php 7.3.11? These are the errors I am getting in install.php

          Warning
          : Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in
          /home/xxx/community/install/init.php
          on line
          114

          Warning
          : Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in
          /home/xxx/community/install/init.php
          on line
          114

          Warning
          : Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in
          /home/xxx/community/install/init.php
          on line
          114
          As stated you cannot use vBulletin 3 with php 7.3. It is not compatible. No further development work will be done on vBulletin 3 or vBulletin 4, as they are end of life. The current developed product is vBulletin 5.

          If you run vBulletin 3.8.11, you can use it with php 7.1. You can ask your host if they can provide that version of php.

          There certainly is a notice at the top of the forum explaining this, it is possible that you have dismissed the notice by clicking the 'X' on it at some point in the past.
          MARK.B | vBULLETIN SUPPORT

          TalkNewsUK - My vBulletin 5.5.6 Demo
          AdminAmmo - My Cloud Demo

          Comment


          • #6
            I got php version 7.1.33 and im getting this error on step 2

            Error description: mysqli_real_connect(): (HY000/1045): Access denied for user 'xxx'@'localhost' (using password: YES) /home/xxx/public_html/community/includes/class_core.php on line 1210
            Last edited by sexypbobb; Yesterday, 4:23am.

            Comment


            • #7
              Originally posted by sexypbobb View Post
              I got php version 7.1.33 and im getting this error on step 2

              Error description: mysqli_real_connect(): (HY000/1045): Access denied for user 'xxx'@'localhost' (using password: YES) /home/xxx/public_html/community/includes/class_core.php on line 1210
              This error indicates that you have set incorrect database credentials (usually login or password). Please double-check the credentials and check this issue again.

              Comment


              • #8
                Originally posted by sexypbobb View Post
                Is there anyway I can get vBulletin 3.8.11 to work with php 7.3.11? These are the errors I am getting in install.php

                Warning
                : Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in
                /home/xxx/community/install/init.php
                on line
                114

                Warning
                : Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in
                /home/xxx/community/install/init.php
                on line
                114

                Warning
                : Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in
                /home/xxx/community/install/init.php
                on line
                114
                These are not errors, just warnings. You can disable them by adding at the top of index.php:

                PHP Code:
                error_reporting(0);
                @
                ini_set('display_errors'0); 

                Comment


                • Wayne Luke
                  Wayne Luke commented
                  Editing a comment
                  This will not make vBulletin 3.8.11 compatible with any version of PHP higher than PHP 7.1.X.

              • #9
                This error on step 3


                Database error in vBulletin :

                Invalid SQL:

                CREATE TABLE noticecriteria (
                noticeid INT UNSIGNED NOT NULL DEFAULT '0',
                criteriaid VARCHAR(250) NOT NULL DEFAULT '',
                condition1 VARCHAR(250) NOT NULL DEFAULT '',
                condition2 VARCHAR(250) NOT NULL DEFAULT '',
                condition3 VARCHAR(250) NOT NULL DEFAULT '',
                PRIMARY KEY (noticeid,criteriaid)
                );

                MySQL Error : Specified key was too long; max key length is 1000 bytes
                Error Number : 1071
                Request Date : Wednesday, November 20th 2019 @ 06:54:36 PM
                Error Date : Wednesday, November 20th 2019 @ 06:54:39 PM
                Script : http://www.philbobb.com/community/in...nstall.php?do=
                Referrer : https://www.philbobb.com/community/i...3&emptydb=true
                IP Address : IPADDRESS
                Username :
                Classname : vB_Database_MySQLi
                MySQL Version : 5.6.43
                Server : 142.4.7.253
                User Agent :

                Comment


                • #10
                  Originally posted by sexypbobb View Post
                  MySQL Error : Specified key was too long; max key length is 1000 bytes
                  This is due to using UTF-8 and InnoDB. Each character of the varchar will take 2-4 bytes of storage. There is a variable to work around this in MySQL 5.6.3 through 5.7.7. After 5.7.7, this value is turned on by default. I believe the value is removed in 8.0.

                  https://dev.mysql.com/doc/refman/5.6...b_large_prefix

                  This requires updating the configuration files of the MySQL server. Your hosting provider or server administrator can help with this issue.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API - Full / Mobile
                  Vote for your favorite feature requests and the bugs you want to see fixed.

                  Comment


                  • #11
                    Which MySQL version do you recommend? Anything above 5.7.7?

                    Comment


                    • #12
                      MySQL 5.7.X is probably the limit. 8.0 includes new reserved words that will cause problems with vBulletin 3.8.11 and 4.2.5. I haven't tested a 3.8.11 install recently.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API - Full / Mobile
                      Vote for your favorite feature requests and the bugs you want to see fixed.

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X