Title: depracated php error
Last modified: May 25, 2023

---

# depracated php error

 *  [dustineli](https://wordpress.org/support/users/dustineli/)
 * (@dustineli)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/)
 * 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](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/#post-16772541)
 * 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](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/#post-16772606)
 * 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](https://wordpress.org/support/users/dustineli/)
 * (@dustineli)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/#post-16772742)
 * 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](https://wordpress.org/support/users/dustineli/)
 * (@dustineli)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/#post-16773356)
 * 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](https://wordpress.org/support/users/dustineli/)
 * (@dustineli)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/#post-16774026)
 * 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](https://wordpress.org/support/users/wsameer/)
 * (@wsameer)
 * [3 years ago](https://wordpress.org/support/topic/depracated-php-error/#post-16774128)
 * 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.

 * ![](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 ago](https://wordpress.org/support/topic/depracated-php-error/#post-16774128)
 * Status: not resolved