Thread Starter
Robbys
(@robbys)
I tried install as suggest in the forum but when I deactive plugin I have critical error…
Hi
Sorry about the response time. We are quicker on the plugin website’s support forum.
There must be an error in the php logs, once you find it, you can paste it here so that we know what could cause the issue.
You can always disable any faulty plugin by renaming it’s folder via ftp
Thread Starter
Robbys
(@robbys)
This is email from wordpress for admininistrator:
Un errore di E_ERROR è stato causato nella linea 213 del file /web/htdocs/www.mysite.com/home/wordpress/wp-content/themes/regsc-child/functions.php. Messaggio di errore: Uncaught Error: Call to undefined function cuar_is_customer_area_page() in /web/htdocs/www.mysite.com/home/wordpress/wp-content/themes/regsc-child/functions.php:213
Stack trace:
#0 /web/htdocs/www.mysite.com/home/wordpress/wp-includes/class-wp-hook.php(287): custom_cuar_wp_members_compatibility(‘plugins.php’)
#1 /web/htdocs/www.mysite.com.com/home/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /web/htdocs/www.mysite.com.com/home/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /web/htdocs/www.mysite.com.com/home/wordpress/wp-admin/admin-header.php(102): do_action(‘admin_enqueue_s…’, ‘plugins.php’)
#4 /web/htdocs/www.mysite.com.com/home/wordpress/wp-admin/plugins.php(603): require_once(‘/web/htdocs/www…’)
#5 {main}
thrown
That means that your theme (regsc-child/functions.php) is trying to call a function from our plugin (cuar_is_customer_area_page)
But as the plugin is not active, that function is unknown to WordPress.
Please contact the theme developer to know how to fix that.
Rgards,
Thread Starter
Robbys
(@robbys)
If I disable php by ftp it’s always some fatal error….Why plugin is not active?
This at line 213 functions.php:
/**
* Disable WP Members Select2 assets on WPCA pages
*/
function custom_cuar_wp_members_compatibility() {
if ( cuar_is_customer_area_page( get_queried_object_id() ) || cuar_is_customer_area_private_content(
get_the_ID() ) )
{
wp_dequeue_script(‘select2’);
wp_dequeue_style(‘select2css’);
}
}
add_action( ‘admin_enqueue_scripts’, ‘custom_cuar_wp_members_compatibility’, 99 );
Thread Starter
Robbys
(@robbys)
I can restore the db to make the site work but when I edit a page or an article the page is all confused imposible to work