- Posts: 35
- Thank you received: 0
Undefined property: stdClass::$populate_from_previous_subscription on Register
- Paul Adamson
- Topic Author
- Offline
- Junior Member
-
Less
More
5 years 7 months ago #128775
by Paul Adamson
Undefined property: stdClass::$populate_from_previous_subscription on Register was created 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
It used to be populated in
dev/administrator/components/com_osmembership/model/field.php at line 223
but that seems to have disappeared.
Thanks,
Paul
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
5 years 7 months ago #128779
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Undefined property: stdClass::$populate_from_previous_subscription on Register
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
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
-
Less
More
- Posts: 35
- Thank you received: 0
5 years 7 months ago #128807
by Paul Adamson
Replied by Paul Adamson on topic Undefined property: stdClass::$populate_from_previous_subscription on Register
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
Thanks for your help!
Paul
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
5 years 7 months ago #128820
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Undefined property: stdClass::$populate_from_previous_subscription on Register
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
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.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.