• dustineli

    (@dustineli)


    I tried the shortcode and get this error on a page. I made a clean install with no plugins. Also tried the widget in the footer but nothing appears and no error.

    Deprecated: Non-static method Planetary_Position_Widget::widget() should not be called statically in /var/www/vhosts/iamsangha.com/sidereal.iamsangha.com/wp-includes/shortcodes.php on line 355

    Warning: extract() expects parameter 1 to be array, string given in /var/www/vhosts/iamsangha.com/sidereal.iamsangha.com/wp-content/plugins/planetary-position/widgets/planetary-position-widget.php on line 34

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

    (@wsameer)

    Shortcode should be used in post / page, because it sometimes does/sometimes dont work in sidebar or footer. For use in Sidebar/Footer, drag the “Planetary Position Widget” and put it in the specific sidebar location. I work with Classic Wdgets so current Block method of putting an exsiting widget to sidebar may be different.

    Hope that works for you.

    Plugin Author wsameer

    (@wsameer)

    Just did a fresh wordpress install and apparently i was mistaken thinking that wordpress came with jquey files.

    It doesn’t so have added the required jquery files to plugin.

    Check with latest download which contains the required jquery files.

    Thread Starter dustineli

    (@dustineli)

    cool, thanks. I will give it a try. the shortcode I used was on a page but still getting that error. I will let you know how it goes.

    Thread Starter dustineli

    (@dustineli)

    I have the current version 1.4 and still seeing those errors with a shortcode on a page. And i also tried the Widget in a footer and nothing appears.

    Thread Starter dustineli

    (@dustineli)

    okay, even though I had 1.4. I deleted it and reinstalled and now the Shortcode works! and the charts appear but this error is still at top

    Deprecated: Non-static method Planetary_Position_Widget::widget() should not be called statically in /var/www/vhosts/iamsangha.com/sidereal.iamsangha.com/wp-includes/shortcodes.php on line 355

    Plugin Author wsameer

    (@wsameer)

    You can alter code functions to add static to their definition or remove DEPRECATED option.

    Adding static to non static function can be issue for $this variable. Substitute with “self::$instance” where $this is placed.

    I am not getting the DEPRECATED non-static warning so asking you to make code changes as you see fit.

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

The topic ‘depracated php error’ is closed to new replies.