Skip Navigation

[Resolved] Need help with access control

This thread is resolved. Here is a description of the problem and solution.

Problem: I'm trying to use Access Control to restrict access to a post type. When I apply an Elementor Pro template, the content of the post disappears.

Solution: Check to be sure no Toolset Content Template is applied to the post. If so, the combination with an Elementor Pro template will cause the post content to disappear.

Relevant Documentation:
https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by georgev-2 4 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1363377

Tell us what you are trying to do?
Hi, I have a CPT made for users called "ouders" (parents) I have made an template in Elementor to apply to all the parents cpt.
Then I have used access control to manage who can see this template .

however now its not showing the elementor template at all.

I have done the same for "oppassers" (nannies) and there it works just fine and I am very confused.

I have tried everything I can think of in the Access control settings but I feel like I'm missing something yet can't figure out what exactly

What is the link to your site?

hidden link

#1363543

Hi, can you show me exactly how you restricted Access to this Elementor template using Access controls? If you can take a screenshot in wp-admin that would be helpful. Thanks!

#1363571
oppaseigenwijs.nl_wp-admin_admin.php_page=types_access.png

Hi here are some screenshots of all the access settings regarding the Parents profiles (ouders profielen)

#1363583

Okay when an Administrator visits an Ouders post, what do they see? Is this different from what a Guest sees?

#1365265

As Administrator there is also nothing visible, which is one of the reasons I am so confused about it.

#1365751

Okay let's try these troubleshooting steps first:
- Temporarily deactivate all plugins except Types and Views if you currently have them active, Access, Elementor and Elementor Pro.
- Temporarily switch to a default theme like Twenty Nineteen.
- Resave your Permalinks
- Test the Ouders pages again. If the problem is resolved, reactivate your other plugins and theme one by one until the problem returns.
- If the problem is not resolved, there could be a server side error. I can help you check the server logs if necessary to see if there is a server side issue.

#1366531

Hi Christian,

It seems Elemento Pro is the culprit.
After deactivating it, I finally see only the title of the ouders cpt (which makes sense the rest are custom fields ).

now to figure out how to fix it ....... I have tried to rollback an older version but that didn't work either, so if you could have a look at the logs that would be great, now there are many logs available withing wp which one exactly is best for me to send ?

Anyway here is the Log I got from Elementor I hope it helps....

