Title: WP Toolkit Error
Last modified: May 8, 2023

---

# WP Toolkit Error

 *  Resolved [Chen Tam](https://wordpress.org/support/users/tnehc/)
 * (@tnehc)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/)
 * I was troubleshooting the website and I can still access the WP Toolkit, however
   I can’t login to the website because it says that it was broken..
 * It looks odd that a subdomain website running on PHP version 7.4 is not broken,
   while the ones (domain & other subdomain) running on PHP version 8.1 are experiencing
   issues.
 * After an hour, this error shows in WHM Cpanel, every time I open the WP Toolkit,
   it gives me an error that says ‘Error: Initial data load error: some required
   fields are not provided’
    -  This topic was modified 2 years, 11 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
    -  This topic was modified 2 years, 11 months ago by [Chen Tam](https://wordpress.org/support/users/tnehc/).

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16720686)
 * What kind of “WP Toolkit” do you mean? Know the term from various server management,
   such as Plesk or cpanel. If you have questions about this, better contact the
   support of your hosting.
 * What is the exact message at login? It won’t just say “broken”. Take a look at
   the error log – there you should be able to identify the cause of technical errors.
 *  Thread Starter [Chen Tam](https://wordpress.org/support/users/tnehc/)
 * (@tnehc)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16721213)
 * [@threadi](https://wordpress.org/support/users/threadi/) found this message in
   broken site;
 *  ‘Site data was refreshed and stored in cache. The site is now marked as broken
   since WP Toolkit could not establish connection to it due to the following issue:
   Fatal error: Array and string offset access syntax with curly braces is no longer
   supported in /home/filename/public_html/wp-includes/blocks/index.php on line 
   2 Error: There has been a critical error on this website. Learn more about troubleshooting
   WordPress. There has been a critical error on this website.’
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16721568)
 * This is a PHP compatibility error. Which WordPress version are you running there?
 * If it’s a version 5.9 or newer, this could also be a follow-up error from an 
   outdated plugin. You could rename the plugin directory via FTP (e.g. from wp-
   content/plugins/ to wp-content/plugins.backup/) and see if that solves the problem.
 * Of course, the error message is also not complete. In the above debug log should
   be more visible than just this excerpt.
 *  Thread Starter [Chen Tam](https://wordpress.org/support/users/tnehc/)
 * (@tnehc)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16724811)
 * Thanks [@threadi](https://wordpress.org/support/users/threadi/) ! I rolled back
   the PHP version from 8.1 to 7.4, and the site is now working. However, there’s
   still a plugin conflict causing a critical error, so I need to identify the plugin
   responsible for the issue.
 *  Thread Starter [Chen Tam](https://wordpress.org/support/users/tnehc/)
 * (@tnehc)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16724979)
 * Oh unfortunately, this method doesn’t work on some of my subdomains (broken sites).
   however I was able to access the dashboard, it appears to be messy. Could you
   help me with this?
 * Broken Site Error : Site data was refreshed and stored in cache. The site is 
   now marked as broken since WP Toolkit could not establish connection to it due
   to the following issue: Fatal error: Array and string offset access syntax with
   curly braces is no longer supported in /home/filename/public_html/mywebsite/wp-
   includes/blocks/index.php on line 2 Error: There has been a critical error on
   this website. Learn more about troubleshooting WordPress. There has been a critical
   error on this website.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16727574)
 * You should find more detailed information about the error in the error log. Unfortunately,
   you can’t do anything with the information up to here.
 *  Thread Starter [Chen Tam](https://wordpress.org/support/users/tnehc/)
 * (@tnehc)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16740219)
 * Thank you, mate! I appreciate your response. I was able to fix the broken sites
   by removing suspicious codes from the directory /wp-includes/blocks/index.php.
   However, I’ve been encountering issues in wp-admin. I will address this in another
   thread so that I can close this one. Thanks a lot!
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16740581)
 * You describe that you have customized problematic code from WordPress core. You
   should NEVER do that. This way no one could tell you why your WordPress works
   the way it does for you. Moreover, this would be reset at the next update or 
   when you reinstall your WordPress.
 * The real cause for the error will surely be somewhere else – not in the code 
   you mentioned. What exactly did the error log say about this?
 *  Thread Starter [Chen Tam](https://wordpress.org/support/users/tnehc/)
 * (@tnehc)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16740936)
 * [@threadi](https://wordpress.org/support/users/threadi/) actually, this issue
   pertains to the main domain, which initially broke but returned after server 
   expansion. however, for some reason, the subdomains remain broken (as seen in
   this screenshot: [https://imgur.com/HEuS86H](https://imgur.com/HEuS86H)), accompanied
   by this error message from the log: [https://imgur.com/Jq6HWGL](https://imgur.com/Jq6HWGL).
 * to address this, I have attempted several potential solutions, including:
    - checking the database
    - verifying file permissions
    - disabling plugins and themes
    - checking PHP compatibility
 * as a result, only one subdomain was fixed by downgrading the PHP version from
   8.1 to 7.4.
 * based on the error message I got from wp toolkit;
   “The site is now marked as 
   broken since WP Toolkit could not establish a connection to it due to the following
   issue: Fatal error: Array and string offset access syntax with curly braces is
   no longer supported in public_html/mywebsite/wp-includes/blocks/index.php on 
   line 2 Error”
 * I investigated the contents of the index.php file and found this: [https://imgur.com/krvq0oI](https://imgur.com/krvq0oI)
 * upon comparing it to the working site, it looks suspicious for me. so I removed
   that code, and refreshed the wp toolkit who is now working.. BUT unfortunately,
   another issue appears in the /wp-admin; the dashboard is not displaying properly(
   [https://imgur.com/UjjpEjZ](https://imgur.com/UjjpEjZ))
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16742864)
 * Your site is hacked. This can be seen by the strange code in the index.php. You
   can consider the whole project insecure and I would recommend to delete it completely.
   If you have an older backup, you could use that.
 * Also have a look at this article:
 * > [FAQ My site was hacked](https://wordpress.org/documentation/article/faq-my-site-was-hacked/)

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

The topic ‘WP Toolkit Error’ is closed to new replies.

## Tags

 * [cPanel](https://wordpress.org/support/topic-tag/cpanel/)
 * [WHM](https://wordpress.org/support/topic-tag/whm/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/wp-toolkit-error/#post-16742864)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
