• Resolved Vijayan

    (@gvgvgvijayan)


    What will be the minimum supported PHP version? PHP 7.2 or 7.3. The reason for this query is we noted that Woo minimum PHP version as PHP 7.2 but it is using Action scheduler 3.5.4. The Action scheduler 3.5.4 minimum PHP version is 7.3. Which PHP version should we use PHP 7.2 or 7.3?

    In plugin header PHP Version is 7.2 (details at https://wordpress.org/plugins/woocommerce/)

    • This topic was modified 1 year, 3 months ago by Vijayan.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Roxy

    (@beautyofcode)

    Hi @gvgvgvijayan ,

    Thanks for reaching out!

    I understand that you would like to know which PHP version is recommended for your site, is this correct?

    Kindly note that, as per our WooCommerce Server Recommendations support documentation, we recommend PHP version 7.4 or greater. You are also able to see other server recommendations in that support document.

    Additionally, you can also check the WordPress requirements.

    Hope this helps!

    Thread Starter Vijayan

    (@gvgvgvijayan)

    Hi @beautyofcode ,

    No it’s not helped.

    Thanks for your reply (yes, I knew about recommended version is 7.4). What my query is should I use PHP 7.2 for WooCommerce V7.5.1 and I hope Action Scheduler V3.5.4 which is present in WooCommerce V7.5.1 (but it expects PHP 7.3 as per the platform requirement in composer) will it work without any notice or warning or fatal or any other errors in my server which runs on PHP 7.2. Can you please confirm this? Thank you.

    Roxy

    (@beautyofcode)

    Hi @gvgvgvijayan ,

    Thanks for clarifying!

    I’d suggest using PHP 7.3, rather than PHP 7.2.

    It’s important to note that both PHP version 7.2 and 7.3 are no longer supported, which could expose your site to unpatched security vulnerabilities. You can see the list of supported PHP versions here.

    We cannot guarantee that you will not encounter any issue along the way when using PHP 7.2 or PHP 7.3 since PHP 7.4 is the minimum recommended version.

    That being said, if your website is currently running on PHP 7.2 or PHP 7.3 and you are experiencing no issues, there is no immediate need to upgrade your PHP version.

    However, we do recommend keeping your PHP version up-to-date and regularly checking for updates to ensure the best possible performance and security.

    Cheers!

    Thread Starter Vijayan

    (@gvgvgvijayan)

    Hi @beautyofcode ,

    Sorry to say, still you didn’t resolved my query and deviated the topic to recommended version again (I knew about the WP recommendation. WP 6.2 and earlier versions are still keeps PHP 8+ as beta support only. If you see the content of link you shared in previous thread (supported PHP versions here) even PHP 7.4 is already EOL plus if we planned to move PHP 8+ then based on WP recommendation it is beta support. Moreover even as you suggested if we move to PHP 7.4 then we still insecure because of EOL. So here it is not about recommendation and WP users mainly stick to WP because it will supports legacy systems like PHP 5.6 even in WP 6.2)

    Woo V7.5.1 minimum PHP version is 7.2 (https://imgur.com/a/ei0zyjb)

    We are need to confirm is Action Scheduler (AS) V3.5.4 which is come with Woo V7.5.1 work properly in PHP 7.2 version or not.

    More clearly:

    On the WooCommerce plugin’s page it is mentioned that Woo V7.5.1 requires PHP v7.2 or higher. But one of the packages(Action Scheduler V3.5.4) that Woo is using requires at least PHP v7.3.

    My question is why on WordPress plugins page it is not mentioned 7.3 or higher?

    Roxy

    (@beautyofcode)

    Hi @gvgvgvijayan ,

    I’m sorry to hear that you feel your query has not been resolved.

    On the WooCommerce plugin’s page it is mentioned that Woo V7.5.1 requires PHP v7.2 or higher. But one of the packages(Action Scheduler V3.5.4) that Woo is using requires at least PHP v7.3.

    We are need to confirm is Action Scheduler (AS) V3.5.4 which is come with Woo V7.5.1 work properly in PHP 7.2 version or not.

    Action Scheduler is essentially baked into core but doesn’t necessarily mean that it relies on WooCommerce cores PHP version requirement, which is 7.2 or higher (from WooCommerce core standpoint).

    If you are using Action Scheduler as a standalone plugin in a project, then reality is that it supports version 5.6 or higher. The changelog for 3.5.4 doesn’t indicate 7.3 either. You are referring to the composer, and specifically the platform setting which is 7.3 as a requirement, and that is essentially to assume version 7.3 instead of the actual version in the development system.

    Even so, you’ll see in the ActionScheduler_DataController class the minimum is still 5.5 and based on that, yes, it will work as it should on PHP 7.2. In fact, all the way from 5.5 upwards.

    With that said, are you getting (or have you received), any failures running composer command, that would indicate any issue/s with 7.2?

    Looking forward to your response!

    Thread Starter Vijayan

    (@gvgvgvijayan)

    Hi @beautyofcode,

    Resolved.

    Thanks for the crystal clear explanation. Please mark this post as resolved. Thank you for your patience and way you explained.

    The crux of your explanation is this one (which clarifies my query. The PHP 7.3 mentioned in composer is for developer who contributing to Action Scheduler but not for the Action Scheduler consumers):

    You are referring to the composer, and specifically the platform setting which is 7.3 as a requirement, and that is essentially to assume version 7.3 instead of the actual version in the development system.

    No failures in my environment at the moment (just for precaution I asked).

    Thank you.

    Roxy

    (@beautyofcode)

    Hi @gvgvgvijayan ,

    Happy to help!

    I will go ahead and mark this as resolved then. Feel free to create a new topic if you need further help 🙂

    Also, if you have a few minutes, we’d love it if you could leave us a review: 

    https://wordpress.org/support/plugin/woocommerce/reviews/

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Which PHP version should we use in our server?’ is closed to new replies.