WordPress.org

Ready to get started?Download WordPress

Forums

WP-Cycle
[resolved] Fatal error: Cannot redeclare wp_cycle_register_settings() (2 posts)

  1. drskullster
    Member
    Posted 2 years ago #

    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/

  2. drskullster
    Member
    Posted 2 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic