嗨
今天,我在wp-admin和wp-login.php中的wordpress博客出错了。
Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (Th
我有一个刚安装干净的Wordpress。没有插件或自定义主题。每当我试图创建一个新的帖子,该网站显示致命的错误,每次我有非英语字符在内容领域,无论是象形文字,西里尔字母或其他。但是,post标题或url可以包含非英语字符。我已经检查了wp-config.php,DB_CHARSET被设置为默认的utf8mb4设置。
这是我得到的错误日志:
Notice: Undefined offset: 0 in /var/www/test-website/public_html/wp-includes/class-wp-block.php on line 224
Notice: Trying to ge
我正在运行Wordpress 4.9.5,偶尔会在日志中看到以下错误。
E_WARNING: trim() expects parameter 1 to be string, array given
堆栈跟踪看起来是这样的,所以它不是来自自定义主题代码。
in trim called at /var/www/wordpress/html/wp-includes/class-wp-query.php (736)
…::parse_query called at /var/www/wordpress/html/wp-includes/
class-wp-query.php (1621)
…ry::
Fatal error: Uncaught Error: Call to a member function get_status() on null in /home/mywebsite/public_html/wp-content/plugins/contact-form-7/includes/contact-form.php:732
Stack trace:
#0 /home/mywebsite/public_html/wp-content/plugins/contact-form-7/includes/controller.php(14): WPCF7_ContactForm-&g
每次我尝试登录我的WP,这个致命的错误出现,我不知道发生了什么和如何解决。有人能帮我吗?我在编程和编码方面有“零”知识。
在我看来,这就是:
Fatal error: Uncaught Error: Cannot use object of type WP_Post as array in
/home1/tenhacon/public_html/wp-content/plugins/mojo-marketplace-wp-plugin/inc/user-experience-tracking.php:92 Stack trace:
#0 /home1/tenhacon/public_ht
我的WordPress debug.log文件中装满了这些PHP通知,间隔约15分钟,然后间隔几个小时…。
[23-Mar-2018 05:33:00 UTC] PHP Notice: Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3736
[23-Mar-2018 05:33:00 UTC] PHP Notice: Trying to get property of non-object in /home/mysite/publ
我正在使用WP来管理我的Wordpress安装的cron任务。工作得很好,但现在我得到了错误: Warning: Some code is trying to do a URL redirect. Backtrace:
#0 WP_CLI\Utils\wp_redirect_handler(https://example.com.br) called at [/home/user/public_html/wp-includes/class-wp-hook.php:289]
#1 WP_Hook->apply_filters(https://example.com.br, Array
WordPress功能一直让我感到困惑,因为您不能允许某些角色对某些特性进行粒度访问。(来自Drupal背景)
我已经安装了WordPress旋转木马插件,我希望允许“编辑器”访问管理旋转木马,这似乎是一个合理的选择。但是从插件内部来看,他们将权限设置为“manage_options”功能。但我不希望编辑访问与站点相关的选项(例如缓存和其他他们可能破坏的选项)。下面是注册post类型的插件的代码。
允许编辑器权限添加/编辑/删除旋转木马帖子的最佳方法是什么?
public function wp_carousel_post_type() {
if ( post_type_ex
我有非常简单的Dockerfile:
FROM wordpress
RUN touch /var/www/file1.txt
RUN touch /var/www/html/file2.txt
它创建两个文件,file1.txt到/var/www/和file2.txt到/var/www/html/
然后构建它:docker build -t 'wp' .,然后运行它:
=> docker run --name "wpcontainer" wp
WordPress not found in /var/www/html - copying now...
Co
下面我有一些问题决定了这个问题的解决方案。这个网站被发送给我们的团队去修复。
打开wp-config.php中的错误报告:
define('WP_DEBUG', true);
WordPress版本:5.3.2stackNewlinePHP版本: 7.2
WordPress主题:增长
Fatal error: Uncaught Error: Class 'WP_Block_Styles_Registry' not
found in /home/website/public_html/clientsite.com/wp-includes/script-
lo
我不能用仪表盘。在我使wp调试成为真后,它将显示以下错误。
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was adde
我不明白原因,一周前一切正常,但是当调用wp-admin时,突然出现以下警告消息,显示空白屏幕,没有输入登录详细信息的选项和以下两条消息。
Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/wp-content/plugins/js_composer/composer/lib/composer.php:1) in /home/username/public_html/wp-includes/pluggable.php
我的站点的error_log文件大小非常大。这样它就能填满整个服务器空间。此文件中的最后一个错误:
[06-Jul-2019 13:22:21 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 275
[06-Jul-2019 13:22:21 UTC] PHP Warning: Invalid argument supplied for foreach() in /