1

I don't know what is causing this error. I was working on a custom module on my Magento store and didn't check the homepage of the store regularly. Out of the blue today I am getting this error on my homepage.

Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\Program Files\EasyPHP-5.3.8.0\www\indieswebs\lib\Zend\Db\Adapter\Pdo\Mysql.php on line 1045

The funny thing is there is NO 1045 line number in this file! So I am guessing it's some sort of looping error. But I don't know what is causing it. Can anyone help me figure out what might be causing this particular error and how can I remove it?

Edit:I deleted the cache from the store and reloaded the homepage. The error has changed now. It says: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 261904 bytes) in C:\Program Files\EasyPHP-5.3.8.0\www\indieswebs\lib\Zend\Db\Select.php on line 281

Does anyone know how to resolve this?

4

3 に答える 3

3

エラーは、xdebug をインストールしたときにのみ発生します。

php.ini xdebug.max_nesting_level = 200 で次の設定を使用します。

于 2012-10-24T09:45:33.893 に答える
0

I was able to resolve a related issue (that causes the same error message) by checking the files in [webroot]/app/etc/

It was happening (on enterprise edition) because

config.xml
enterprise.xml

were missing from that directory. Once I put them back, that fixed this problem.

I also read elsewhere that a malformed local.xml might cause this issue.

On enterprise edition, use something like:

        <default_setup>
            <connection>
                <host><![CDATA[localhost]]></host>
                <username><![CDATA[some_user]]></username>
                <password><![CDATA[some_pass]]></password>
                <dbname><![CDATA[database_name]]></dbname>
                <active>1</active>
            </connection>
        </default_setup>

On CE, use something like:

    <default_setup>
        <connection>
            <host><![CDATA[localhost]]></host>
            <username><![CDATA[your_user]]></username>
            <password><![CDATA[your_pass]]></password>
            <dbname><![CDATA[your_db]]></dbname>
            <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
            <model><![CDATA[mysql4]]></model>
            <type><![CDATA[pdo_mysql]]></type>
            <pdoType><![CDATA[]]></pdoType>
            <active>1</active>
        </connection>
    </default_setup>
于 2013-09-02T08:39:02.403 に答える
0

Collection.php モデルでこれを取得しましたが、原因はparent::__construct(). 私がそれを修正すると、エラーはなくなりました。PS: xdebug のネスト レベル制限を引き上げても機能しませんでした。

于 2012-12-23T14:16:02.237 に答える