WordPress.org

Forums

Dynamic Widgets
[resolved] PHP error in error log (4 posts)

  1. yoyoma1974
    Member
    Posted 1 year ago #

    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/

  2. Qurl
    Member
    Plugin Author

    Posted 1 year ago #

    I think this is something with your specific configuration the function get_option is a very common WordPress function.

  3. JohnChandlerEdmonton
    Member
    Posted 10 months ago #

    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

    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

    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

    Thanks.

  4. Qurl
    Member
    Plugin Author

    Posted 10 months ago #

    The hacker won't come far. But yeah, this error can be prevented that way. It will be added.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dynamic Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags