Uncaught Error: Call to undefined function untrailingslashit()
-
I am facing an error for the last few days as the main stylesheets aren’t loading, due to path issues may be.
Console errors:
Refused to apply style from ‘https://www.domain.com/custom_child_template/style.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to apply style from ‘https://www.domain.com/’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to apply style from ‘https://www.domain.com/custom_child_template/style.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to apply style from ‘https://www.domain.com/custom_child_template/style.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to apply style from ‘https://www.domain.com/’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.Note: custom_child_template is new theme name
I’ve cross-checked these files and their types are text/css.
When I try to access those stylesheets in the browser, this the error it shows:
Uncaught Error: Call to undefined function untrailingslashit() in /home/domain/public_html/wp-includes/option.php:133 Stack trace: #0 /home/domain/public_html/wp-content/plugins/wp-hide-security-enhancer/router/class.file-processor.php(134): get_option(‘siteurl’) #1 /home/domain/public_html/wp-content/plugins/wp-hide-security-enhancer/router/class.file-processor.php(26): WPH_File_Processor->define_wp_constants() #2 /home/domain/public_html/wp-content/plugins/wp-hide-security-enhancer/router/file-process.php(43): WPH_File_Processor->__construct(‘style-clean’, ‘/wp-content/the…’, ‘/custom_child_t…’) #3 {main} thrown in /home/domain/public_html/wp-includes/option.php on line 133
Rewrite rules are present in .htaccess
Any guidance would be highly appreciated.
- The topic ‘Uncaught Error: Call to undefined function untrailingslashit()’ is closed to new replies.