• Resolved lavandaol

    (@lavandaol)


    Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /home/microl/microscope.org.ua/www/wp/wp-includes/functions.php on line 2959

    Notice: Функция add_custom_background с версии 3.4 считается устаревшей! Используйте add_theme_support( ‘custom-background’, $args ). in /home/microl/microscope.org.ua/www/wp/wp-includes/functions.php on line 2839

    Notice: Функция has_cap вызвана с аргументом, который считается устаревшим с версии 2.0! Использование уровней пользователей в плагинах и темах считается устаревшим. Используйте роли и возможности.. in /home/microl/microscope.org.ua/www/wp/wp-includes/functions.php on line 2923

    Notice: Undefined index: page in /home/microl/microscope.org.ua/www/wp/wp-content/themes/FreshLook/functions.php on line 139

    Notice: Функция register_setting вызвана с аргументом, который считается устаревшим с версии 3.5! Группа настроек «privacy» была удалена. Используйте другую группу настроек.. in /home/microl/microscope.org.ua/www/wp/wp-includes/functions.php on line 2923

    Notice: Функция add_settings_field вызвана с аргументом, который считается устаревшим с версии 3.5! Группа «Приватность» была удалена. Используйте другую группу настроек.. in /home/microl/microscope.org.ua/www/wp/wp-includes/functions.php on line 2923

    http://wordpress.org/extend/plugins/nextgen-gallery/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Here, try this one buddy. Worked for me.

    [resolved] register_uninstall_hook was called incorrectly

    Just change
    register_uninstall_hook( $this->plugin_name, array(&$this, ‘uninstall’)
    back into
    register_uninstall_hook( $this->plugin_name, array(‘nggLoader’, ‘uninstall’)
    in nggallery.php

    Credit to ZjanPreijde

    Thread Starter lavandaol

    (@lavandaol)

    The answer was:
    === Parse error: syntax error, unexpected ‘;’ in /home/microl/microscope.org.ua/www/wp/wp-content/plugins/nextgen-gallery/nggallery.php on line 81 ===

    a part of php code:
    ===

    // Get some constants first
    $this->load_options();
    $this->define_constant();
    $this->define_tables();
    $this->load_dependencies();
    $this->start_rewrite_module();

    $this->plugin_name = basename(dirname(__FILE__)).’/’.basename(__FILE__);

    // Init options & tables during activation & deregister init option
    register_activation_hook( $this->plugin_name, array(&$this, ‘activate’) );
    register_deactivation_hook( $this->plugin_name, array(&$this, ‘deactivate’) );

    // Register a uninstall hook to remove all tables & option automatic
    // !! register_uninstall_hook( $this->plugin_name, array(&$this, ‘uninstall’) );

    register_uninstall_hook( $this->plugin_name, array(‘nggLoader’, ‘uninstall’);

    // Start this plugin once all other plugins are fully loaded
    add_action( ‘plugins_loaded’, array(&$this, ‘start_plugin’) );

    ===

    Thanks if you can help!!

    Thread Starter lavandaol

    (@lavandaol)

    The answer of WP:
    Parse error: syntax error, unexpected ‘;’ in /home/microl/microscope.org.ua/www/wp/wp-content/plugins/nextgen-gallery/nggallery.php on line 81

    Thread Starter lavandaol

    (@lavandaol)

    A part of code:

    // Get some constants first
    $this->load_options();
    $this->define_constant();
    $this->define_tables();
    $this->load_dependencies();
    $this->start_rewrite_module();

    $this->plugin_name = basename(dirname(__FILE__)).’/’.basename(__FILE__);

    // Init options & tables during activation & deregister init option
    register_activation_hook( $this->plugin_name, array(&$this, ‘activate’) );
    register_deactivation_hook( $this->plugin_name, array(&$this, ‘deactivate’) );

    // Register a uninstall hook to remove all tables & option automatic
    // !! register_uninstall_hook( $this->plugin_name, array(&$this, ‘uninstall’) );

    register_uninstall_hook( $this->plugin_name, array(‘nggLoader’, ‘uninstall’);

    Have you edited the code in some way?

    Thread Starter lavandaol

    (@lavandaol)

    Before this – never. only when you said to do!
    Is NG Gallery needed to be uninstalled and installed again?

    Perhaps. I think it is worth a try. I’m afraid I can’t help you with the other error messages. This fix I proposed only works with the first error message you mentioned:

    Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /home/microl/microscope.org.ua/www/wp/wp-includes/functions.php on line 2959

    Thread Starter lavandaol

    (@lavandaol)

    Thank you anyway!!

    Soon, I’ll try NGG with another WP template!

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

The topic ‘I have a problem!!’ is closed to new replies.