• Resolved greenie3

    (@greenie3)


    I just installed the woocommerce stripe plugin, then updated my php to 7, but plugin still gives php version warning. please help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor royho

    (@royho)

    If you’re still seeing the PHP warning it means you’re still on a PHP that is older than 5.6. I would suggest you check with your host.

    Kristina

    (@kristinaplauche)

    Automattic Happiness Engineer

    Hi there!

    Where are you seeing this warning? There shouldn’t be a php warning if your site is using php 7. I don’t see this on my test site which is using php 7.

    @royho and @kristinaplauche Hi y’all! I am seeing this too so it’s possible to get into this situation. I was working on my c9 instance and it does come preinstalled with php5.5. So I used phpbrew to switch to PHP7. In the command line php -v reports that I am running version 7.0.22`

    
    helgatheviking:~/workspace $ phpbrew list
    * php-7.0.22     
      7.0-dev        
    helgatheviking:~/workspace $ php -v
    PHP 7.0.22 (cli) (built: Aug  3 2017 18:15:05) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    

    However in the WP admin the stripe plugin and the WC status report don’t seem to recognize that.

    
    PHP version:		 5.5.9-1ubuntu4.21 - We recommend a minimum PHP version of 5.6. See
    

    My research so far is saying that things like phpbrew don’t automatically update your apache configuration and that’s what phpinfo() is reading from. So @greenie3 I don’t have the full solution, but check your apache configuration. I hope that helps.

    Thread Starter greenie3

    (@greenie3)

    I found the problem was in my .htaccess files. One of my earlier plugins or modifications must have added a line for an addhandler:

    AddHandler application/x-httpd-php54 .php
    This was causing all kinds of problems, and was dropped into two separate .htaccess files. Removing these lines fixed the problem.
    I did have to manually go through all the folders via ftp to find the culprit.

    • This reply was modified 7 years, 4 months ago by greenie3.

    Yip
    Thanks a lot. Should have thought of that myself.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Updated php to 7 still not working’ is closed to new replies.