Undefined property: stdClass::$populate_from_previous_subscription on Register

  • Paul Adamson
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #128775 by Paul Adamson
Hi Tuan, some time over the last couple versions of this extension, the property mentioned above is no longer referenced anywhere except in the view

live_b/components/com_osmembership/view/register/html.php at line 517
Code:
// Handle Populate Data From Previous Subscription from custom field settings foreach ($rowFields as $rowField) { if (!$rowField->populate_from_previous_subscription && isset($data[$rowField->name])) { unset($data[$rowField->name]); } }

It used to be populated in

dev/administrator/components/com_osmembership/model/field.php at line 223
Code:
/** * Initialize custom field data */ protected function initData() { parent::initData(); $this->data->can_edit_on_profile = 1; $this->data->show_on_user_profile = 1; $this->data->show_on_subscription_form = 1; $this->data->populate_from_previous_subscription = 1; }

but that seems to have disappeared.

Thanks,
Paul

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

More
5 years 7 months ago #128779 by Tuan Pham Ngoc
Hi Paul

It's still there in the code. You can submit a support ticket sending us super admin account of your site and link to the page so that I can check

Or better, download latest package of Membership Pro, upgrade it to your site, then check it again to see if you still see the issue before submitting ticket

Tuan

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

  • Paul Adamson
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #128807 by Paul Adamson
You're right, its there. It turns out that the table #__osmembership_fields was missing the column populate_from_previous_subscription . After adding the column with a default value of 1 the error has disappeared.

Thanks for your help!
Paul

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

More
5 years 7 months ago #128820 by Tuan Pham Ngoc
Hi Paul

Maybe update was not success for some reasons and it causes the field not added

To make sure all necessary fields are created, I would suggest you to use this tool membershipprodoc.joomservices.com/tools

Regards,

Tuan

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