Title: Warning: Illegal string offset &#039;name&#039; &#8230;
Last modified: August 21, 2016

---

# Warning: Illegal string offset 'name' …

 *  [JeremyCh](https://wordpress.org/support/users/jeremych/)
 * (@jeremych)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-name/)
 * Getting this error in the popup “Add a new field by which to sort:”
 * Warning: Illegal string offset ‘name’ in /home/user/public_html/wp-content/plugins/
   members-list/core/sort.php on line 203
 * Warning: Illegal string offset ‘name’ in /home/user/public_html/wp-content/plugins/
   members-list/core/sort.php on line 211
 * Warning: Illegal string offset ‘name’ in /home/user/public_html/wp-content/plugins/
   members-list/core/sort.php on line 223
 * This is getting repeated many times.
 * Any idea please ?
    Thanks.
 * [https://wordpress.org/plugins/members-list/](https://wordpress.org/plugins/members-list/)

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

 *  [mirrera](https://wordpress.org/support/users/mirrera/)
 * (@mirrera)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-name/#post-4582279)
 * Hi I solved this…
    I had the warnings for members.php
 * In many places my code had this:
 *     ```
       if($a['search'] !== false and $a['search'] !== 'false') {
       			$r .= $this->search();
       		}
       ```
   
 * I had to change it to this to remove the warning:
 *     ```
       if(isset($a['search']) !== false and isset($a['search']) !== 'false') {
       			$r .= $this->search();
       		}
       ```
   
 * BUT then I lost my search box so instead of Not equal in the first part of the
   expression, I changed it to is equal (took away the !):
 * if(isset($a[‘search’]) == false and isset($a[‘search’]) !== ‘false’) {
    $r .=
   $this->search(); } I had to also change a line that looked like: `$this->list
   = $a['list'];`
 * to:
    `$this->list = isset($a['list']);`
 * The good news is that the warnings were accurate as far as the line the line 
   numbers were concerned. Hope that helps!
 *  [ChrisHPZ](https://wordpress.org/support/users/chrishpz/)
 * (@chrishpz)
 * [12 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-name/#post-4582358)
 * I tried your fix mirrera, but it didn’t work for me. Hope the plugin author fixes
   it because this seems like the plugin I need in the pinch that I’m in.
 *  [Becky Melton](https://wordpress.org/support/users/beckymelton1949/)
 * (@beckymelton1949)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-name/#post-4582363)
 * Thanks, mirrera! Thanks so much! This worked for me. Strange it is broken on 
   some sites, but not others. Is it a PHP version thing or something?
 * ChrisHPZ – Looks like you have wrap every variable with (isset(). You can find
   the file name and line numbers in the errors displayed on the page (/members-
   list/core/sort.php on line 203)

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

The topic ‘Warning: Illegal string offset 'name' …’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/members-list_a1a1a1.svg)
 * [Members List Plugin](https://wordpress.org/plugins/members-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/members-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/members-list/)
 * [Active Topics](https://wordpress.org/support/plugin/members-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/members-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/members-list/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Becky Melton](https://wordpress.org/support/users/beckymelton1949/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-name/#post-4582363)
 * Status: not resolved