Hi - we have had toolset on a site for quite some time working fine - but the client wehn to edit this page hidden link which uses the template and the ability to edit in Beaver Builder was greyed out - if we disable toolset temporarily we can edit, but it initially flagged up a 403 error - which Ive now whitelisted - before I could save the edits and publish. Once published we can turn turn on toolset again and kts fine - but keen to know what the issue is if possible?
Hello. Thank you for contacting the Toolset support.
I'm not sure what is the issue exactly until I check further.
Can you please share exact steps that should help me to see the issue as well as send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I've added the following code to the code snippet:
- hidden link
add_action('wp_loaded', function() {
$plugin_path = 'wp-views/wp-views.php';
if (is_admin()) {
return; // Only target frontend
}
// Check if Beaver Builder frontend editor is active
if (isset($_GET['fl_builder']) || isset($_GET['fl_builder_ui'])) {
// Deactivate WP-Views for this request if active
if (is_plugin_active($plugin_path)) {
deactivate_plugins($plugin_path);
}
}else{
if (!is_plugin_active($plugin_path)) {
activate_plugin($plugin_path);
}
}
}, 0); // Very early priority
You can test and check if that works otherwise you will have to check the best possible way to enable and disable the views plugin through code before beaver builder request starts and enable it after the beaver builder request ends. For that you may contact the beaver builder support.
Great, thanks. I can edit and publish the page, I do get an error 500 but if I refresh the page shows correctly with the edits done.
Perhaps its a BB issue that might be resolved with an update - Ill leave the ticket open until Ive had the client check it works for them, but thanks for the help!