This means that functions with the same name ‘cc_popup_script’ have been declared both in your theme and in the plugin.
There are several themes called ‘flat’ available from various sources, including Is it the free one at https://ww.wp.xz.cn/themes/flat/ which one are you using?
Also what code is in your theme’s functions.php on line 292 and the next few lines up to the next closing brace: }
Yes it’s that one.
https://ww.wp.xz.cn/themes/flat
lines 287 – 293
/function modify_read_more_link() {
return ‘‘ . sprintf( __( ‘Continue reading %s’, ‘flat’ ), ‘<i class=”fa fa-angle-double-right”></i>‘ );
}
//* Register and Enqueue scripts for popup
function cc_popup_script() {
wp_register_script( ‘popup’, get_stylesheet_directory_uri() . ‘/js/popup.js’, array( ‘jquery’ ), ‘1.0.0’, false );
wp_enqueue_script( ‘popup’ );
The current version of the theme does not appear to contain the function:
https://themes.trac.ww.wp.xz.cn/browser/flat/1.7.6/functions.php
Which version of the theme are you using? – you should find this within the block at the top of the styles.css
Has the theme been customized at all?
Upgraded to Flat 1.7.6
& The Error has stopped.
the is now plugin is now working
Thanks