• Resolved eric0301

    (@eric0301)


    Hi,
    I’m using Swift Theme in my wordpress site, but if I instal WP Social SEO Booster plugins, my site get error/crash with the following error:

    Fatal error: Cannot redeclare class Mobile_Detect in /home/XXXX/public_html/wp-content/themes/swift/lib/functions/Mobile_Detect.php on line 16

    Hon can i solve it?

    https://www.ads-software.com/plugins/wp-social-seo-booster/

Viewing 1 replies (of 1 total)
  • Plugin Author Daniel

    (@dwaser71)

    Hi,

    This error does come up, because the theme does include a public available class (here the Mobile Class) without checking first, if the class already exists. The error can get resolved by first checking if the class exists, before including like:

    if( !class_exists( 'Mobile_Detect' ) ) {
     include class
    }

    Maybe you can inform the theme developer about that.

    Daniel

Viewing 1 replies (of 1 total)
  • The topic ‘WP Social SEO Booster Crash With Swift Theme’ is closed to new replies.