Title: PHP fatal error
Last modified: March 6, 2023

---

# PHP fatal error

 *  Resolved [andrewm57](https://wordpress.org/support/users/andrewm57/)
 * (@andrewm57)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/)
 * error log, with time/date/path obscured.
 *     ```wp-block-code
       [date time] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /path/to/mysite/wp-content/plugins/planetary-position/class-planetary-position.php:163Stack trace:
   
       0 /path/to/mysite/wp-content/plugins/planetary-position/class-planetary-position.php(163): array_merge(NULL, Array)
   
       1 /path/to/mysite/wp-content/plugins/planetary-position/class-planetary-position.php(32): Planetary_Position->_getCurrentOptions()
   
       2 /path/to/mysite/wp-content/plugins/planetary-position/class-planetary-position.php(46): Planetary_Position->__construct()
   
       3 /path/to/mysite/wp-includes/class-wp-hook.php(308): Planetary_Position::get_instance('')
   
       4 /path/to/mysite/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
   
       5 /path/to/mysite/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       6 /path/to/mysite/wp-settings.php(480): do_action('plugins_loaded')
   
       7 /path/to/mysite/wp-config.php(96): require_once('/home/wildmercu…')
   
       8 /path/to/mysite/wp-load.php(50): require_once('/home/wildmercu…')
   
       9 /path/to/mysite/wp-admin/admin-ajax.php(22): require_once('/home/wildmercu…')
   
       10 {main}
   
       thrown in /path/to/mysite/wp-content/plugins/planetary-position/class-planetary-position.php on line 163
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-346%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [wsameer](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16534947)
 * I got this as a warning instead of error, maybe your config is set to mark warnings
   as errors.
 * A bug in initialization of default_options variable (which was set to NULL instead
   of array() ).
 * Now fixed.
 * Hope you like the plugin, and i will appreciate feedback.
 *  Thread Starter [andrewm57](https://wordpress.org/support/users/andrewm57/)
 * (@andrewm57)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16537581)
 * The new version installed and activated OK. However the shortcode isn’t triggering.
   
   [https://dev.wildmercury.biz/](https://dev.wildmercury.biz/)FWIW I did get it
   to run in the Footer2 widget, but it’s not what my client is looking for, so 
   I’ll uninstall it after take a look. Thanx for the help.
 *  Plugin Author [wsameer](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16537888)
 * Some themes don’t execute the shortcode in “Custom HTML” widget. Alternative 
   is to use the “Planetary Position Widget” instead of shortcode. The shortcode
   DOES WORK in posts and pages though.
 *  Plugin Author [wsameer](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16537985)
 * I found the solution to shortcode not working. Paste these 2 lines of code at
   end in the wordpress theme’s functions.php file.
 *     ```wp-block-code
       add_filter( 'widget_text', 'shortcode_unautop');
       add_filter( 'widget_text', 'do_shortcode');
       ```
   
 * That should make the [planets] shortcode work in Custom HTML widget.
 *  Thread Starter [andrewm57](https://wordpress.org/support/users/andrewm57/)
 * (@andrewm57)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16538295)
 * Thanx for the quick support. My client chose not to use this feature.
 *  Plugin Author [wsameer](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16538337)
 * Oh well, if there was some further customization required (because right now 
   there’s just 2 options), they could be suggested and done quickly.

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

The topic ‘PHP fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/planetary-position_d1cbd1.svg)
 * [Planetary Position](https://wordpress.org/plugins/planetary-position/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/planetary-position/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/planetary-position/)
 * [Active Topics](https://wordpress.org/support/plugin/planetary-position/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/planetary-position/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/planetary-position/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [wsameer](https://wordpress.org/support/users/wsameer/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-346/#post-16538337)
 * Status: resolved