Log: showing 20 of 20
2019-08-15 12:32:42 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.6.7',
'to' => '2.6.8',
)]
2019-08-15 12:35:05 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.6.1',
'to' => '2.6.2',
)]
2019-08-19 12:46:11 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.6.2',
'to' => '2.6.3',
)]
2019-08-22 10:06:37 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.6.3',
'to' => '2.6.4',
)]
2019-09-26 14:58:42 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '2.6.8',
'to' => '2.7.3',
)]
2019-09-26 14:58:59 [info] elementor::elementor_updater Started
2019-09-26 14:58:59 [info] Elementor/Upgrades - _v_2_7_1_remove_old_usage_data Start
2019-09-26 14:58:59 [info] Elementor/Upgrades - _v_2_7_1_remove_old_usage_data Finished
2019-09-26 14:58:59 [info] Elementor/Upgrades - _v_2_7_1_recalc_usage_data Start
2019-09-26 14:58:59 [info] Elementor/Upgrades - _v_2_7_1_recalc_usage_data Finished
2019-09-26 14:58:59 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.6.8',
'to' => '2.7.3',
)]
2019-09-26 14:59:00 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '2.6.8',
'to' => '2.7.3',
)]
2019-09-26 14:59:02 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.6.4',
'to' => '2.7.0',
)]
2019-10-07 11:34:30 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.7.0',
'to' => '2.7.2',
)]
2019-10-07 11:38:07 [info] elementor::elementor_updater Started
2019-10-07 11:38:07 [info] Elementor/Upgrades - _v_2_7_1_remove_old_usage_data Start
2019-10-07 11:38:07 [info] Elementor/Upgrades - _v_2_7_1_remove_old_usage_data Finished
2019-10-07 11:38:07 [info] Elementor/Upgrades - _v_2_7_1_recalc_usage_data Start
2019-10-07 11:38:08 [info] Elementor/Upgrades - _v_2_7_1_recalc_usage_data Finished
2019-10-07 11:38:08 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.7.3',
'to' => '2.7.4',
)]
JS: showing 20 of 20
JS: 2019-08-20 09:11:33 [error X 1][hidden link; Cannot set property \'controls\' of undefined
JS: 2019-08-22 09:12:37 [error X 15][hidden link; SimplybookWidget is not defined
JS: 2019-08-23 08:22:10 [error X 26][hidden link; n.attributes[e.name].each is not a function
JS: 2019-10-02 10:10:27 [error X 62][hidden link; Cannot read property \'get\' of undefined
JS: 2019-10-10 10:07:55 [error X 2][hidden link; Cannot read property \'0\' of undefined
JS: 2019-10-10 10:08:12 [error X 1][hidden link; Cannot read property \'icon_color\' of undefined
JS: 2019-10-10 10:08:14 [error X 46][hidden link; Cannot read property \'icon_size_mobile\' of undefined
JS: 2019-10-10 10:08:24 [error X 3][hidden link; Cannot read property \'icon_self_align_mobile\' of undefined
JS: 2019-10-10 10:08:33 [error X 1][hidden link; Cannot read property \'text_color\' of undefined
JS: 2019-10-10 10:08:35 [error X 1][hidden link; Cannot read property \'icon_typography_typography\' of undefined
JS: 2019-10-10 12:34:25 [error X 1][hidden link; View (cid: \"view115334\") has already been destroyed and cannot be used.
JS: 2019-10-10 12:34:25 [error X 1][hidden link; View (cid: \"view108296\") has already been destroyed and cannot be used.
JS: 2019-10-10 12:34:25 [error X 1][hidden link; View (cid: \"view101481\") has already been destroyed and cannot be used.
JS: 2019-10-10 13:17:38 [error X 6][hidden link; Cannot read property \'select2\' of undefined
JS: 2019-10-10 13:28:52 [error X 1][hidden link; View (cid: \"view6430\") has already been destroyed and cannot be used.
JS: 2019-10-10 13:36:43 [error X 4][hidden link; Cannot read property \'prev\' of undefined
JS: 2019-10-14 09:11:54 [error X 2][hidden link; Unexpected token \'<\'
JS: 2019-10-15 13:37:37 [error X 2][hidden link; Cannot read property \'noUiSlider\' of undefined
JS: 2019-10-16 08:47:49 [error X 3][hidden link; Cannot read property \'menu\' of undefined
JS: 2019-10-22 14:38:23 [error X 1][hidden link; View (cid: \"view1255\") has already been destroyed and cannot be used.
PHP: showing 3 of 3
PHP: 2019-08-22 12:02:16 [notice X 18][/var/www/vhosts/blinktuit.nl/eigenwijs.blinktuit.nl/wp-content/plugins/elementor/core/files/css/base.php::721] Undefined index: _id [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2019-10-15 14:14:05 [notice X 1][/var/www/vhosts/blinktuit.nl/eigenwijs.blinktuit.nl/wp-content/plugins/elementor-pro/modules/posts/widgets/posts.php::31] Undefined index: posts_post_type [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2019-10-15 16:13:30 [notice X 1][/var/www/vhosts/blinktuit.nl/eigenwijs.blinktuit.nl/wp-content/plugins/elementor/includes/elements/column.php::1002] Undefined index: _column_size [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

#1366601

If there is a conflict with Elementor Pro, I should probably log into your wp-admin area and create a clone of your site. Then I could run some additional tests locally and see if the problem can be resolved. If you approve, please provide login credentials in the private reply fields here.

#1369393

Sorry but these login credentials do not seem to work. I see an error when I try to log in. Can you test and send an update if necessary?

#1371425

Please check this post and let me know if the Elementor Pro template is working as expected now:
hidden link

I removed the Toolset Content Template that was assigned to this post. It is not recommended to use both a Toolset Content Template and an Elementor Pro template.

#1371561

Yes it seems to be working indeed, could you please tell me where exactly you removed it.
It seems I have lost my overview of things at the moment.

Thank you

#1371565
Screen Shot 2019-10-28 at 12.29.46 PM.png

The Content Template setting can be found in the Ouders post editor screen. Please find the screenshot attached, I selected "Geen" here. You can do the same for other Ouders posts.

You should also edit the Ouderslogin template here:
hidden link

Uncheck "ouders profilien" for "Gebruik wijzigen" under "Dit inhoudssjabloon wordt gebruikt voor Ouders profielen."
That will prevent the problem in new Ouders posts.

#1371969

Yes, thats it. Thank you very much, I would not have thought to look for the settings there.

#1371971

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.