【问题标题】:deprecated: elementor error Wordpress site已弃用:elementor 错误 Wordpress 站点
【发布时间】:2021-07-23 02:55:28
【问题描述】:

我是 WordPress 新手。这些是我正在使用的版本 -

Wordpress version: 5.7.1

Theme Name: Saasland

我收到了这个错误信息-

已弃用:Elementor\Scheme_Typography 自版本以来已弃用 2.8.0!请改用 Elementor\Core\Schemes\Typography。在 /customers/a/a/5/test.com/httpd.www/wp-includes/functions.php 上 第 5051 行

这是来自functions.php的代码

                $replacement
            ) . $message,
            E_USER_DEPRECATED (##line 5051)
        );
    } else {

我尝试了很多谷歌,但没有找到任何解决方案。有谁知道任何可能的解决方案?

【问题讨论】:

  • www/wp-includes/functions.php on line 5051 看起来如何?可能有任何包含或类似的东西。
  • 更新elementor,会修复
  • @pavel 现在你可以看到第 5051 行的代码了。
  • @CyC0der 我确实更新了 elementor,但没有解决问题

标签: php wordpress plugins elementor


【解决方案1】:

显示弃用通知是因为 Elementor 相关的插件/插件。要摆脱该消息,您可以找到插件并将其停用,您可以等待插件更新或更改wp-config.php中的设置:

define( 'WP_DEBUG', true );
error_reporting(E_ALL ^ E_DEPRECATED);

define( 'WP_DEBUG', false );

【讨论】:

    【解决方案2】:

    这样的错误 Elementor\Scheme_Typography 自 2.8.0 版起已弃用!改用 Elementor\Core\Schemes\Typography

    像这样在你的 PHP 文件中添加使用类

    示例:- 使用 Elementor\Core\Schemes\Typography 作为 Scheme_Typography;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-23
      • 1970-01-01
      • 2017-10-06
      • 2014-10-13
      • 1970-01-01
      • 2023-02-16
      • 2016-06-17
      • 2015-07-14
      相关资源
      最近更新 更多