Title: Illegal string offset
Last modified: August 24, 2016

---

# Illegal string offset

 *  Resolved [myattitude](https://wordpress.org/support/users/myattitude/)
 * (@myattitude)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/)
 * Upon plugin activation, I’m getting the following errors at the top of my pages:
 * Warning: Illegal string offset ‘tools’ in /homepages/16/d424488600/htdocs/clickandbuilds/
   mywebsite/wp-content/plugins/wp-edit/main.php on line 2311
 * Warning: Illegal string offset ‘fontsize_formats’ in /homepages/16/d424488600/
   htdocs/clickandbuilds/mywebsite/wp-content/plugins/wp-edit/main.php on line 2326
 * Warning: Illegal string offset ‘style_formats’ in /homepages/16/d424488600/htdocs/
   clickandbuilds/mywebsite/wp-content/plugins/wp-edit/includes/style_formats.php
   on line 924
 * Warning: Illegal string offset ‘style_formats_merge’ in /homepages/16/d424488600/
   htdocs/clickandbuilds/mywebsite/wp-content/plugins/wp-edit/includes/style_formats.
   php on line 935
 * My theme is OptimizePress but that’s not the problem. WP latest version.
 * Help
 * [https://wordpress.org/plugins/wp-edit/](https://wordpress.org/plugins/wp-edit/)

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

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175359)
 * Hello,
    Thank you very much for the important feedback.
 * No, the issue is certainly not the theme; I can see in my code where the issue
   lies.
 * So, please allow me 24 to 48 hours to fix; and I’ll get a new version pushed 
   out asap.
 * Thanks again!
 *  [reliableopinion](https://wordpress.org/support/users/reliableopinion/)
 * (@reliableopinion)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175405)
 * Warning: Illegal string offset ‘url’ in /home3/several/public_html/cashstressrelief.
   com/wp-content/plugins/wphercules/modules/template/template-sales.php on line
   73
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175415)
 * Hello @**reliableopinion**,
 * Thanks for the input. However, your error is being generated by the “WP Hercules”
   plugin… not from WP Edit.
 *  Thread Starter [myattitude](https://wordpress.org/support/users/myattitude/)
 * (@myattitude)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175416)
 * Thanks Josh, look forward to it.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175430)
 * Hi @**myattitude**,
    No worries.
 * Do me a favor.
    Go to the WP Edit settings page; and click the “About” tab. Look
   at your PHP version… what does it say?
 *  Thread Starter [myattitude](https://wordpress.org/support/users/myattitude/)
 * (@myattitude)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175437)
 * 5.5.24
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175455)
 * Okay.. I have a beta version I’d like you to give a quick test, if you don’t 
   mind.
 * You can “[get to know me](https://wpeditpro.com/contact/)” from the link 😉
    
   I’ll reply to your email.. and send you the beta version.
 * Thanks.
 *  [gcozzens](https://wordpress.org/support/users/gcozzens/)
 * (@gcozzens)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175485)
 * I had a similar problem and worked through it with Josh. This issue is with OptimizePress
   version 1. Unfortunately they are no longer supporting it, but Josh told me how
   to edit their file so it now works flawlessly. Thanks Josh.
 *  Thread Starter [myattitude](https://wordpress.org/support/users/myattitude/)
 * (@myattitude)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175486)
 * Ah, that must be it.
 * Josh sorry I haven’t got back to you, it’s been very busy at my end.
 * If you can include the fix here for the rest of us to see then we can all benefit
   from the solution.
 * Regards
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175487)
 * Oops… I thought **[@gcozzens](https://wordpress.org/support/users/gcozzens/)**
   and **[@myattitude](https://wordpress.org/support/users/myattitude/)** were the
   same person. It gets confusing when I start communicating via email 😉
 * **[@myattitude](https://wordpress.org/support/users/myattitude/)**,
    Are you 
   using the version 1 framework of OptimizePress?
 *  Thread Starter [myattitude](https://wordpress.org/support/users/myattitude/)
 * (@myattitude)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175488)
 * Yes version 1 🙂
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175490)
 * Okay… here is what you need to do:
 * 1) Use either FTP or cPanel to gain access to your file directories.
    2) Browse
   to the “wp-content/themes/optimizepress” directory. 3) Locate the file “functions.
   php” within that directory. 4) MAKE A BACKUP OF THAT FILE. 5) Open “functions.
   php” in a code editor program ([NotePad++](https://notepad-plus-plus.org) is 
   free). Your cPanel may have a default program for code editing. 6) Browse to 
   around line numbers 115 and 116; and look for the following piece of code:
 *     ```
       apply_filters( 'tiny_mce_before_init', 'nice_mce_options' );
       apply_filters( 'teeny_mce_before_init', 'nice_mce_options' );
       ```
   
 * 7) CHANGE those lines of code to the following:
 *     ```
       add_filter( 'tiny_mce_before_init', 'nice_mce_options' );
       add_filter( 'teeny_mce_before_init', 'nice_mce_options' );
       ```
   
 * 8) Save the changes.
 * Now, the warnings should be gone.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175515)
 * Okay; I’m going to mark this topic as “resolved”.
 * Please let me know if any of you still experience any issues after making the
   code adjustment above.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-edit_ffffff.svg)
 * [WP Edit](https://wordpress.org/plugins/wp-edit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-edit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-edit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-edit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-edit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-edit/reviews/)

## Tags

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

 * 13 replies
 * 4 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-16/#post-6175515)
 * Status: resolved