My error on deactivating GDPR.
Fatal error: Uncaught Error: Call to undefined function is_allowed_cookie() in /web/htdocs/www.eurosudsrl.com/home/wp-content/themes/x-child/functions.php:24 Stack trace: #0 /web/htdocs/www.eurosudsrl.com/home/wp-includes/class-wp-hook.php(286): analytics('') #1 /web/htdocs/www.eurosudsrl.com/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /web/htdocs/www.eurosudsrl.com/home/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /web/htdocs/www.eurosudsrl.com/home/wp-includes/general-template.php(2614): do_action('wp_head') #4 /web/htdocs/www.eurosudsrl.com/home/wp-content/themes/x-child/framework/views/global/_header.php(16): wp_head() #5 /web/htdocs/www.eurosudsrl.com/home/wp-content/themes/x/framework/functions/global/view-routing.php(182): include('/web/htdocs/www...') #6 /web/htdocs/www.eurosudsrl.com/home/wp-content/themes/x/framework/functions/global/view-routing.php(55): X_View_Router::render('/web/htdocs/www...', Array, true) #7 /web/htdocs/www.eurosudsrl.com/home/wp-content/the in /web/htdocs/www.eurosudsrl.com/home/wp-content/themes/x-child/functions.php on line 24
EDIT: in function.php I’ve found a code that I’ve written:
/*Stop Analytics GDPR */
add_action( 'wp_head', 'analytics' );
function analytics() {
if ( ! is_allowed_cookie( '_ga' ) ) {
?>
<script>
window['ga-disable-UA-75618759-1'] = true;
</script>
<?php
}
}
/*End Stop Analytics GDPR*/
Resolved. The problem was there.
-
This reply was modified 6 years, 4 months ago by Anonymous User 14701108. Reason: Resolve
-
This reply was modified 6 years, 4 months ago by Anonymous User 14701108.