• Resolved drskullster

    (@drskullster)


    Hi,

    I’m using WP-Cycle plugin and I love it. But the plugin was suddently deactivated and wordpress won’t let me reactivate it because of this error :
    Fatal error: Cannot redeclare wp_cycle_register_settings() (previously declared in /[...]/wp-content/plugins/wp-cycle/wp-cycle.php:48) in /[...]/wp-content/plugins/__wp-cycle/wp-cycle.php on line 50

    Here’s what’s in the file:

    //	this function registers our settings in the db
    add_action('admin_init', 'wp_cycle_register_settings');
    function wp_cycle_register_settings() {
    	register_setting('wp_cycle_images', 'wp_cycle_images', 'wp_cycle_images_validate');
    	register_setting('wp_cycle_settings', 'wp_cycle_settings', 'wp_cycle_settings_validate');
    }

    I’m sorry but I’m not familiar with wp plugin development. Can you tell me how I can make it work ?

    Thanks a lot,
    John

    http://wordpress.org/extend/plugins/wp-cycle/

Viewing 1 replies (of 1 total)
  • Thread Starter drskullster

    (@drskullster)

    ok nevermind, I made a backup folder to test a previous version and forgot to remove it. So I had two folders with the same plugin (_wp-cycle and wp-cycle), that’s why I got this error. Stupid mistake 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Cycle] Fatal error: Cannot redeclare wp_cycle_register_settings()’ is closed to new replies.