在php5.3.0下安装wordpress会出现以下错误,盖因时区所未设定方引起。

Warning:  strtotime() [function.strtotime]:It is not safe to rely on the system’s timezone settings. You are*required* to use the date.timezone setting or thedate_default_timezone_set() function. In case you used any of thosemethods and you are still getting this warning, you most likelymisspelled the timezone identifier. We selected ‘UTC’ for ‘8.0/no DST’instead in……

解决方法一:
在php.ini里加入:
date.timezone = “Asia/Shanghai”

解决方法二:
在 /wp/wp-includes/functions.php 里相对应函数里加入:
date_default_timezone_set('
Asia/Shanghai');

解决方法三:
在 wp-config.php 里加入:
date_default_timezone_set('
Asia/Shanghai');

转载于:https://www.cnblogs.com/gugunet/archive/2009/11/15/1603463.html

[function.strtotime] 错误对策相关推荐

  1. warning: control reaches end of non-void function:错误解决

    warning: control reaches end of non-void function:错误解决 用gcc编译一个程序的时候出现这样的警告: warning: control reache ...

  2. mindmanager的R6025 - pure virtual function call错误解决办法

    原文链接:mindmanager的R6025 - pure virtual function call错误解决办法 今天发现了一个问题:mindmanager打不开文件了 提示: ---------- ...

  3. 真机编译时undeclare (first use in this function)的错误

    下午给这个问题搞了几个小时,模拟器上编译和运行都没有问题,要上真机跑时突然出现若干xx undeclare (first use in this function)的错误,实际上这个变量继承自基类,找 ...

  4. c语言conflicting types,gcc编译C程序出现”error conflicting types for function”编译错误的分析解决...

    今天使用gcc编译C语言程序时出现 "error conflicting types for function" 编译错误,这个错误的原因是什么?如何解决?以下看正文的讲解. 在使 ...

  5. PHP发生Call to undefined function imagecreate()错误的解决办法

    在使用php处理一些图像时,有时会出现诸如这样的错误:Call to undefined function imagecreate() 这是由于没有安装或是没有开启php的gd库导致的问题. 解决方案 ...

  6. Javascript 报错 Uncaught TypeError: x is not a function 常见错误总结

    这是我近期犯的比较傻的一个错误,一定要mark一下. 以下代码段是借用父类构造函数来实现继承的一种方法, 不过在ES6已经可以使用类了,这个作为了解对阅读以前的代码还是有好处的. 代码非常简单, 1 ...

  7. 运行opencv程序后出现runtime error! R6025-pure virtual function call 错误提示的解决方法

    运行opencv的代码,主函数(main)返回时产生了runtime error! R6025-pure virtual function call 的错误提示,若程序前面的所有代码都没有问题,就到最 ...

  8. 【vim】Vim: Error detected while processing function SNR37_MRU_LoadList错误

    00. 目录 00. 目录 01. 问题描述 02. 原因分析 03. 解决办法 01. 问题描述 每一次使用vim打开已经存在文件或者新的文件,都会出现如下问题: Error detected wh ...

  9. php date 有warning,PHP Warning: strtotime()错误解决办法

    strtotime()函数是php日期函数了,出现这种问题就是我们php.ini中的date.timezone没有设置好,只要配置一下时区即可解决. php5.1.0开始,php.ini里加入了dat ...

  10. Call to undefined function curl_init()错误解决方法

    网页内的一个功能无法实现,报错如下: Call to undefined function curl_init() 解决方法: php缺少curl模块,需要扩展curl模块 没有源码包解压php源码包 ...

最新文章

  1. linux通信中recv,linux套接字通信之recv中的缓存机制的研究
  2. C++语言标准库functional中的函数对象,绝对是装B神器~
  3. 什么是百度竞价创意断句符
  4. js异步加载 defer和async 比较
  5. Windows Phone(三)WP7版 记账本 开发(使用SQLite数据库)
  6. 《响应式web设计》读书笔记(三)拥抱流式布局
  7. 使用top命令监控linux系统cpu变化
  8. CompletableFuture详解~thenApplyAsync
  9. 计算机发展史评课议课稿,评课议课记录范文
  10. 创业是一个高风险高收入的行业
  11. oracle分区区别,oracle范围分区表和INTERVAL分区表对于SPLIT分区的区别
  12. linux编程排序,Linux下简单的c编程——选择法排序
  13. android studio for android learning (一)
  14. 如何获取html的页面宽度和高度,js获取屏幕,浏览器及网页的宽度和高度
  15. Redis cluster Hget hash field value异常分析案例--一个空格带来的惨案
  16. .rpt 文件怎麽打開?Crystal Reports 打開.rpt失敗 ?
  17. 7. F1方程式冠军
  18. 钣金展开更自由了? SOLIDWORKS 2022 新功能
  19. 浏览器跳出HTML编码,浏览器如何解析HTML字符编码
  20. CSS:外部样式表/内部样式表/内联样式

热门文章

  1. shell基础之编译安装nginx
  2. 阅读《构建执法》11-12章
  3. left join, right join , inner join, join, union的意义
  4. 防护针对SQL Server数据库的SQL注入攻击
  5. Ant运行build.xml执行服务器scp,异常解决jsch.jar
  6. 前端学习笔记day14 移动盒子 封装函数
  7. C++primer 6.7节练习
  8. HMM学习(2)-Generating Patterns
  9. 解决ubuntu10.04不能上网
  10. 方维系统登陆弹窗,登陆后自动刷新当前页的实现方法