Title: Illegal string offset
Last modified: August 21, 2017

---

# Illegal string offset

 *  Resolved [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/)
 * Hi,
 * The plugin shows a ‘Illegal string offset’ warning in error_log when I send an
   e-mail using the plugin Contact Form 7. Also, it shows to the user the message‘
   An error has occurred. Please try again later’. Although, the contact form sends
   the e-mail.

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

 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9428426)
 * Ok, i will check it soon and update it.
 *  Thread Starter [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9428450)
 * Ok, thanks a lot!
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9428521)
 * I have just released the version 1.1.2. Please check and confirm if issue has
   been resolved or not?
 *  Thread Starter [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9428586)
 * Hi Fahad,
 * Thanks for your quick response. It didn’t work. To help you more, here is the
   error_log messages I get:
 * ======================>
    Illegal string offset ‘contact-us’ in /var/www/vhosts/…/
   httpdocs/wp-content/plugins/injection-guard/guard.php on line 72
 * Illegal string offset ‘contact-us’ in /var/www/vhosts/…/httpdocs/wp-content/plugins/
   injection-guard/guard.php on line 76
 * array_merge(): Argument #1 is not an array in /var/www/vhosts/…/httpdocs/wp-content/
   plugins/injection-guard/guard.php on line 76
 * Illegal string offset ‘contact-us’ in /var/www/vhosts/…/httpdocs/wp-content/plugins/
   injection-guard/guard.php on line 76
 * Illegal string offset ‘contact-us’ in /var/www/vhosts/…/httpdocs/wp-content/plugins/
   injection-guard/guard.php on line 77
 * array_unique() expects parameter 1 to be array, string given in /var/www/vhosts/…/
   httpdocs/wp-content/plugins/injection-guard/guard.php on line 77
 * Illegal string offset ‘contact-us’ in /var/www/vhosts/…/httpdocs/wp-content/plugins/
   injection-guard/guard.php on line 77
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9429213)
 * Please check version 1.1.3 and let me know if some warnings or notices are gone?
 *  Thread Starter [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9429894)
 * Hi Fahad,
 * Unfortunately, no. They’re still almost the same warnings.
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9430215)
 * Is it possible that i can check it in your system? Of you can provide the steps
   that how can i see the same warnings?
 *  Thread Starter [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9430337)
 * Tell me where can I send you an e-mail with the warnings regarding the issue 
   and where you can test it.
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9430404)
 * Please check my profile, there is my website link. You can reach me.
 *  Thread Starter [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9475130)
 * Hi Fahad,
 * Sorry for the delay. I just sent you an e-mail.
 *  Thread Starter [PapGeo](https://wordpress.org/support/users/papgeo/)
 * (@papgeo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9475163)
 * Hi again
 * It seems that works now. I created another custom contact form and worked!
 * Thanks for your time and sorry for the trouble.

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

The topic ‘Illegal string offset’ is closed to new replies.

 * ![](https://ps.w.org/injection-guard/assets/icon-256x256.png?rev=1361282)
 * [Injection Guard](https://wordpress.org/plugins/injection-guard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/injection-guard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/injection-guard/)
 * [Active Topics](https://wordpress.org/support/plugin/injection-guard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/injection-guard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/injection-guard/reviews/)

## Tags

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

 * 11 replies
 * 2 participants
 * Last reply from: [PapGeo](https://wordpress.org/support/users/papgeo/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-37/#post-9475163)
 * Status: resolved