Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • ?I found where the desired post count setting is. At some time in the past it was moved from the settings sidebar to the floating toolbar.?

    @bcworkz

    thanks for making this post – was driving me crazy too

    Thread Starter leonmills

    (@leonmills)

    Thanks for this – I also noticed you do another plugin that just focuses on PayPal Checkout – is this plan to concentrate on this plugin and can you also disable PayLater on that?

    Thread Starter leonmills

    (@leonmills)

    I have changed line 235 from:

    $shipping += $item[ 'shipping' ] * $item[ 'quantity' ];

    to

    $shipping = $item[ 'shipping' ] * $item[ 'quantity' ];

    It is now working. I don’t know enough about the internals of the plugin (or php) but if I read it correctly $shipping is intended as a text string in this case (?) and the += is trying to add that text string mathematically to the product of shipping and quantity?

    Thread Starter leonmills

    (@leonmills)

    I have found the line it is crashing on by enabling debug log:

    [07-Oct-2022 16:26:28 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string + float in /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-content/plugins/wordpress-simple-paypal-shopping-cart/paypal.php:235
    Stack trace:
    #0 /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php(132): paypal_ipn_handler->validate_and_dispatch_product()
    #1 /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-includes/class-wp-hook.php(307): wpspsc_process_pp_smart_checkout('')
    #2 /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #3 /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #4 /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
    #5 {main}
      thrown in /homepages/17/d628608050/htdocs/clickandbuilds/NAMEREMOVE/wp-content/plugins/wordpress-simple-paypal-shopping-cart/paypal.php on line 235
    Thread Starter leonmills

    (@leonmills)

    From what I can tell it is failing inside the function:

    function validate_and_dispatch_product()

    Becauase the last entry in the IPN log for each transaction is:

    [10/07/2022 3:12 PM] – SUCCESS :Checking price. Original price: 1. Paid price: 1

    After that there are no more entries for the transaction and from looking into the PHP it looks like there should be more?

    If one of these line is causing the crash how can it be debugged on a hosted WordPress site (Ionos)

Viewing 5 replies - 1 through 5 (of 5 total)