Posts: 10
Threads: 5
Joined: Jan 2013
Excellent! Thank you. Is it possible to upgrade to the current v3.3 from v2.2 though?
Posts: 10
Threads: 5
Joined: Jan 2013
I successfully replaced the code as suggested, however there was a problem. It removed everything from the website that was after where the captcha form would be as if there was an open tag somewhere, but I looked and couldn't find one. There was no captcha form either. The div class names are different as well, where above it is written as div class="cmtx_recaptcha" in my file it is written as "cmtx_captcha_field". I replaced the div class name but it didn't make it work.
Here is the code that is to be replaced in Step 1 as written in my v2.2 file:
<div class="cmtx_captcha_field">
<?php
if (($cmtx_settings->recaptcha_public_key == "") || ($cmtx_settings->recaptcha_private_key == "")) {
echo "<span class='cmtx_no_recaptcha_key'>" . CMTX_RECAPTCHA_NO_KEY . "</span>.";
} else {
require_once $cmtx_path . "includes/recaptcha/recaptchalib.php";
$cmtx_recaptcha_public_key = $cmtx_settings->recaptcha_public_key;
echo recaptcha_get_html($cmtx_recaptcha_public_key);
}
?>
</div>
I've isolated the problem to being something to do with the data-sitekey <?php echo cmtx_setting('recaptcha_public_key'); ?> when I remove that code the website returns to normal, of course the captcha form doesn't appear.
If you view the webpage source after it has loaded it literally ends like this:
<div class="cmtx_recaptcha">
<div class="cmtx_container cmtx_recaptcha_container">
<div id="g-recaptcha" class="g-recaptcha" data-sitekey="
Clearly, there is a problem with the data-sitekey. I tried replacing the data-sitekey tag "recaptcha_public_key" with "cmtx_recaptcha_public_key" as it seems to be written in my v2.2 file, but that didn't work either.
EDIT: I also tried changing the tag "cmtx_setting" with "cmtx_settings" as it appears to be written in the v2.2 file, but that made no difference either.
Anyways, don't trouble yourself too much with this. I'll be glad and would actually prefer to just upgrade to the current commentics script if possible.
Posts: 2,890
Threads: 59
Joined: Jun 2010
Sure here are the upgrade instructions for the older versions:
http://web.archive.org/web/2017013122580...rg/upgrade
Have
you completed
the interview?