Title: PHP Fatal Error sidebars.php
Last modified: October 22, 2019

---

# PHP Fatal Error sidebars.php

 *  [bluePixel](https://wordpress.org/support/users/bluepixel/)
 * (@bluepixel)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-sidebars-php/)
 * Hi,
 * I’m getting this error when I run commands in SSH (eg. ‘disable plugin’ or ‘wp
   cron test’)
 * > PHP Fatal error: Uncaught Error: Call to a member function get_option() on 
   > null in /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-content/themes/
   > rife-free/a
   >  dvance/sidebars.php:54 Stack trace: #0 /home/334936.cloudwaysapps.
   > com/sqmxqgdqrt/public_html/wp-includes/class-wp-hook.php(286): apollo13framework_add_sidebars(”)#
   > 1 /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-includes/class-wp-
   > hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/334936.cloudwaysapps.
   > com/sqmxqgdqrt/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(
   > Array) #3 /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-includes/
   > widgets.php(1715): do_action(‘widgets_init’) #4 /home/334936.cloudwaysapps.
   > com/sqmxqgdqrt/public_html/wp-includes/class-wp-hook.php(286): wp_widgets_init(”)#
   > 5 /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-includes/class-wp-
   > hook.php(310): WP_Hook->apply_filters(NULL, Array) #6 /home/334936.cloudwaysapps.
   > com/sqmxqgdqrt/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(
   > Array) #7 in /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-content/
   > themes/rife-free/advance/sidebars.php on line 54 Fatal error: Uncaught Error:
   > Call to a member function get_option() on null in /home/334936.cloudwaysapps.
   > com/sqmxqgdqrt/public_html/wp-content/themes/rife-free/advanc e/sidebars.php:
   > 54 Stack trace: #0 /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-
   > includes/class-wp-hook.php(286): apollo13framework_add_sidebars(”) #1 /home/
   > 334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-includes/class-wp-hook.php(
   > 310): WP_Hook->apply_filters(NULL, Array) #2 /home/334936.cloudwaysapps.com/
   > sqmxqgdqrt/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)#
   > 3 /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-includes/widgets.
   > php(1715): do_action(‘widgets_init’) #4 /home/334936.cloudwaysapps.com/sqmxqgdqrt/
   > public_html/wp-includes/class-wp-hook.php(286): wp_widgets_init(”) #5 /home/
   > 334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-includes/class-wp-hook.php(
   > 310): WP_Hook->apply_filters(NULL, Array) #6 /home/334936.cloudwaysapps.com/
   > sqmxqgdqrt/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)#
   > 7 in /home/334936.cloudwaysapps.com/sqmxqgdqrt/public_html/wp-content/themes/
   > rife-free/advance/sidebars.php on line 54
 * Already follow the instruction to remove all custom sidebars on [This Post](https://support.apollo13.eu/discussion/5987/rife-pro-theme-error-when-moving-to-another-host)
   but still get the error
 * Could you please help?
 * Thanks,
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-sidebars-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Theme Author [apollo13themes](https://wordpress.org/support/users/apollo13themes/)
 * (@apollo13themes)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-sidebars-php/#post-12072936)
 * Hey 🙂
 * I will check what could be causing this error in some situations. Could you tell
   me which demo have you imported?
 * With kind regards.
    Air.
 *  [Hound](https://wordpress.org/support/users/houns/)
 * (@houns)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-sidebars-php/#post-12073190)
 * Hi,
 * I imported the UNICORN demo.
 * Thanks for your support,
 *  [beccytalk](https://wordpress.org/support/users/beccytalk/)
 * (@beccytalk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-sidebars-php/#post-12118276)
 * Hi there. In case it helps anyone else, I was having the same sidebar error:
   —
   It seems your theme is generating a Fatal Error: Fatal error: Uncaught Error:
   Call to a member function get_option() on null in /wp-content/themes/rife-free/
   advance/sidebars.php:54 —
 * Followed the instructions here
    [https://rifetheme.com/help/docs/customizing-the-theme/custom-sidebars/](https://rifetheme.com/help/docs/customizing-the-theme/custom-sidebars/)
   to remove custom sidebars and it fixed the issue.
 *  Theme Author [apollo13themes](https://wordpress.org/support/users/apollo13themes/)
 * (@apollo13themes)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-sidebars-php/#post-12122605)
 * Hey [@beccytalk](https://wordpress.org/support/users/beccytalk/) 🙂
 * Could you tell me more about when it happened? I am trying to hunt this bug for
   a long time, but I can not recreate it.
 * Was it a fresh installation or maybe it happened right after demo import? Any
   more details when it appeared?
 * With kind regards.
    Air.

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

The topic ‘PHP Fatal Error sidebars.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/rife-free/2.4.24/screenshot.png)
 * Rife Free
 * [Support Threads](https://wordpress.org/support/theme/rife-free/)
 * [Active Topics](https://wordpress.org/support/theme/rife-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/rife-free/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/rife-free/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [apollo13themes](https://wordpress.org/support/users/apollo13themes/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-sidebars-php/#post-12122605)
 * Status: not resolved