Title: fatal error.
Last modified: August 31, 2016

---

# fatal error.

 *  Resolved [theirishman](https://wordpress.org/support/users/theirishman/)
 * (@theirishman)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-2159/)
 * Get this when I install Alligator Popup
 * Fatal error: Cannot redeclare cc_popup_script() (previously declared in D:\Program
   Files (x86)\Ampps\www\wp\wp-content\themes\flat\functions.php:292) in D:\Program
   Files (x86)\Ampps\www\wp\wp-content\plugins\alligator-popup\alligator-popup.php
   on line 85
 * [https://wordpress.org/plugins/alligator-popup/](https://wordpress.org/plugins/alligator-popup/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-2159/#post-7429536)
 * 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://wordpress.org/themes/flat/](https://wordpress.org/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: `}`
 *  Thread Starter [theirishman](https://wordpress.org/support/users/theirishman/)
 * (@theirishman)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-2159/#post-7429559)
 * Yes it’s that one.
    [https://wordpress.org/themes/flat](https://wordpress.org/themes/flat)
   lines 287 – 293 /function modify_read_more_link() { return ‘[‘ . sprintf( __( ‘Continue reading %s’, ‘flat’ ), ‘<i class=”fa fa-angle-double-right”></i>](https://wordpress.org/support/topic/fatal-error-2159/&apos; . esc_url( get_permalink() ) . &apos;?output_format=md)‘);}//*
   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’ );
 *  Plugin Author [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-2159/#post-7429598)
 * The current version of the theme does not appear to contain the function:
    [https://themes.trac.wordpress.org/browser/flat/1.7.6/functions.php](https://themes.trac.wordpress.org/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?
 *  Thread Starter [theirishman](https://wordpress.org/support/users/theirishman/)
 * (@theirishman)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-2159/#post-7429650)
 * Upgraded to Flat 1.7.6
    & The Error has stopped. the is now plugin is now working
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘fatal error.’ is closed to new replies.

 * ![](https://ps.w.org/alligator-popup/assets/icon-256x256.png?rev=1485172)
 * [Alligator Popup](https://wordpress.org/plugins/alligator-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alligator-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alligator-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/alligator-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alligator-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alligator-popup/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [theirishman](https://wordpress.org/support/users/theirishman/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/fatal-error-2159/#post-7429650)
 * Status: resolved