wordpress 出现 “Function create_function() is deprecated in /wp-content/themes/”
升级了php到8.以后好像才出现这个问题,解决方法: 根据提示找到报错的php文件,然后找到如下类似代码 add_action( 'widgets_init', create_function( '', 'return register_widget("Woo_Widget...
升级了php到8.以后好像才出现这个问题,解决方法: 根据提示找到报错的php文件,然后找到如下类似代码 add_action( 'widgets_init', create_function( '', 'return register_widget("Woo_Widget...
类似Nginx程序一样,使用service来设置启动和关闭 1. 创建一个服务文件 在目录 "/etc/systemd/system/" 下创建 myapp.service 文件 2. 将myapp.service写入如下内容 [Unit] Description=My Custom Application ...
针对CentOS8中,如果使用: yum install -y php 安装后默认的版本是php7.2,会导致php很多语法报错,所以需要升级成高版本 1. 卸载当前php yum remove -y php 2. 启用 EPEL Remi软件库 yum install -y epel-releas...
以下的解决方法前提是:已经完成安装了Nginx和PHP。 进程php-fpm是否开启 有时候就是因为php-fpm进程未开启,网址无法解析php文件 // 查看是否开启 systemctl status php-fpm // 如果没有开启,则开启 systemctl start php...
报错内容:"An error occurred when reading the file, as it could not be read in the encoding you selected (Autodetect - Unicode (UTF-8))" 解决方法:在导入的时候,选择编码格式: Format: SQL Encoding: Western(Mac ...
安装Ngix 按照如下指令安装并启动: 安装 yum install -y nginx 开机启动 systemctl enable nginx 启动 systemctl start nginx 查看版本 nginx -v 安装PHP 按照如下指令安装并启动: 安装 yum install -y php ...
在Mac上面使用terminal远程云服务器,窗口闪退,报错:远程主机密钥已更改,端口转发已禁用,原因是之前已经成功远程过此服务器,并默认将此ip的服务器信息记录在 ~/.ssh/known_hosts 文件夹中,解决方法:打开文件: ~/.ssh/know...
一直在Mac和CentOS下使用包管理器,习惯了,在Windows上面就及其痛苦,因为要安装一个包或者库的时候(动态库)需要手动编译。搜索发现 Chocolatey 这个包管理器,下面是安装过程: 打开Powershell工具, 输入:Get-ExecutionPolic...
Mac Qt Creator 报错如下: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 原因是升级了系统,需要重新安装一...
我也不知道从哪一年开始,大家端午节不说快乐,改口说安康,顿时显得自己文盲似的。 倒也无妨,遇到节假日,我都是节日快乐,苦逼的是:持续加班中 ....,俺已经半年没歇过了 ....,事业的激情过后,老加班就有点无趣了,现在的节...