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:
- Added Google Tag Manager code to functions.php (I had not installed a child theme)
- Updated Theme X
- Discovered that Google Tag Manager had stopped working after the update
- Reviewed the code in function.php and found that the GTM code was missing
- Attempted to add GTM again, which caused a syntax error
- Unsuccessfully attempted to resolve the syntax error
- 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.