<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #28248 / Magento - Error Saving Configuration - Encrypting </title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=14217</link>
        <description><![CDATA[<strong>Posted:</strong> 2012-09-10 16:47:41<br/><strong>Category:</strong> Configuration<br/><strong>Version:</strong> 1.7.0.2<br/><strong>Priority:</strong> high<br/><strong>Status:</strong> assigned<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/26221129/">lance_gliser</a></strong><br/><br/>I haven't seen this issue on any other sites, just the newest I started developing recently. Go to &gt; Admin &gt; System &gt; Configuration &gt; Sales &gt; Shipping methods (just an example, any configuration set with a password was able to reproduce the issue for me).<br />
<br />
&quot;An error occurred while saving this configuration: Warning: preg_match() expects parameter 2 to be string, array given in app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Encrypted.php on line 62&quot;<br />
<br />
We were able to save any config screen without a password on it, but nothing with a password. After a couple hours digging around in app/code/core/Mage/Adminhtml/Model/Config/Data.php, I located the issue. In the save function, around line 135ish, it attempts to get the backend model that will be used to save the data. Intense logging around showed that after the first non-standard config field, the backend model to be saved was permanently swapped to adminhtml/system_config_backend_encrypted. The issue is that it checks if the backend model has been set, and uses it if it has. Which means future loops never go back to core/config because it's already set to something on the first pass! The answer seems to be, unset backend class, or fix the faulty if logic.<br />
<br />
/**<br />
 * Get field backend model<br />
 */<br />
unset( $backendClass ); // Add this line<br />
if (isset($fieldConfig-&gt;backend_model)) {<br />
  $backendClass = $fieldConfig-&gt;backend_model;<br />
}<br />
if (!isset($backendClass)) {<br />
  $backendClass = 'core/config_data';<br />
}<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#1 / Comment by <a href="http://www.magentocommerce.com/boards/member/43025/">rezilient</a></em><br/><br/>I?m having a similar issue where saving a Paypal Standard e-mail address in the Payment Methods screen is not sticking.  When I hit Save Config the screen refreshes, it says ?the configuration has been saved? but alas there is nothing in the PayPal settings, just blank.]]></description>
    </item>
            <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#2 / Comment by <a href="http://www.magentocommerce.com/boards/member/65070/">farnhamg</a></em><br/><br/>Just installed 1.7.0.2 and cannot save paypal auth keys]]></description>
    </item>
            <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#3 / Comment by <a href="http://www.magentocommerce.com/boards/member/26655881/">michigandata</a></em><br/><br/>I am having this exact same issue in 1.7.02 was fine in site with 1.70 so the bug has appeared after Magento changed the Paypal Interface in 1.7.02]]></description>
    </item>
            <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#4 / Comment by <a href="http://www.magentocommerce.com/boards/member/14161/">unfeasible</a></em><br/><br/>This seems to be a more common experience with keys for extensions. Is there any chance of this being fixed in the next release?]]></description>
    </item>
            <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#5 / Comment by <a href="http://www.magentocommerce.com/boards/member/273023/">Digital Voodoo</a></em><br/><br/>Having the same issue where Payment Methods (Admin &gt; System &gt; Configuration &gt; Sales &gt; Payment Methods) changes to configuration are not saving. This is on a fresh install with no code hacks]]></description>
    </item>
            <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#6 / Comment by <a href="http://www.magentocommerce.com/boards/member/25831189/">ivvy_ru</a></em><br/><br/>quick fix: try to switch from default to website/store view and save your settings there. it helped me]]></description>
    </item>
            <item>
        <title>RE: Magento - Error Saving Configuration - Encrypting </title>
        <description><![CDATA[<em>#7 / Comment by <a href="http://www.magentocommerce.com/boards/member/25913733/">kanduvisla</a></em><br/><br/>The quick fix from ivvy_ru worked for me too.<br />
<br />
Same problem: Fresh installation of 1.7.0.2 and cannot change payments methods because clicking on 'Save Changes' does nothing... :-/]]></description>
    </item>
        </channel>
</rss>