简体   繁体   English

致命错误:调用未定义的函数

[英]Fatal error: Call to undefined function

I have this 我有这个

Fatal error: Call to undefined function date_add() in /home/....../public_html/wp-content/plugins/wp-ads/admin/edit-ad-update.php on line 70 致命错误:在第70行的/home/....../public_html/wp-content/plugins/wp-ads/admin/edit-ad-update.php中调用未定义的函数date_add()

The line have the folowing code: 该行具有以下代码:

date_add($ad_data["real_end_date"], new DateInterval("P".$ad_plan->days_length."D"));

Can some one help me? 有人能帮我吗?

date_add is available since php 5.3 . 从PHP 5.3开始, date_add可用。 Check your php version. 检查您的php版本。 You can do that by using ... the phpversion() function, if it is available for your version of php, of course ;) 您可以通过使用... phpversion()函数(如果您的php版本可用phpversion()来做到这一点;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM