4.21 to 4.25 but need a PHP upgrade first?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moonclamp
    Member
    • May 2004
    • 96
    • 3.7.x

    4.21 to 4.25 but need a PHP upgrade first?

    I currently have 4.2.1 and wish to upgrade to 4.2.5

    My PHP version is 5.4.45 and I am using Plesk.

    If I switch over to PHP 5.5.x or 5.6.x (all that's available) the current 4.2.1 forum won't connect to the database.


    So, what's the best way of upgrading considering the above?

    Thank you
    Last edited by moonclamp; Wed 1 Nov '17, 3:52pm.
  • bootsie1
    Senior Member
    • Jun 2017
    • 150
    • 5.3.x

    #2
    What version of plesk are you using also for which os linux or windows
    Cometbar

    DartsLeague

    Comment

    • moonclamp
      Member
      • May 2004
      • 96
      • 3.7.x

      #3
      Originally posted by bootsie1
      What version of plesk are you using also for which os linux or windows
      CentOS 6.9

      Plesk Onyx 17.0.17

      Comment

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

        #4
        What do you mean by "won't connect to the database"? Changing the php version should not impact the ability to connect to the database.
        What is the exact error received please?
        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

        • moonclamp
          Member
          • May 2004
          • 96
          • 3.7.x

          #5
          Originally posted by Mark.B
          What do you mean by "won't connect to the database"? Changing the php version should not impact the ability to connect to the database.
          What is the exact error received please?
          I reverted for now so can't pull the exact wording, but it's the standard vbulletin "cannot connect to the database" page.

          The site comes back to life as soon as I revert to the older version of PHP (5.4.45)

          Comment

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

            #6
            Make sure your config file is set to use mysqli, and not mysql. This is in the "database type" line near the top.
            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

            • moonclamp
              Member
              • May 2004
              • 96
              • 3.7.x

              #7
              Originally posted by Mark.B
              Make sure your config file is set to use mysqli, and not mysql. This is in the "database type" line near the top.
              Changed it and unfortunately I still have the same problem.

              Comment

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

                #8
                Originally posted by moonclamp

                Changed it and unfortunately I still have the same problem.
                We would need to know the full database error then. Otherwise, we are just guessing at possible causes.
                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

                • moonclamp
                  Member
                  • May 2004
                  • 96
                  • 3.7.x

                  #9
                  I seem to have fixed it!

                  I went to change debug information to $config['Misc']['debug'] = 'true';and noticed that$config['Misc']['debug'] = false; didn't have any quotes around it.

                  Adding the quotes made it work - although I have no idea why it wasn't that fussy in the older flavour of PHP

                  Thanks for the help



                  EDIT: Adding quotes around 'false' kept the debug information visible so I just commented out the whole section.
                  Last edited by moonclamp; Thu 2 Nov '17, 9:26am.

                  Comment

                  Related Topics

                  Collapse

                  Working...