title: Fatal error: Uncaught Error: [] operator not supported for strings in C:\xampp\htdocs\
body: <p>I tried to clone our online WordPress website to localhost (using XAMPP) by following this tutorial: <a href="https://looks-awesome.com/copying-live-wordpress-site-localhost" rel="nofollow noreferrer">https://looks-awesome.com/copying-live-wordpress-site-localhost</a></p>
  
  <p>Everything was easy to understand and went smoothly until I tried to load the website. Whenever I try to open index.php or wp-admin I am shown this error:
  "Fatal error: Uncaught Error: [] operator not supported for strings in C:\xampp\htdocs..." . It references php files for different themes and plugins.</p>
  
  <p>After navigating to the PHP code in question it does indeed seem that the [] operator is being used on strings. Why does this all work fine on our live website but not locally? Is there a way to troubleshoot and fix this?</p>
  
  <p>Thank you for your time!</p>