Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Php 7.1.17 required!

    General Discussion
    3
    6
    567
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sahebmhm last edited by

      Hi, I am using php 7.1.9 but does not let me install it, keep asking for php 7.1.17!

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Can you attach a screenshot of error.

        1 Reply Last reply Reply Quote 0
        • S
          sahebmhm last edited by

          Thank you Rahul, here is the screenshot: !
          phpreq.jpg

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by

            Hi,

            In your Project's public folder, there you can find a folder name installer, open 'Requirement.php' file of which is inside 'Classes' folder, here you can see a function name 'checkPHPversion'.
            Replace the below code in that function.

            /**
            * Check PHP version requirement.
            *
            * @return array
            /
            public function checkPHPversion()
            {
            /
            *
            * Minimum PHP Version Supported (Override is in installer.php config file).
            *
            * @var _minPhpVersion
            */
            $_minPhpVersion = '7.1.17';

                $currentPhpVersion = $this->getPhpVersionInfo();
                $supported = false;
            
                if (version_compare((str_pad($currentPhpVersion['version'], 6, "0")), $_minPhpVersion) >= 0) {
                    $supported = true;
                }
            
                $phpStatus = [
                    'full' => $currentPhpVersion['full'],
                    'current' => $currentPhpVersion['version'],
                    'minimum' => $_minPhpVersion,
                    'supported' => $supported
                ];
            
                return $phpStatus;
            }
            

            Thanks

            1 Reply Last reply Reply Quote 0
            • S
              sahebmhm last edited by

              Rahul,
              Many thanks, it works.

              1 Reply Last reply Reply Quote 0
              • C
                calliopec96 last edited by

                Many thanks

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post