我在文件mo.php中遇到了一个无休止的循环
/wp-includes/pomo/mo.php
加载网站的默认文本域时。
PHP错误为:
Fatal error: Maximum execution time of 30 seconds exceeded in ...\\wp-includes\\pomo\\streams.php on line 62
我可以通过禁用网站翻译来解决这个问题,但这并没有真正的帮助。我已经更新到最新的wordpress版本和最新的翻译版本(de\\u de)。
我有点困惑,因为我从来没有遇到过这个问题。回溯中的最后一次调用耗时近30秒。函数调用为:
POMO_Reader->substr( $string = \'\\000\\n<h1>Error establishing a database connection</h1>\\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can\\\'t contact the database server at <code>%s</code>. This could mean your host\\\'s database server is down.</p>\\n<ul>\\n\\t<li>Are you sure you have the correct username and password?</li>\\n\\t<li>Are you sure that you have typed the correct hostname?</li>\\n\\t<li>Are you sure that the database server is running?</li>\\n</ul>\\n<p>If y...\', $start = 71131, $length = 8 )
有人想过吗?我在windows上运行,提供的文件位于网络共享上。这个设置从来没有问题。