Title: First argument string or integer error
Last modified: April 9, 2018

---

# First argument string or integer error

 *  Resolved [atanaka](https://wordpress.org/support/users/atanaka/)
 * (@atanaka)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/first-argument-string-or-integer-error/)
 * In the past two weeks, I have started receiving the following error messages 
   regarding this plugin when logged in as any role in the admin area:
 *     ```
       Warning: array_key_exists(): The first argument should be either a string or an integer in /home/../public_html/wp-content/plugins/view-admin-as/includes/class-view.php on line 531
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/../public_html/wp-content/plugins/view-admin-as/includes/class-view.php:531) in /home/../public_html/wp-admin/includes/misc.php on line 1116
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffirst-argument-string-or-integer-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/first-argument-string-or-integer-error/#post-10160546)
 * Hi [@atanaka](https://wordpress.org/support/users/atanaka/),
 * Thank you for reporting this warning!
    Do you have a debug backtrace so I can
   see the flow in where this is called wrong? I can make a quick fix to prevent
   the warning but it’s always better to find the error at it’s source :).
 * Thanks! Jory
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/first-argument-string-or-integer-error/#post-10169431)
 * Hi [@atanaka](https://wordpress.org/support/users/atanaka/),
 * Let me know if you still encounter this error. It won’t be long until the next
   major version (1.8) is released and if possible I’d like to get this possible
   compatibility bug fixed!
 * Thanks in advance, Jory
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/first-argument-string-or-integer-error/#post-10238745)
 * Hi [@atanaka](https://wordpress.org/support/users/atanaka/),
 * I haven’t heard from you since 3 weeks so I’m assuming that your issue is resolved.
   
   Feel free to reopen this topic if it isn’t!
 * Regards, Jory

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

The topic ‘First argument string or integer error’ is closed to new replies.

 * ![](https://ps.w.org/view-admin-as/assets/icon-256x256.png?rev=1821735)
 * [View Admin As](https://wordpress.org/plugins/view-admin-as/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/view-admin-as/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/view-admin-as/)
 * [Active Topics](https://wordpress.org/support/plugin/view-admin-as/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/view-admin-as/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/view-admin-as/reviews/)

## Tags

 * [headers](https://wordpress.org/support/topic-tag/headers/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/first-argument-string-or-integer-error/#post-10238745)
 * Status: resolved