• Resolved jbrichez

    (@jbrichez)


    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://ww.wp.xz.cn/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.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @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:

    and send us a link to the page where we can see the problem.

    Best regards,
    Laszlo.

    Thread Starter jbrichez

    (@jbrichez)

    Hello @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

    (@laszloszalvak)

    Just in case if somebody would also experienced this problem:

    As we discussed this problem with @jbrichez
    this problem was caused by the theme, as it fired the widgets_init action itself multiple times:

    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.