We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38783
    • 571 Posts
    I hope it goes well on Sunday. If you are upgrading purely for security reasons it might be worth considering applying the security fix in the meantime, if you haven't already: https://github.com/extras-evolution/security-fix/

    Perhaps others from the community can advise if this fix is sufficient, or if version 1.2 contains additional security updates?
      If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

      email: [email protected] | website: https://andytough.com
      • 18399
      • 60 Posts
      Quote from: iusemodx at Dec 09, 2016, 12:42 PM
      Just a guess, but to run 1.2 your server must have PHP5.5 and above installed, better is PHP 7

      I updated a very old client site last week and couldn't figure out why it wouldn't install / update properly.

      Then I looked at the server and found that the PHP version in use was below that required for 1.2

      Thankyou. Current is PHP 5.4.43 Actually Bluehost have generally been good with automatic updates so I'm a bit surprised I'm this far behind but may be the problem in its entirety. I will look into that.

      It could be upgrading to the new PHP breaks more programs than it helps which is why they haven't done it yet.

      Mark

        • 18399
        • 60 Posts
        Quote from: iusemodx at Dec 09, 2016, 12:42 PM
        Just a guess, but to run 1.2 your server must have PHP5.5 and above installed, better is PHP 7

        I updated a very old client site last week and couldn't figure out why it wouldn't install / update properly.

        Then I looked at the server and found that the PHP version in use was below that required for 1.2

        OK. I did two things. I upgraded to PHP version 5.6 (and there's a beta version 7 available on Bluehost too). But also tried just Modx version 1.1, the previous update. The upgrade option still doesn't appear. If I read this thread correctly this means that it's not finding config.inc.php. I'm pretty sure I made it writable. So what's next. What are generally the reasons that a modx installation doesn't find the config.inc.php file?

        I really am going to wait until Sunday now.

        • discuss.answer
          • 38783
          • 571 Posts
          Looking at the /install/actions/action_mode.php file it seems that the installer checks for the following. If all is present and correct an upgrade is permitted.

          The presence of the /includes/config.inc.php file
          A valid connection to an existing database.

          If either of these are not found then only a 'new install' is presented.

          Assuming your config.inc.php file is being found this would suggest that the information in it is not correct and that a valid connection to the database cannot be achieved with it. This is unlikely as it is working for your previous installation.

          I notice that the database in older config files is described as
          $database_type = 'mysql';

          and on one of my old sites the database_type is listed as
          $database_server = 'localhost:the-path-to-my-hosts-mysql';
          


          In config files for the same site running version 1.2 I have the following settings.

          $database_type = 'mysqli';
          $database_server = 'localhost';


          So in your config.inc.php file you could try changing mysql to mysqli and if that does not work perhaps also remove the :3306.
            If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

            email: [email protected] | website: https://andytough.com
            • 18399
            • 60 Posts
            Quote from: andytough at Dec 09, 2016, 10:41 AM
            It sound like your config file might be missing: /manager/includes/config.inc.php

            Make sure your original config.inc.php file is there, and that it is 'writable' (644). Ensure that permissions are set back to 400 or 404 after the upgrade.

            Thankyou so much.

            Changing the original

            $database_type = 'mysq';
            $database_server = 'localhost:3306';

            to

            $database_type = 'mysqli';
            $database_server = 'localhost';

            did the trick.

            What I did was following your suggestion that things needed changing I did a clean test install and looked at the config file there and sure enough there were the differences you described. Install then worked straight away.

            Also jumping from 1.015 to 1.2 only broke one minor thing. The rotating ticker at the top of my page. I'm sure that's fixable.

            Now to see if this fixes some of my website issues.

            Thank you so much, I deeply grateful for those who took the time to suggest where to look for problems. It's terribly frustrating when these things don't work.

            Mark
              • 18399
              • 60 Posts
              Quote from: MarkTWIC at Dec 09, 2016, 02:18 PM
              Quote from: iusemodx at Dec 09, 2016, 12:42 PM
              Just a guess, but to run 1.2 your server must have PHP5.5 and above installed, better is PHP 7

              I updated a very old client site last week and couldn't figure out why it wouldn't install / update properly.

              Then I looked at the server and found that the PHP version in use was below that required for 1.2

              OK. I did two things. I upgraded to PHP version 5.6 (and there's a beta version 7 available on Bluehost too). But also tried just Modx version 1.1, the previous update. The upgrade option still doesn't appear. If I read this thread correctly this means that it's not finding config.inc.php. I'm pretty sure I made it writable. So what's next. What are generally the reasons that a modx installation doesn't find the config.inc.php file?

              I really am going to wait until Sunday now.


              I have upgraded to PHP 5.6 on bluehost. There's an beta test of PHP 7. What possible gains might there be for my newly installed Modx 1.2 in moving to PHP 7? Worth the risk?

              Once again thanks for taking the time. It wasn't at all obvious to me I had to change PHP versions but it was easy enough to upgrade as it turned out.

              Best wishes
              Mark
                • 13226
                • 953 Posts
                PHP 7 is faster

                I can't offer you information ref. the tech behind every specific thing but the most important element when it comes to Evo is that the MYSQL extension is no-longer supported and anyone using older Evo versions will have to update anyway at some stage, as providers update their systems