Fatal errors after updating Theme X: "No such file or directory in..." and "Failed opening required X_TEMPLATE_PATH/..."

Hello,

I am currently experiencing the following error, which has caused my website to be non-operational.

Warning: require_once(X_TEMPLATE_PATH/framework/tco/tco.php): failed to open stream: No such file or directory in /home/viviande/public_html/wp-content/themes/x/framework/functions/global/tco-setup.php on line 21

Fatal error: require_once(): Failed opening required ‘X_TEMPLATE_PATH/framework/tco/tco.php’ (include_path=’.:/usr/local/php70/pear’) in /home/viviande/public_html/wp-content/themes/x/framework/functions/global/tco-setup.php on line 21

The following is a detailed sequence of events which lead to this issue:

  1. Added Google Tag Manager code to functions.php (I had not installed a child theme)
  2. Updated Theme X
  3. Discovered that Google Tag Manager had stopped working after the update
  4. Reviewed the code in function.php and found that the GTM code was missing
  5. Attempted to add GTM again, which caused a syntax error
  6. Unsuccessfully attempted to resolve the syntax error
  7. Uploaded the functions.php file from the installation package

I’d be happy to share my login credentials so that you can better review the problem and, hopefully, help me resolve it.

Thank you.

Hi there @vivianderma,

Thanks for writing in!

As you mentioned you didn’t install a child theme, this could be part of the problem. Parent theme files should never be modified.

Try doing this:

Delete X and Cornerstone. Then download a fresh install of X via your Theme.co/apex/dashboard and upload the zip via your wp-admin > appearance > themes > add new > upload and everything should work.

Thanks!