Title: PHP error:  Illegal string offset &#039;text_string&#039;
Last modified: August 21, 2016

---

# PHP error: Illegal string offset 'text_string'

 *  Resolved [wwwoffers](https://wordpress.org/support/users/wwwoffers/)
 * (@wwwoffers)
 * [12 years ago](https://wordpress.org/support/topic/php-error-illegal-string-offset-text_string/)
 * I’m getting an error on my contact form page – I think it has possibly happened
   since I upgraded to the latest version of PHP.
 * It says:
 * Illegal string offset ‘text_string’ in /wp-content/plugins/contact-form-with-
   captcha/cfwc-main.php on line 269
 * (Actually it gives the complete path, but I think I have supplied the important
   bit.)
 * I have the version 1.6 of cfwc installed. Hope it’s an easy fix…
 * Thanks
 * [https://wordpress.org/plugins/contact-form-with-captcha/](https://wordpress.org/plugins/contact-form-with-captcha/)

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

 *  [Matt Bagley](https://wordpress.org/support/users/mydigitalwalk/)
 * (@mydigitalwalk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-illegal-string-offset-text_string/#post-4883681)
 * Ya, and this isn’t good. It’s your credit line:
 * `$cfwc_credit = $cfwc_credit['text_string'];`
 *  [dhjdhj](https://wordpress.org/support/users/dhjdhj/)
 * (@dhjdhj)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-error-illegal-string-offset-text_string/#post-4883688)
 * I just changed it to
 *     ```
       $cfwc_credit = 'None'; // $cfwc_credit['text_string'];
       ```
   
 * for now
 *  Plugin Author [Technology Blog](https://wordpress.org/support/users/zackhasit/)
 * (@zackhasit)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-illegal-string-offset-text_string/#post-4883705)
 * Default value should be true, so I don’t see this problem anywhere else except
   your case. Ill comment it for now in next update as I am not using it anyway.

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

The topic ‘PHP error: Illegal string offset 'text_string'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-with-captcha_ffffff.
   svg)
 * [Contact Form With Captcha](https://wordpress.org/plugins/contact-form-with-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-with-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-with-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-with-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-with-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-with-captcha/reviews/)

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 4 participants
 * Last reply from: [Technology Blog](https://wordpress.org/support/users/zackhasit/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-illegal-string-offset-text_string/#post-4883705)
 * Status: resolved