致命错误:require():无法打开所需的“{filename}”

时间:2021-03-01 15:49:12

标签: php wordpress

在加载我的博客时,我在控制台和白屏上看到以下错误:

<块引用>

警告: 要求(/home/u8070024/public_html/wp-content/themes//css/critical_css.php): 无法打开流:中没有这样的文件或目录 /home/u8070024/public_html/wp-content/themes/azurelo/functions.php 第 49 行

致命错误:require():需要打开失败 '/home/u8070024/public_html/wp-content/themes//css/critical_css.php' (include_path='.:/opt/alt/php74/usr/share/pear') 在 /home/u8070024/public_html/wp-content/themes/azurelo/functions.php 第 49 行

所以我无法访问我的博客... 如何解决这个问题呢?。 请有人帮助我:(

[enter image description here

1 个答案:

答案 0 :(得分:0)

正如@scunlife 提到的,你有 // 应该有 / 的地方,为了避免这类问题,你可以使用这个函数:https://stackoverflow.com/a/15575293/3735825

并用上述函数中的连接路径替换reuired。