• Resolved zookri

    (@zookri)


    Hi, been trying this out but have run into several issues. First, I’m getting a fatal error logged on my site running PHP 8.0 :

    [26-Feb-2024 07:00:13 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.4.0”. You are running 7.3.33. in xxx/public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24

    I use Stripe Credit/Debit Card with ApplePay and GPay for Express. The only time orders are processed as a pre-order is when ApplePay is used for payment. Otherwise, all orders are processed as normal sales.

    A smaller issue but when using the WooCommerce ‘Handpicked Products’ widget, the button label isn’t updated and still uses the standard “Add to Basket” text.

    WordPress Version 6.4.3
    PHP version 8.0.30

Viewing 6 replies - 1 through 6 (of 6 total)
  • luizdevplugins

    (@luizbvplugins)

    Hello, are you running php 8 and the composer tell you run 7.3? Are you using multiple php installations? Could you provide more information about your server setting, debug log?

    We need to try simulate this issue. Thanks

    Thread Starter zookri

    (@zookri)

    No, just running PHP8. These are the server specs:

    Server architecture: Linux 4.18.0-477.27.1.el8_8.x86_64 x86_64
    Web server: LiteSpeed
    PHP version: 8.0.30 (Supports 64bit values)
    PHP SAPI: litespeed
    PHP max input variables: 1000
    PHP time limit: 30
    PHP memory limit: 512M

    And here's part of the debug.log:

    [25-Feb-2024 07:00:12 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33. in /public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24
    [25-Feb-2024 07:00:13 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33. in /public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24
    [25-Feb-2024 07:00:14 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33. in /public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24
    [25-Feb-2024 22:25:07 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
    [25-Feb-2024 22:25:07 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
    [25-Feb-2024 22:25:12 UTC] The Automattic\WooCommerce\Admin\API\Options::update_options function is deprecated since version 6.3.
    [25-Feb-2024 22:25:12 UTC] The Automattic\WooCommerce\Admin\API\Options::update_options function is deprecated since version 6.3.
    [25-Feb-2024 22:25:12 UTC] The Automattic\WooCommerce\Admin\API\Options::update_options function is deprecated since version 6.3.
    [25-Feb-2024 22:25:12 UTC] The Automattic\WooCommerce\Admin\API\Options::update_options function is deprecated since version 6.3.
    [26-Feb-2024 01:49:54 UTC] Cron reschedule event error for hook: litespeed_task_ucss, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":"litespeed_filter","args":[],"interval":60}
    [26-Feb-2024 05:06:17 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [26-Feb-2024 07:00:13 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33. in /public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24
    [26-Feb-2024 07:00:14 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33. in /public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24
    [26-Feb-2024 07:00:15 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33. in /public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24
    luizdevplugins

    (@luizbvplugins)

    Have you upgraded the php version? Try to uninstall any older versions on your server

    Thread Starter zookri

    (@zookri)

    Thanks for you suggestions but no, the site’s not been updated. The server (a managed vps) does have other sites using other versions of php so removing older versions isn’t an option.

    Moving onto the pre-order processing only appearing for those using ApplePay, have you seen similar behaviour before and do you have any suggestions?

    Plugin Support alfredjr18

    (@alfredjr18)

    Hi There,

    Sorry for the late reply.

    1- For “[26-Feb-2024 07:00:13 UTC] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.4.0”. You are running 7.3.33. in xxx/public_html/wp-content/plugins/pre-orders-for-woocommerce/vendor/composer/platform_check.php on line 24”
    You need to upgrade your php version:
    https://imgur.com/undefined

    2- “I use Stripe Credit/Debit Card with ApplePay and GPay for Express. The only time orders are processed as a pre-order is when ApplePay is used for payment. Otherwise, all orders are processed as normal sales.”
    Possibly due to an incompatibility, it could be easily solved by adding the WC_Payment_Gateway ID to this filter:

    add_filter( ‘bp_preorder_email_by_payment_method_list’, function( $payment_methods ){ $my_payment_methods = [ //For example for stripe support ‘stripe’ ]; return array_merge( $payment_methods, $my_payment_methods ); } );

    And add this filter into the function.php file

    If you need custom support for (part 2), you can create a ticket at:?https://brightplugins.com/support/

    3-?“A smaller issue but when using the WooCommerce ‘Handpicked Products’ widget, the button label isn’t updated and still uses the standard “Add to Basket” text.”
    Possibly due to an incompatibility, you can create a ticket at:?https://brightplugins.com/support/?since it’s something custom

    It is important to follow these guidelines:?https://www.ads-software.com/support/guidelines/

    WordPress wants the posts for free plugins to be handled in the forum and not elsewhere, but when they are customizable or premium stuff we can direct you to our support.

    Plugin Support alfredjr18

    (@alfredjr18)

    Hi,

    As we haven’t received a recent response, I’ll mark this as resolved.
    Feel free to open a new ticket, if you continue encountering issues or reopen this ticket
    We’d be happy to assist.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple Issues’ is closed to new replies.