• After updating Jetpack I saw a fatal error and was locked out of my site. Couldn’t get back in to administer or to try anything. Dreamhost renamed Jetpack to Jetpack.old to get the site up and running again. My call to Dreamhost:
    My website disappeared while updating the Jetpack plugin:

    Fatal error: Cannot redeclare class Contact_Info_Widget in /home/fgmb/fgmb.dreamhosters.com/wp-content/themes/nimva/functions/widget-contac t.php on line 118

    Now the site doesn’t load and I can’t get into the admin pages! I also just installed the Nimva theme, and updated its three mandatory plugins. Help!

    Their response:

    Hello,

    Thank you for contacting technical support.

    It looks like there was indeed an issue with jetpack. I have gone ahead
    and disabled this plugin by renaming the jetpack directory to
    jetpack.old. Your site is up and loading correctly now:

    https://fgmb.dreamhosters.com/

    I would recommend removing and reinstalling the plugin or contacting the
    plugin developers to see what the issue could be. Should you have any
    other questions or require additional assistance please feel free to
    contact technical support again.

    Thank you
    Antonio M

    I’m a little scared to reinstall Jetpack… or is this The Nimva theme’s fault? I have end users depending on this site.

Viewing 1 replies (of 1 total)
  • Mika Epstein

    (@ipstenu-dh)

    DreamHost Rep

    Fatal error: Cannot redeclare class Contact_Info_Widget in /home/fgmb/fgmb.dreamhosters.com/wp-content/themes/nimva/functions/widget-contac t.php on line 118

    What that means is that ‘something’ is declaring the class Contact_Info_Widget besides your theme nimva.

    Here’s some weird code search info:

    # grep -r "Contact_Info_Widget" .
    ./nimva/builder/js_composer/composer/shortcodes_templates/vc_wp_contact_us.php:$type = 'Contact_Info_Widget';
    ./nimva/functions/widget-contact.php:	register_widget('Contact_Info_Widget');
    ./nimva/functions/widget-contact.php:class Contact_Info_Widget extends WP_Widget {
    ./nimva/functions/widget-contact.php:	function Contact_Info_Widget()

    and

    # grep -r "Contact_Info_Widget" .
    ./jetpack.old/modules/widgets/contact-info.php:if ( ! class_exists( 'Contact_Info_Widget' ) ) {
    ./jetpack.old/modules/widgets/contact-info.php:	//register Contact_Info_Widget widget
    ./jetpack.old/modules/widgets/contact-info.php:		register_widget( 'Contact_Info_Widget' );
    ./jetpack.old/modules/widgets/contact-info.php:	class Contact_Info_Widget extends WP_Widget {

    So yes, they both use the code, but JETPACK properly only calls if it doesn’t exists (that’s the if ( ! class_exists( 'Contact_Info_Widget' ) ) {... bit)

    I would contact the theme dev and tell them they have a conflict with Jetpack. That’s a pretty big plugin to clash with, and one they can fix with a simple check to see if the class exists before declaring it: https://www.rockythemes.com/nimva/

Viewing 1 replies (of 1 total)
  • The topic ‘Jetpack won't load, triggers fatal error’ is closed to new replies.