Title: Illegal string error
Last modified: March 12, 2019

---

# Illegal string error

 *  Resolved [BeHeard](https://wordpress.org/support/users/beheard/)
 * (@beheard)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-error-2/)
 * receiving this error
    public_html/wp-content/plugins/content-protector/src/class-
   ps-shortcode.php on line 179
 * Version 3.2.0.4

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

 *  [Netspark](https://wordpress.org/support/users/netspark/)
 * (@netspark)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-error-2/#post-11302809)
 * This applies to the same error I have. See my post.
 * Only recommendtion is to roll back to 3.1.9.1 which doesn’t have this error.
 *  [Countdown Web Design](https://wordpress.org/support/users/marketingmike/)
 * (@marketingmike)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-error-2/#post-11309683)
 * Just adding the same error occurred for me and the rollback does work.
 * Can the plugin author provide an update on the fix?
 *  [Ron5](https://wordpress.org/support/users/ron5/)
 * (@ron5)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-error-2/#post-11311944)
 * Warning: Illegal string offset ‘toggle_amp’ in …/wp-content/plugins/content-protector/
   src/class-ps-shortcode.php on line 179
 * Please fix.
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-error-2/#post-11315135)
 * Hey [@beheard](https://wordpress.org/support/users/beheard/), [@netspark](https://wordpress.org/support/users/netspark/),
   [@marketingmike](https://wordpress.org/support/users/marketingmike/) and [@ron5](https://wordpress.org/support/users/ron5/),
 * this was fixed now in 3.2.0.5.
 * Best regards,
    Patrick
 *  [markwadetaylor](https://wordpress.org/support/users/markwadetaylor/)
 * (@markwadetaylor)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/illegal-string-error-2/#post-11386221)
 * Updated to 3.2.0.5 and it’s still happening
    [http://www.tampawriters.org/wp/](http://www.tampawriters.org/wp/)
 * Follow-up:
 * The error message at the top of the screen did not disappear after updating the
   plugin until I actually attempted to use a password-protected page. At that point,
   the message cleared.
    -  This reply was modified 7 years, 1 month ago by [markwadetaylor](https://wordpress.org/support/users/markwadetaylor/).

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

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

 * ![](https://ps.w.org/content-protector/assets/icon-256x256.png?rev=2206760)
 * [Passster - Password Protect Pages and Content](https://wordpress.org/plugins/content-protector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-protector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-protector/)
 * [Active Topics](https://wordpress.org/support/plugin/content-protector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-protector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-protector/reviews/)

 * 5 replies
 * 6 participants
 * Last reply from: [markwadetaylor](https://wordpress.org/support/users/markwadetaylor/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/illegal-string-error-2/#post-11386221)
 * Status: resolved