我正在尝试离线创建网站,并已登录,目的是创建子主题,但是出现了许多错误。
我尝试将以下行添加到php.ini中:“ pcre.jit = 0”
这是显示的错误:
./ libraries / classes / Util.php#1425中的警告preg_replace():JIT 编译失败:没有更多内存
回溯
.// libraries / classes / Util.php#1425:preg_replace(字符串'/\.?0+$/', 字符串``,字符串'48 .0',)./libraries/classes/Util.php#1295: PhpMyAdmin \ Util :: formatNumber(double 48.0,整数5,整数1, 布尔值true,) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#1127: PhpMyAdmin \ Util :: formatByteDown(double 48.0,整数3,整数1,) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#1006: PhpMyAdmin \ Controllers \ Database \ DatabaseStructureController-> getValuesForInnodbTable( 数组,整数49152,) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#438: PhpMyAdmin \ Controllers \ Database \ DatabaseStructureController-> getStuffForEngineTypeTable( 数组,整数0,整数0,) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#195: PhpMyAdmin \ Controllers \ Database \ DatabaseStructureController-> displayTableList() ./db_structure.php#38: PhpMyAdmin \ Controllers \ Database \ DatabaseStructureController-> indexAction()
答案 0 :(得分:0)
如果使用MAMP,则应该找到“ $ YourMampDir / php / etc / php.ini”文件。打开它,然后寻找:
; Enables or disables JIT compilation of patterns. This requires the PCRE
; library to be compiled with JIT support.
; pcre.jit=1
您应将其编辑为:
; Enables or disables JIT compilation of patterns. This requires the PCRE
; library to be compiled with JIT support.
pcre.jit=0
别忘了重新加载Apache Web服务器。之后,错误应该消失了。