Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Joomla 6 bug – osmembership.php passes Application Input into MPFInput → Input a

  • Stephen Hawkins
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 hours 53 minutes ago #179266 by Stephen Hawkins
I'm not sure whether this is a real bug or not but it was causing an issue with stripe webhook.
After upgrading to Joomla 6 + latest Membership Pro, Stripe Checkout (4.4.0) webhooks fail with HTTP 500.Error:
Code:
Cannot use object of type Joomla\Input\Input as array
Webhook URL:
Code:
/index.php?option=com_osmembership&task=recurring_payment_confirm&payment_method=os_stripe
Root cause in site 
Code:
components/com_osmembership/osmembership.php
:if (OSMembershipHelper::isJoomla4()) {
$source = Factory::getApplication()->input;
}
$input = new MPFInput($source);On Joomla 6, 
Code:
Factory::getApplication()->input
 is 
Code:
Joomla\Input\Input
. Passing that object as 
Code:
$source
 into 
Code:
MPFInput
/
Code:
Input
 makes 
Code:
$this->data
 an Input instance. Later 
Code:
get()
/
Code:
exists()
 use 
Code:
$this->data[$name]
, which fatals because framework Input is not valid array-source data.This breaks Stripe Checkout webhooks (
Code:
invoice.payment_succeeded
 / 
Code:
checkout.session.completed
) before 
Code:
os_stripe::verifyRecurringPayment()
 runs. MP Stripe Checkout 4.4.0 itself looks fine.Suggested fix: after 
Code:
OSMembershipHelper::prepareRequestData()
, use 
Code:
new MPFInput(null)
 (or pass 
Code:
$_REQUEST
 / a real array from 
Code:
getInput()->getArray()
), not the Application Input object.Please include this in the next Membership Pro release for Joomla 6. If its a real issue?

Grok solved the issue for me but not sure whether its a long term fix or not.Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
16 hours 51 minutes ago #179267 by Tuan Pham Ngoc
Hi Stephen

Please do not use that temp solution. Please submit a support ticket sending us super user account of your site and tell us what I need to do to see the error

I'm going to check to see what's wrong and get it sorted

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Stephen Hawkins
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 hours 41 minutes ago #179268 by Stephen Hawkins
The error is in my Stripe account.

I will post a ticket with the full stripe error. I will create a short video so you can see it.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
16 hours 40 minutes ago #179269 by Tuan Pham Ngoc
Thanks. Just submit a support ticket and we will go from there

Regards,

Tuan

Please Log in or Create an account to join the conversation.