首页 > 解决方案 > 致命错误:未捕获错误:调用未定义函数 get_post_datetime()

问题描述

当我尝试打开文章时,它显示以下错误:

Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in C:\xampp\htdocs\wp-content\plugins\td-cloud-library\state\single\tdb_state_single.php:1666 Stack trace: 
#0 C:\xampp\htdocs\wp-content\plugins\td-cloud-library\wp_templates\tdb_view_single.php(89): tdb_state_single->{closure}() 
#1 C:\xampp\htdocs\wp-content\plugins\td-cloud-library\wp_templates\tdb_view_single.php(89): Closure->__invoke() 
#2 C:\xampp\htdocs\wp-includes\template-loader.php(78): include('C:\\xampp\\htdocs...') 
#3 C:\xampp\htdocs\wp-blog-header.php(19): require_once('C:\\xampp\\htdocs...') 
#4 C:\xampp\htdocs\index.php(17): require('C:\\xampp\\htdocs...') 
#5 {main} thrown in C:\xampp\htdocs\wp-content\plugins\td-cloud-library\state\single\tdb_state_single.php on line 1666

有人知道这个问题吗?

标签: phpwordpressxampp

解决方案


get_post_datetime()是在 WordPress 5.3 版中引入的。您需要更新到该版本才能更正您看到的错误。

https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/


推荐阅读