Title: Error with custom theme
Last modified: September 14, 2018

---

# Error with custom theme

 *  [westcoastdigital](https://wordpress.org/support/users/westcoastdigital/)
 * (@westcoastdigital)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/)
 * Clients site has custom theme and trying to install SEOPress but getting the 
   following error
    `Fatal error: Cannot redeclare seopress_advanced_appearance_adminbar_option()(
   previously declared in /wp-content/plugins/wp-seopress/inc/functions/options.
   php:284) in /wp-content/plugins/wp-seopress/inc/functions/options.php on line
   283` I have disabled all other plugins so it is not conflicting there, and if
   I switch over to twentysevventeen theme then all is fine so have isolated it 
   to the theme.
 * The function doesnt exist in the theme so cannot see what could be causing the
   conflict, any ideas?

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

 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/#post-10687154)
 * Hi,
    can you copy and paste the code of this file? Can you try to remove and 
   reinstall the plugin? (you will NOT lose any data)
 *  Thread Starter [westcoastdigital](https://wordpress.org/support/users/westcoastdigital/)
 * (@westcoastdigital)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/#post-10687160)
 * Hey Benjamin, its the file in your plugin, I have not done any changes to the
   plugin and version is current.
 *  Thread Starter [westcoastdigital](https://wordpress.org/support/users/westcoastdigital/)
 * (@westcoastdigital)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/#post-10687162)
 * I have removed, reinstalled and created a site on my local valet server so I 
   can try and debug the theme/plugin.
 *  Thread Starter [westcoastdigital](https://wordpress.org/support/users/westcoastdigital/)
 * (@westcoastdigital)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/#post-10701678)
 * No solution or info? Tried changing from Yoast to SEOPress, but looks like going
   back to Yoast. Thanks anyway
 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/#post-10704268)
 * Sorry, I thought you had to come back to me after doing tests on your local installation.
   Do you still encounter the same error? Have you followed this installation guide?
   
   [https://www.seopress.org/support/guides/get-started-seopress/](https://www.seopress.org/support/guides/get-started-seopress/)

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

The topic ‘Error with custom theme’ is closed to new replies.

 * ![](https://ps.w.org/wp-seopress/assets/icon-128x128.gif?rev=3158903)
 * [SEOPress - AI SEO Plugin & On-site SEO](https://wordpress.org/plugins/wp-seopress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-seopress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-seopress/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-seopress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-seopress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-seopress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-custom-theme/#post-10704268)
 * Status: not resolved