Title: Cannot assign an empty string to a string offset
Last modified: October 25, 2017

---

# Cannot assign an empty string to a string offset

 *  [danielgm](https://wordpress.org/support/users/danielgm/)
 * (@danielgm)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-assign-an-empty-string-to-a-string-offset/)
 * I receive this error in /wp-includes/class.wp-scripts.php on line 447 when loading
   a front-end page with a customized TML shortcode:
 * `[theme-my-login instance="2" default_action="register"]`
 * I googled a bit and it might be related to changes introduced in PHP 7.1, but
   I couldn’t figure it out.
    -  This topic was modified 8 years, 7 months ago by [danielgm](https://wordpress.org/support/users/danielgm/).

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

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-assign-an-empty-string-to-a-string-offset/#post-9630717)
 * TML has not been tested against PHP 7.
 *  Thread Starter [danielgm](https://wordpress.org/support/users/danielgm/)
 * (@danielgm)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-assign-an-empty-string-to-a-string-offset/#post-9630791)
 * Ah, that’s too bad. PHP 7 has been out for quite a while now and it brings a 
   major speed boost. Hope you’ll get around to it soon.

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

The topic ‘Cannot assign an empty string to a string offset’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [danielgm](https://wordpress.org/support/users/danielgm/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-assign-an-empty-string-to-a-string-offset/#post-9630791)
 * Status: not resolved