WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Lots of warnings when viewing page with shortcode

[Resolved] Lots of warnings when viewing page with shortcode

  • helgatheviking
    Participant

    @helgatheviking

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ternstyle
    Participant

    @mpraetzel

    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.

    helgatheviking
    Participant

    @helgatheviking

    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.

    Plugin Author ternstyle
    Participant

    @mpraetzel

    Familiar with the function. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Lots of warnings when viewing page with shortcode’ is closed to new replies.