Title: PHP error in error log
Last modified: August 21, 2016

---

# PHP error in error log

 *  Resolved [yoyoma1974](https://wordpress.org/support/users/yoyoma1974/)
 * (@yoyoma1974)
 * [12 years ago](https://wordpress.org/support/topic/php-error-in-error-log/)
 * Hi,
 * I noticed this in my error logs and am wondering if it’s a known issue or if 
   it is something with my specific configuration:
 * [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_option()
   in /var/www/vhosts/mysitename.com/httpdocs/wp-content/plugins/dynamic-widgets/
   dynamic-widgets.php on line 71
 * It looks like this is line 71:
 *  define(‘DW_OLD_METHOD’, get_option(‘dynwid_old_method’));
 * Thanks for any assistance.
 * Tim
 * [https://wordpress.org/plugins/dynamic-widgets/](https://wordpress.org/plugins/dynamic-widgets/)

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

 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [12 years ago](https://wordpress.org/support/topic/php-error-in-error-log/#post-4978637)
 * I think this is something with your specific configuration the function `get_option`
   is a very [common](http://codex.wordpress.org/Function_Reference/get_option) 
   WordPress function.
 *  [JohnChandlerEdmonton](https://wordpress.org/support/users/johnchandleredmonton/)
 * (@johnchandleredmonton)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-error-log/#post-4978963)
 * I believe these errors are being caused by a hacker who is going around repeatedly
   opening
 * [http://—yoursiteurl—/wp-content/plugins/dynamic-widgets/dynamic-widgets.php](http://—yoursiteurl—/wp-content/plugins/dynamic-widgets/dynamic-widgets.php)
 * on our sites. And also other php files in the same directory. Try it and you 
   will see the error in the error log. Note also how many of the error logs in 
   this listing show the same problem: [https://www.google.ca/#q=Call+to+undefined+function+get_option()+in++dynamic-widgets%2Fdynamic-widgets.php+on+line+71](https://www.google.ca/#q=Call+to+undefined+function+get_option()+in++dynamic-widgets%2Fdynamic-widgets.php+on+line+71)
 * REQUESTED ACTION: Can this plugin be updated to put:
    defined(‘ABSPATH’) or die(“
   No script kiddies please!”); at the top of each file in the plugin.. as described
   here [http://codex.wordpress.org/Writing_a_Plugin](http://codex.wordpress.org/Writing_a_Plugin)
 * Thanks.
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-error-log/#post-4978964)
 * The hacker won’t come far. But yeah, this error can be prevented that way. It
   will be added.

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

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

 * ![](https://ps.w.org/dynamic-widgets/assets/icon-256x256.png?rev=2968917)
 * [Dynamic Widgets](https://wordpress.org/plugins/dynamic-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-widgets/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 3 participants
 * Last reply from: [Qurl](https://wordpress.org/support/users/qurl/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-error-in-error-log/#post-4978964)
 * Status: resolved