leonmills
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Query loop won’t display more posts per page?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.?
@bcworkzthanks for making this post – was driving me crazy too
Forum: Plugins
In reply to: [Payment Button for PayPal] PayPal Checkout disable PayLaterThanks 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?
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] HTTP 500 on redirect from PayPalI 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?
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] HTTP 500 on redirect from PayPalI 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
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] HTTP 500 on redirect from PayPalFrom 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)