<bdo id='DyHhb'></bdo><ul id='DyHhb'></ul>

      <legend id='DyHhb'><style id='DyHhb'><dir id='DyHhb'><q id='DyHhb'></q></dir></style></legend>
      <i id='DyHhb'><tr id='DyHhb'><dt id='DyHhb'><q id='DyHhb'><span id='DyHhb'><b id='DyHhb'><form id='DyHhb'><ins id='DyHhb'></ins><ul id='DyHhb'></ul><sub id='DyHhb'></sub></form><legend id='DyHhb'></legend><bdo id='DyHhb'><pre id='DyHhb'><center id='DyHhb'></center></pre></bdo></b><th id='DyHhb'></th></span></q></dt></tr></i><div id='DyHhb'><tfoot id='DyHhb'></tfoot><dl id='DyHhb'><fieldset id='DyHhb'></fieldset></dl></div>

      <small id='DyHhb'></small><noframes id='DyHhb'>

    1. <tfoot id='DyHhb'></tfoot>

      WordPress 致命错误:第 1832 行 wp-includes/wp-db.php 中允许的内存大小为 5368

      WordPress Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in wp-includes/wp-db.php on line 1832(WordPress 致命错误:第 1832 行 wp-includes/wp-db.php 中允许的内存大小为 536870912 字节已用尽(尝试分配
    2. <small id='xEF0L'></small><noframes id='xEF0L'>

      • <bdo id='xEF0L'></bdo><ul id='xEF0L'></ul>
        <tfoot id='xEF0L'></tfoot>
      • <i id='xEF0L'><tr id='xEF0L'><dt id='xEF0L'><q id='xEF0L'><span id='xEF0L'><b id='xEF0L'><form id='xEF0L'><ins id='xEF0L'></ins><ul id='xEF0L'></ul><sub id='xEF0L'></sub></form><legend id='xEF0L'></legend><bdo id='xEF0L'><pre id='xEF0L'><center id='xEF0L'></center></pre></bdo></b><th id='xEF0L'></th></span></q></dt></tr></i><div id='xEF0L'><tfoot id='xEF0L'></tfoot><dl id='xEF0L'><fieldset id='xEF0L'></fieldset></dl></div>

                <tbody id='xEF0L'></tbody>

              1. <legend id='xEF0L'><style id='xEF0L'><dir id='xEF0L'><q id='xEF0L'></q></dir></style></legend>

                本文介绍了WordPress 致命错误:第 1832 行 wp-includes/wp-db.php 中允许的内存大小为 536870912 字节已用尽(尝试分配 77 字节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我最近在我的 WordPress 网站上注意到我有时会收到 500 内部服务器错误.我检查了日志,我有很多行,例如:

                I noticed recently on my WordPress website I'm getting sometimes 500 Internal Server Error. I checked logs and I have many lines like:

                [2016 年 10 月 3 日星期一 01:25:24.357439] [fcgid:warn] [pid 12840] [client83.27.211.107:36968] mod_fcgid:stderr:PHP 致命错误:允许的内存大小为 536870912 字节已用尽(尝试分配 77 字节)在/var/www/vhosts/mywebsite/public_html/wp-includes/wp-db.php 上线1832

                [Mon Oct 03 01:25:24.357439 2016] [fcgid:warn] [pid 12840] [client 83.27.211.107:36968] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/vhosts/mywebsite/public_html/wp-includes/wp-db.php on line 1832

                我尝试增加内存限制:

                定义('WP_MAX_MEMORY_LIMIT', '512M');

                define( 'WP_MAX_MEMORY_LIMIT' , '512M' );

                define('WP_MEMORY_LIMIT', '512M');

                define( 'WP_MEMORY_LIMIT' , '512M' );

                甚至更多,但它没有用.无论我设置什么,它仍然超出内存限制一些字节.我认为对数据库的某些查询存在问题,但如何检查?

                And even more, but it didn't work. No matter what I set it still exceeding memory limit by some bytes. I think there's a problem with some queries to a database, but how to check which?

                includes/wp-db.php 的内容:

                Content of the includes/wp-db.php:

                } else {
                    $num_rows = 0;
                    if ( $this->use_mysqli && $this->result instanceof mysqli_result ) {
                        while ( $row = mysqli_fetch_object( $this->result ) ) {
                            $this->last_result[$num_rows] = $row;
                            $num_rows++;
                        }
                    } elseif ( is_resource( $this->result ) ) {
                        // server crashing at line below
                        while ( $row = mysql_fetch_object( $this->result ) ) {
                            $this->last_result[$num_rows] = $row;
                            $num_rows++;
                        }
                    }
                
                    // Log number of rows the query returned
                    // and return number of rows selected
                    $this->num_rows = $num_rows;
                    $return_val     = $num_rows;
                }
                

                推荐答案

                问题是由 iThemes Security 插件引起的.我把它关掉了,错误就消失了.如果我知道这个插件的哪一部分导致超出内存限制,我会进一步调查这个问题并编辑这个答案.

                The problem was caused by iThemes Security plugin. I turned off it and errors have gone. I'll investigate this problem more and edit this answer if I'll know what part of this plugin caused exceeding memory limit.

                这篇关于WordPress 致命错误:第 1832 行 wp-includes/wp-db.php 中允许的内存大小为 536870912 字节已用尽(尝试分配 77 字节)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <tbody id='Ix3gR'></tbody>
              2. <i id='Ix3gR'><tr id='Ix3gR'><dt id='Ix3gR'><q id='Ix3gR'><span id='Ix3gR'><b id='Ix3gR'><form id='Ix3gR'><ins id='Ix3gR'></ins><ul id='Ix3gR'></ul><sub id='Ix3gR'></sub></form><legend id='Ix3gR'></legend><bdo id='Ix3gR'><pre id='Ix3gR'><center id='Ix3gR'></center></pre></bdo></b><th id='Ix3gR'></th></span></q></dt></tr></i><div id='Ix3gR'><tfoot id='Ix3gR'></tfoot><dl id='Ix3gR'><fieldset id='Ix3gR'></fieldset></dl></div>

                  <bdo id='Ix3gR'></bdo><ul id='Ix3gR'></ul>

                    <small id='Ix3gR'></small><noframes id='Ix3gR'>

                        <tfoot id='Ix3gR'></tfoot>
                        1. <legend id='Ix3gR'><style id='Ix3gR'><dir id='Ix3gR'><q id='Ix3gR'></q></dir></style></legend>