5

I've recently stumbled into an error using the default version of CAPTCHA in Magento 1.9: "Image CAPTCHA requires FT fonts support".

As far as my understanding goes, this means FreeType font support isn't enabled on the server. As this version of reCAPTCHA is old, I don't see any reason to resolve this issue, and have opted for this extension, which uses version 2 and I have no issues.

The problem is that, if a client enables the built-in CAPTCHA in CUSTOMERS > Customer Configuration > CAPTCHA > Enable CAPTCHA on Frontend > Yes or Advanced > Admin > CAPTCHA > Enabled CAPTCHA in Admin > Yes, any page this is enabled for will crash that specific page.

So whilst it is avoidable by not fiddling with settings, this is not desirable and will likely be confused with the proprietary extension.

What would be the best way to remove this from Magento?

7

Given that the custom extension does not extend Mage_Captcha and instead uses their own implementation, you can disable the core module entirely. Create a file app/etc/modules/Zzz_Deactivate.xml with the following content:

<?xml version="1.0"?>
<config>
  <modules>
    <Mage_Captcha>
      <active>false</active>
    </Mage_Captcha>
  </modules>
</config>
  • Given the existing Mage_Captcha.xml that already exists, is there any important reason for your Zzz prefix? E.g. are you intending this be loaded after Mage_Captcha.xml or is this just a way to safely namespace it (assuming uniqueness)? – Jonathan Aug 13 '15 at 10:10
  • 1
    Never touch the core. This makes sure that an update won't activate it again. The files in app/etc/modules are loaded alphabetically, so to disable core or third party modules, I usually use a file like this to make sure it overrides all others. – Fabian Schmengler Aug 13 '15 at 10:11
  • Yep. I am aware never to touch the core. I am just wondering the reasoning behind your prefix. I see, thanks for this extra info. – Jonathan Aug 13 '15 at 10:12
  • The .xml files are applied in alphabetical order so anything starting with Zzz_ will be last man standing and its contents will overwrite any xml node in any of the previous parsed .xml files when Magento assembles its XML configuration list. – Fiasco Labs Jan 10 '16 at 20:28
0

If a captcha from third-party developers, then you can find it in the table core_config_data by searching through LIKE%...% by the word captcha. Where the value is not 0, but 1, there is a solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.