3.8.1 not working after upgrading PHP to 5.3.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fking
    Senior Member
    • Nov 2002
    • 152

    3.8.1 not working after upgrading PHP to 5.3.5

    My server just got upgraded to php 5.3.5 and now the vbulletin install is giving
    "Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 49 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 101 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 105 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 113 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 124 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 128 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 136 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 205 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/init.php on line 383 Deprecated: Assigning the return value of new by reference is deprecated in /hosting/domain.com/www/includes/class_core.php on line 2529"


    Is there an quick fix for that or i should upgrade?
    Arcade Games - Some free fun for the free time!
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24359
    • 5.7.X

    #2
    You should upgrade to at least 3.8.6 as this contains fixes for newer versions of PHP5.3
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • Fking
      Senior Member
      • Nov 2002
      • 152

      #3
      Thank you! I went ahead and downloaded the latest 3.8.7 but the
      http://www.domain.com/install/upgrade.php script is giving

      "Database error in vBulletin :

      mysql_connect(): Headers and client library minor version mismatch. Headers:50027 Library:40107
      /hosting/domain.com/www/includes/class_core.php on line 311

      MySQL Error :
      Error Number :
      Request Date : Monday, March 7th 2011 @ 03:05:23 PM
      Error Date : Monday, March 7th 2011 @ 03:05:23 PM
      Script : http://www.domain.com/install/upgrade.php
      Referrer :
      IP Address :
      Username :
      Classname : vB_Database
      MySQL Version : "

      Have no idea what to do now
      Arcade Games - Some free fun for the free time!

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24359
        • 5.7.X

        #4
        Can you trey try re-downloading the ZIP file from the Members Area and re-upload all files (except install/install.php and includes/config.php.new) making sure you overwrite all files currently on your server. Also, make sure your config.php file has the correct information in it.

        Does this resolve the problem?
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        • Fking
          Senior Member
          • Nov 2002
          • 152

          #5
          i'll do that now, but just to let you know, the same happens with another install of 403 which i attempted to upgrade to 412 and got absolutely the same error from the upgrade script.
          They are on the same server :>
          Arcade Games - Some free fun for the free time!

          Comment

          • Fking
            Senior Member
            • Nov 2002
            • 152

            #6
            just did it, still the same error
            Arcade Games - Some free fun for the free time!

            Comment

            • Trevor Hannant
              vBulletin Support
              • Aug 2002
              • 24359
              • 5.7.X

              #7
              Looking at the MySQL site, I'd suggest that this is a server issue that you will need to speak to your host regarding I'm afraid.
              Vote for:

              - Admin Settable Paid Subscription Reminder Timeframe (vB6)
              - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

              Comment

              • Fking
                Senior Member
                • Nov 2002
                • 152

                #8
                Yes, really seems so. Thank you for the incredibly fast answers!
                Arcade Games - Some free fun for the free time!

                Comment

                • Fking
                  Senior Member
                  • Nov 2002
                  • 152

                  #9
                  I was told that by admin that a simple @ in front of the mysql connect function to supress the message would fix the problem, but the thing is that the way you connect is a bit over my head.
                  Here is the code from the file that gives the error



                  class vB_Database
                  {
                  /**
                  * Array of function names, mapping a simple name to the RDBMS specific function name
                  *
                  * @var array
                  */
                  var $functions = array(
                  'connect' => '@mysql_connect',
                  'pconnect' => '@mysql_pconnect',
                  'select_db' => 'mysql_select_db',
                  'query' => 'mysql_query',
                  'query_unbuffered' => 'mysql_unbuffered_query',
                  'fetch_row' => 'mysql_fetch_row',
                  'fetch_array' => 'mysql_fetch_array',
                  'fetch_field' => 'mysql_fetch_field',
                  'free_result' => 'mysql_free_result',
                  'data_seek' => 'mysql_data_seek',
                  'error' => 'mysql_error',
                  'errno' => 'mysql_errno',
                  'affected_rows' => 'mysql_affected_rows',
                  'num_rows' => 'mysql_num_rows',
                  'num_fields' => 'mysql_num_fields',
                  'field_name' => 'mysql_field_name',
                  'insert_id' => 'mysql_insert_id',
                  'escape_string' => 'mysql_escape_string',
                  'real_escape_string' => 'mysql_real_escape_string',
                  'close' => 'mysql_close',
                  'client_encoding' => 'mysql_client_encoding',
                  );


                  As you see i tried to add the "@" the way i know but then it gives this
                  Fatal error: Call to undefined function @mysql_connect() in /hosting/domain.com/www/includes/class_core.php on line 311
                  Arcade Games - Some free fun for the free time!

                  Comment

                  • Zachery
                    Former vBulletin Support
                    • Jul 2002
                    • 59097

                    #10
                    mysql_connect is required for vBulletin to operate.

                    Comment

                    • Fking
                      Senior Member
                      • Nov 2002
                      • 152

                      #11
                      Originally posted by Zachery
                      mysql_connect is required for vBulletin to operate.
                      that's quite understandable
                      What i want is advice where to put the "@" so it works the way it will when you just use @mysql_connect
                      Arcade Games - Some free fun for the free time!

                      Comment

                      • Zachery
                        Former vBulletin Support
                        • Jul 2002
                        • 59097

                        #12
                        You can't use that for mysql_connect. What is the error you get without the @ sign?

                        Comment

                        • Fking
                          Senior Member
                          • Nov 2002
                          • 152

                          #13
                          Database error in vBulletin :

                          mysql_connect(): Headers and client library minor version mismatch. Headers:50027 Library:40107
                          /hosting/domain.com/www/includes/class_core.php on line 311


                          Which i was told was more of a server side issue, so the admin told me to use @ in front of the mysql connect function to supress it.
                          Arcade Games - Some free fun for the free time!

                          Comment

                          • Zachery
                            Former vBulletin Support
                            • Jul 2002
                            • 59097

                            #14
                            That isn't going to fix the problem, your mysql version is MySQL 5, and your php Lib is 4.0. You need to resolve the mismatch in php's mysql libs, so it can talk to mysql properly.

                            Comment

                            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                            Working...