Title: Warning: Cannot declare class N2SS3Widget
Last modified: September 4, 2020

---

# Warning: Cannot declare class N2SS3Widget

 *  Resolved [jbrichez](https://wordpress.org/support/users/jbrichez/)
 * (@jbrichez)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/)
 * Hello,
    I upgraded my website from 3.3 to 3.4 and now i got an error on my website
   page. I already followed the tips here: [https://wordpress.org/support/topic/cannot-declare-class-n2ss3widget](https://wordpress.org/support/topic/cannot-declare-class-n2ss3widget).
   But it don’t work.
 * my errors:
 *     ```
       Warning: Cannot declare class N2SS3Widget, because the name is already in use in /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Widget/WidgetHelper.php on line 28
   
       Warning: Cannot declare class N2SS3Widget, because the name is already in use in /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Widget/WidgetHelper.php on line 28
   
       Warning: Cannot declare class N2SS3Widget, because the name is already in use in /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Widget/WidgetHelper.php on line 28
   
       Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Widget/WidgetHelper.php:28) in /wp-includes/functions.php on line 6270
   
       Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Widget/WidgetHelper.php:28) in /wp-admin/includes/misc.php on line 1310
   
       Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Widget/WidgetHelper.php:28) in /wp-admin/admin-header.php on line 9
       ```
   
 * Thanks you.
    -  This topic was modified 5 years, 9 months ago by [jbrichez](https://wordpress.org/support/users/jbrichez/).

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

 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/#post-13360968)
 * Hi [@jbrichez](https://wordpress.org/support/users/jbrichez/)
 * Are you sure you followed all the steps my colleague Ramona suggested in that
   topic?
    If you did indeed, did you clear all kind of cache on your site after
   doing so? Since if you have a cache ( e.g. Cloudflare or a server cache ) that
   may earlier cached down your site with the warnings and keep returning it until
   the cache expired or it is cleared.
 * If you also cleared all kind of cache on your site and you still see the problem
   occur, then please rather open a support ticket over our contact form:
    - [https://smartslider3.com/contact-us/support/?ref=https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/](https://smartslider3.com/contact-us/support/?ref=https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/)
 * and send us a link to the page where we can see the problem.
 * Best regards,
    Laszlo.
 *  Thread Starter [jbrichez](https://wordpress.org/support/users/jbrichez/)
 * (@jbrichez)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/#post-13364521)
 * Hello [@laszloszalvak](https://wordpress.org/support/users/laszloszalvak/) ,
 * Yes i followed all the instructions. My website is not cached by any services
   and when i go to help page: “PHP – opcache.enable:” is 0.
 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/#post-13371960)
 * Just in case if somebody would also experienced this problem:
 * As we discussed this problem with [@jbrichez](https://wordpress.org/support/users/jbrichez/)
   
   this problem was caused by the theme, as it fired the widgets_init action itself
   multiple times:
    - [https://developer.wordpress.org/reference/hooks/widgets_init/](https://developer.wordpress.org/reference/hooks/widgets_init/)
 * instead of hooking the necessary function to this action.
 * The problem needed to be solved on the end of the theme, by correcting the way
   it registered the widgets.

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

The topic ‘Warning: Cannot declare class N2SS3Widget’ is closed to new replies.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-declare-class-n2ss3widget/#post-13371960)
 * Status: resolved