• Resolved andrewm57

    (@andrewm57)


    error log, with time/date/path obscured.

    [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:163
    Stack 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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author wsameer

    (@wsameer)

    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

    (@andrewm57)

    The new version installed and activated OK. However the shortcode isn’t triggering.
    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

    (@wsameer)

    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

    (@wsameer)

    I found the solution to shortcode not working. Paste these 2 lines of code at end in the wordpress theme’s functions.php file.

    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

    (@andrewm57)

    Thanx for the quick support. My client chose not to use this feature.

    Plugin Author wsameer

    (@wsameer)

    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.