WordPress.org

Ready to get started?Download WordPress

Forums

Rich Text Sidebar Widget
Persistent "warning" message. (5 posts)

  1. Dragons Eye
    Member
    Posted 1 year ago #

    Hello.

    I have this:

    "Warning: Creating default object from empty value in F:\xampp\htdocs\members\wp-content\plugins\rich-text-sidebar-widget\rich-text-sidebar-widget.php on line 52"

    * * *

    Is there a fix for this?

    I would hate to have to contend with this message displaying on the page when I go to deploy my WordPress installation.

    This is from a "localhost" running copy. I like to preview and "test-drive" my web content before I deploy them.

    http://wordpress.org/extend/plugins/rich-text-sidebar-widget/

  2. Dragons Eye
    Member
    Posted 1 year ago #

    To add:

    Half of the functions will not display.

    I can not pick font size, etc.

  3. n7 Studios
    Member
    Plugin Author

    Posted 1 year ago #

    An update to remove the warning message will appear soon.

    Meantime, you can ensure that on your live environment you're not outputting these warnings by ensuring error_reporting is set to E_ALL ^ E_NOTICE:

    error_reporting(E_ALL ^ E_NOTICE);

    Which half of the functions do not display? The widget doesn't advertise that it provides a "font size, etc" option, and this isn't included in the WordPress Editor by default.

  4. lorem_ipsum
    Member
    Posted 1 year ago #

    Hi, I do have this message too.

    Warning: Creating default object from empty value in /wp/wp-content/plugins/rich-text-sidebar-widget/rich-text-sidebar-widget.php on line 52.

    I could of course ajust my error level, but I wont, because I need to know what's wrong on my website. An error, even a notice, should be traited, not hidden.

  5. Dragons Eye
    Member
    Posted 1 year ago #

    ** Meantime, you can ensure that on your live environment you're not outputting these warnings by ensuring error_reporting is set to E_ALL ^ E_NOTICE:

    error_reporting(E_ALL ^ E_NOTICE); **

    I like the thought, but I would not recommend this action. I say this because if the folks who develop PHP, one day, decide to make some of those conditions "critical errors", due to deprecating certain methods, this would become a "stopper" instead of just a "warning".

    Also, to add to "Lorem Ipsum's" thoughts above, I would rather not disable the error-level warnings because I use those messages to help me clean up my own code.

    As to the non-implementation of a font-select option, I know this can be done through PHP and HTML on the widget side. This may become a desired feature, based on the feedback from other users. This would have little effect as far as the WordPress install is concerned. It was just a "floating of ideas". Also, the Tiny MCE portion does, in fact, support font-selection.

    Anyway, I have found the plugin that best suits my purposes. All projects evolve over time, so I look forward to what features will become in future releases. :-)

    - Jim

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic