- Posts: 106
- Thank you received: 2
cant delete plans
- Jim
- Topic Author
- Offline
- Premium Member
-
Less
More
9 years 7 months ago #68554
by Jim
cant delete plans was created by Jim
Hi Tuan,
I have a problem with all of my websites that use Membership pro.
When you go to delete a plan we get the following error (as its looking at articles for some reason)
Please can you tell me which template this is in so i can correct the code in all of my sites?
Thanks
Jim
An error has occurred.
1146 Table 'cl19-h4all.pf1_osmembership_articles' doesn't exist SQL=DELETE FROM pf1_osmembership_articles WHERE plan_id IN (11)
I have a problem with all of my websites that use Membership pro.
When you go to delete a plan we get the following error (as its looking at articles for some reason)
Please can you tell me which template this is in so i can correct the code in all of my sites?
Thanks
Jim
An error has occurred.
1146 Table 'cl19-h4all.pf1_osmembership_articles' doesn't exist SQL=DELETE FROM pf1_osmembership_articles WHERE plan_id IN (11)
Please Log in or Create an account to join the conversation.
- Jim
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 2
9 years 7 months ago #68557
by Jim
Replied by Jim on topic cant delete plans
I have found the code in administrator/components/com_osmembership/models/plan.php
where it says
$db = $this->getDbo();
$query = $db->getQuery(true);
$query->delete('#__osmembership_articles')
->where('plan_id IN ('.implode(',', $cid).')');
i have changed 'articles' to 'renewrates'
is this correct?
where it says
$db = $this->getDbo();
$query = $db->getQuery(true);
$query->delete('#__osmembership_articles')
->where('plan_id IN ('.implode(',', $cid).')');
i have changed 'articles' to 'renewrates'
is this correct?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #68568
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cant delete plans
Hi Jim
You can delete that whole command blocks. I don't know why you have that error as the table #__osmembership_articles is supported to be created when you install the extension.
Maybe it is not created for some reasons and that's the reason causing the error
Regards,
Tuan
You can delete that whole command blocks. I don't know why you have that error as the table #__osmembership_articles is supported to be created when you install the extension.
Maybe it is not created for some reasons and that's the reason causing the error
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Jim
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 2
9 years 7 months ago #68570
by Jim
Replied by Jim on topic cant delete plans
Hi Tuan,
I don't have #__osmembership_articles in any of my installations.
Shall i create it ? Not sure what the table is for?
Jim
I don't have #__osmembership_articles in any of my installations.
Shall i create it ? Not sure what the table is for?
Jim
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #68592
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cant delete plans
Hi Jim
The table is only used if you are using the plugin "OS Membership - Articles restriction settings" to restrict access to Joomla articles for subscribers.
The syntax for creating table is CREATE TABLE IF NOT EXISTS `#__osmembership_articles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`plan_id` int(11) DEFAULT NULL,
`article_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 ;
Not sure why it was not created on your site. You can re-create it so that you won't have to modify code
Regards,
Tuan
The table is only used if you are using the plugin "OS Membership - Articles restriction settings" to restrict access to Joomla articles for subscribers.
The syntax for creating table is CREATE TABLE IF NOT EXISTS `#__osmembership_articles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`plan_id` int(11) DEFAULT NULL,
`article_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 ;
Not sure why it was not created on your site. You can re-create it so that you won't have to modify code
Regards,
Tuan
The following user(s) said Thank You: Jim
Please Log in or Create an account to join the conversation.
- Jim
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 2
9 years 7 months ago #68621
by Jim
Replied by Jim on topic cant delete plans
Perfect, thanks Tuan

Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #68680
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cant delete plans
No problem Jim. Happy to assist.
Tuan
Tuan
The following user(s) said Thank You: Jim
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.