WordPress.org

Ready to get started?Download WordPress

Forums

Members List Plugin
[resolved] Lots of warnings when viewing page with shortcode (4 posts)

  1. helgatheviking
    Member
    Posted 1 year ago #

    When I load the page that has the members list short code I get a lot of warnings about illegal string offsets.

    Warning: Illegal string offset 'list' in \wp-content\plugins\members-list\class\members.php on line 58

    Warning: Illegal string offset 'search' in \wp-content\plugins\members-list\class\members.php on line 64

    http://wordpress.org/extend/plugins/members-list/

  2. mpraetzel
    Member
    Plugin Author

    Posted 9 months ago #

    The plugin is looking for the values of possible settings of the shortcode. When not set you get a warning. Easiest thing would be to turn PHP warnings off.

  3. helgatheviking
    Member
    Posted 9 months ago #

    Of course I could turn PHP warnings off, but warnings tell you where you can improve your code.

    Before using a variable, you could check if it is isset() and avoid this warning.

  4. mpraetzel
    Member
    Plugin Author

    Posted 9 months ago #

    Familiar with the function. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.