Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>PHP is complaining that it can't find the constant on <code>RANGE_CALCULATION_AUTO</code> defined on the class <code>Mage_Catalog_Model_Layer_Filter_Price</code></p> <p>Based on your comments above, it sounds like you already checked the file at</p> <pre><code>app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php </code></pre> <p>to ensure is had the correct constant defined.</p> <pre><code>const RANGE_CALCULATION_AUTO = 'auto'; </code></pre> <p>Based on that, my guess would be there's a <strong>different</strong> Price.php being loaded for this class. This can happen if</p> <ol> <li><p>Someone's placed a different version in <code>community</code> or <code>local</code></p></li> <li><p>Someone's monkied with the include path beyond Magento's normal monkey business</p></li> </ol> <p>Check for files at </p> <pre><code>app/community/core/Mage/Catalog/Model/Layer/Filter/Price.php app/local/core/Mage/Catalog/Model/Layer/Filter/Price.php </code></pre> <p>If that doesn't work, add some temporary debugging code to </p> <pre><code>app/code/core/Mage/Adminhtml/Model/System/Config/Source/Price/Step.php </code></pre> <p>that uses reflection to figure out what file PHP is loading the class from</p> <pre><code>class Mage_Adminhtml_Model_System_Config_Source_Price_Step { public function toOptionArray() { //NEW LINES HERE $r = new ReflectionClass('Mage_Catalog_Model_Layer_Filter_Price'); var_dump($r-&gt;getFileName()); //echo $r-&gt;getFileName(); // if too long for var_dump exit("Bailing at line ".__LINE__." in ".__FILE__); //END NEW LINES return array( array( 'value' =&gt; Mage_Catalog_Model_Layer_Filter_Price::RANGE_CALCULATION_AUTO, 'label' =&gt; Mage::helper('adminhtml')-&gt;__('Automatic') ), array( 'value' =&gt; Mage_Catalog_Model_Layer_Filter_Price::RANGE_CALCULATION_MANUAL, 'label' =&gt; Mage::helper('adminhtml')-&gt;__('Manual') ), ); } }` </code></pre> <p>This will dump out a file path that points to the exact place PHP is loading the class from, which should get you where you need to go.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload