Title: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string
Last modified: May 9, 2023

---

# PHP Fatal error: Uncaught TypeError: Cannot access offset of type string

 *  [Image Works, Inc.](https://wordpress.org/support/users/nimage/)
 * (@nimage)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-cannot-access-offset-of-type-string/)
 * I have been going through our error logs as our server has been crashing on occasion
   due, at least in part, to this site.
 * [01-May-2023 11:42:23 UTC] PHP Fatal error: Uncaught TypeError: Cannot access
   offset of type string on string in /home/user/public_html/wp-content/plugins/
   wpforms-lite/includes/fields/class-name.php:527
   Stack trace:#0 /home/user/public_html/
   wp-includes/class-wp-hook.php(308): WPForms_Field_Name->validate(‘0’, ”, Array)#
   1 /home/user/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”,
   Array)#2 /home/user/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(
   Array)#3 /home/user/public_html/wp-content/plugins/wpforms-lite/includes/class-
   process.php(233): do_action(‘wpforms_process…’, ‘0’, ”, Array)#4 /home/user/public_html/
   wp-content/plugins/wpforms-lite/includes/class-process.php(109): WPForms_Process-
   >process(Array)#5 /home/user/public_html/wp-includes/class-wp-hook.php(308): 
   WPForms_Process->listen(Object(WP))#6 /home/user/public_html/wp-includes/class-
   wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)#7 /home/user/public_html/
   wp-includes/plugin.php(565): WP_Hook->do_action(Array)#8 /home/user/public_html/
   wp-includes/class-wp.php(797): do_action_ref_array(‘wp’, Array)#9 /home/user/
   public_html/wp-includes/functions.php(1334): WP->main(”)#10 /home/user/public_html/
   wp-blog-header.php(16): wp()#11 /home/user/public_html/index.php(17): require(‘/
   home/ebadmin/p…’)#12 {main}thrown in /home/user/public_html/wp-content/plugins/
   wpforms-lite/includes/fields/class-name.php on line 527
 * This error tends to show up just before our server crashes.
 * Any help would be greatly apprecieated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-uncaught-typeerror-cannot-access-offset-of-type-string%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-cannot-access-offset-of-type-string/#post-16724331)
 * are you able to access your plugins via FTP to rename the plugin directory for
   WPForms Lite? renaming will deactviate the plugin.
 * if the issue seems to be resolved with the plugin deactivated, start a topic 
   for the plugin’s support team for additional guidance: [https://wordpress.org/support/plugin/wpforms-lite/](https://wordpress.org/support/plugin/wpforms-lite/)

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error: Uncaught TypeError: Cannot access offset of type string’
is closed to new replies.

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [lisa](https://wordpress.org/support/users/contentiskey/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-cannot-access-offset-of-type-string/#post-16724331)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
