Zen Cart Logo
Forums / All Other Contributions/Addons / Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Views: 2,281

Results 1 to 17 of 17
13 Sep 2015, 3:25 PM
#1
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Contact reCAPTCHA - Version: 1.3.2 --> no installation link

I downloaded the recaptchas version, 1.3.2, that should work with v151 of zen-cart. I followed the paramaters to rename the theme folder in the folder structure and ftp the both admin and includes and copied the content them to the renamed admin folder and (~/www/$admin_renamed) and ~/www/includes.

This has worked before with other plugins, but in this case when I go in administration I don't get the INSTALL function/link to install the plugin.

I refreshed all system messages, logout/login again but nothing. Advice please?

13 Sep 2015, 11:46 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

You changed the name of the ADMIN folder in the mod to the name of your custom admin folder?

14 Sep 2015, 1:30 PM
#3
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

After installing zen-cart years ago I changed the admin folder from admin to a custom name. Whenever I install plugins I am careful to rename admin (if exists) to the custom name, same as renaming the theme folder to the theme I use. This has worked fine up til now.

14 Sep 2015, 3:01 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

That's what I was asking about, and that's correct. I 'installed' that mod on a test site, and I don't see anything about it in Admin or on the Contact Us page. I'm trying to install it on 1.5.4, though, and it says this in the readme: NOTE: Will not work with Zen Cart versions 1.5.2 or newer, unless custom MySQL queries are rewritten to use Zen Cart database function calls.

I don't have a 1.5.1 installation, so I can't be of much help. What problem are you trying to solve with this mod?

14 Sep 2015, 5:10 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

That's a different captcha mod from the one the OP asked about, but there might be some useful info there.

15 Sep 2015, 7:33 PM
#7
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Honestly, I don't remember having installed this program in the past, so downloaded and attempted to install it the other day because the contact form is failing. When you load the contact page, above submit you get the message/error:

Security Check: Invalid site key. Please see the FAQ.

You get no recaptcha image. The FAQ referred to takes you to google recaptcha. I looked all throughout the filesystem and database and zen-cart admin and could not find a way to set the recaptcha keys. The form was working until recently. Since I couldn't figure out why/what I thought installing a new recaptcha might be an alternate fix.

If I can't figure out either/or, I'll probably just create an HTML mirror of the contact page (as php) and use one of my forms, perhaps with bootstrap. Scratching my head first though.

16 Sep 2015, 12:44 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Well, after my last post (just as I was hitting send) I realized what stevesh pointed out that this is different than the google recaptcha to which I referenced... It appears that no formal thread was established for this version and perhaps it was an expansion to the other one without realizing it. But, the google recaptcha does offer the capability of applying it to the contact us page as well as other areas and the author does check the thread rather regularly, though this topic is already covered in it I am pretty sure...

Today having looked at the plugin information (not the files yet) it does appear that there is some expectation of admin options being in at least one of the downloads... Might be in the older one?

Anyways, if I get a chance (not too likely in the next day or so) I'll take a look, but other than that the other recaptcha mod works. As to issues with the contact_us page, well... Depending on versions of things it may be that the anti-spam code of more recent versions of ZC is not properly/fully implemented...

16 Sep 2015, 1:22 PM
#9
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Yes thank you. The README for this plugin seems to indicate that I followed the right procedures. Creating the hack workaround to make a custom contact page is not a great solution, but is quite doable, perhaps an hour's work or so. I'll keep that in my back pocket as I wait and watch. Tx. The version of ZC here is 1.5.1.

19 Sep 2015, 3:27 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Okay, so took a few minutes to look through the files of the downloadable contact recaptcha. In the admin/includes/functions/extra_functions/recaptcha_functions.php file on line 82 is a check against the "minor version of 5.0 (applicable for ZC 1.5.0 and 1.5.1 believe it or not) that is performed in the install_recaptcha function. This should be activated when an admin webpage is attempted to be loaded with the parameter install_recaptcha=yes like: webpage dot com/YOURSECRETADMIN/index.php?install_recaptcha=yes. If there is already a question mark in the uri, then append the above parameter with &.

But also looking at the code, it appears that the code is supposed to "work" (at least offer the install option at the top of the screen) without doing any version compare... But, if it has previously been installed and "partially" removed, then it could be that the install routine isn't picking up on that... Would suggest "removing" it (at least activating the SQL to do so) and then install either through the above, or via the "normal" route.

21 Sep 2015, 1:37 PM
#11
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

Thank you - however what you are suggesting to do is confusing. Can you lay it out in steps, what needs to be done including the SQL? I am comfortable with command line MySQL.

21 Sep 2015, 3:19 PM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

bobmeetin:

Thank you - however what you are suggesting to do is confusing. Can you lay it out in steps, what needs to be done including the SQL? I am comfortable with command line MySQL.

The removal process should be activated when an admin webpage is attempted to be loaded with the parameter remove_recaptcha=yes like: webpage dot com/YOURSECRETADMIN/index.php?remove_recaptcha=yes. If there is already a question mark in the uri, then append the above parameter with &.

Technically no further SQL commands should be required... (Assuming the contact recaptcha software remains in place.) If the files have been removed, then would need to recreate the removal SQL lines from the code itself, but give the above a shot first. :) Far easier to perform and may identify additional corrections to the software.

22 Sep 2015, 10:19 PM
#13
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

I browsed to ~/sitehome/$secret/index.php?remove_recaptcha=yes, then to ~/sitehome/$secret/index.php?remove_recaptcha=yes

In neither case did I get any kind install or uninstall prompt. I'm wondering why this doesn't get the attention of the developer rather than a well-meaning techy on his behalf?

22 Sep 2015, 10:36 PM
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

bobmeetin:

I browsed to ~/sitehome/$secret/index.php?remove_recaptcha=yes, then to ~/sitehome/$secret/index.php?remove_recaptcha=yes

In neither case did I get any kind install or uninstall prompt. I'm wondering why this doesn't get the attention of the developer rather than a well-meaning techy on his behalf?

Would require the later if properly installed. I don't remember if there are any prompts offered after doing so. I assume you were logged into the admin at the time of trying to access the $admin/index.php?remove_recaptcha=yes

As to the author even knowiing about this thread, well since no base thread was created, either they would need to be sent a pm or happen across this discussion...

22 Sep 2015, 11:58 PM
#15
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

mc12345678:

Okay, so took a few minutes to look through the files of the downloadable contact recaptcha. In the admin/includes/functions/extra_functions/recaptcha_functions.php file on line 82 is a check against the "minor version of 5.0 (applicable for ZC 1.5.0 and 1.5.1 believe it or not) that is performed in the install_recaptcha function. This should be activated when an admin webpage is attempted to be loaded with the parameter install_recaptcha=yes like: webpage dot com/YOURSECRETADMIN/index.php?install_recaptcha=yes. If there is already a question mark in the uri, then append the above parameter with &.

But also looking at the code, it appears that the code is supposed to "work" (at least offer the install option at the top of the screen) without doing any version compare... But, if it has previously been installed and "partially" removed, then it could be that the install routine isn't picking up on that... Would suggest "removing" it (at least activating the SQL to do so) and then install either through the above, or via the "normal" route.

mc12345678:

Would require the later if properly installed. I don't remember if there are any prompts offered after doing so. I assume you were logged into the admin at the time of trying to access the $admin/index.php?remove_recaptcha=yes

As to the author even knowiing about this thread, well since no base thread was created, either they would need to be sent a pm or happen across this discussion...

Sorry, just looked at an install of ZC 1.5.1 and specifically at the version information... I thought I remembered the constant PROJECT_VERSION_MINOR being set to 5.0, but instead I was thinking of EXPECTED_DATABASE_VERSION_MINOR... So... Yeah, won't "auto-install" on ZC 1.5.1...

Not unless you make a minor change:
Line 82 of admin/includes/functions/extra_functions/recaptcha_functions.php
change from:

    if(PROJECT_VERSION_MINOR == '5.0')

to:

    if(PROJECT_VERSION_MINOR == '5.1')

And same thing at line 114 of the same file...

and on line 90 of the same file change:

            $db->Execute("INSERT INTO " . TABLE_ADMIN_PAGES . "  (page_key, language_key, main_page, menu_key, display_on_menu,  sort_order, page_params) VALUES ('configRecaptcha',  'BOX_TOOLS_RECAPTCHA', 'FILENAME_CONFIGURATION', 'configuration', 'Y',  '" . $last_id->fields['sort_order'] ."','" . $group_id . "')");

to:

            $db->Execute("INSERT INTO " . TABLE_ADMIN_PAGES . " (page_key, language_key, main_page, menu_key, display_on_menu, sort_order, page_params) VALUES ('configRecaptcha', 'BOX_TOOLS_RECAPTCHA', 'FILENAME_CONFIGURATION', 'configuration', 'Y', '" . $last_id->fields['sort_order'] ."','gID=" . $group_id . "')");

Never really got the "auto-install" part to work, but I was able to activate it through the install_recaptcha=yes... Then after that loaded, refresh the page again and the menu option appears in configuration.

24 Sep 2015, 1:27 AM
#16
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

It sounds a little like the plugin was put up there as available but wasn't fully tested, I don't know. Hopefully your time and instructions will not be wasted and will help someone else. I was being urged to get this resolved so last night I created a contact.php page based on the site theme with a custom math captcha that I devised employing bootstrap, some form validation from forvalidation.io and glyphicons. Again, thank you.

24 Sep 2015, 4:16 AM
#17
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact reCAPTCHA - Version: 1.3.2 --> no installation link

bobmeetin:

It sounds a little like the plugin was put up there as available but wasn't fully tested, I don't know. Hopefully your time and instructions will not be wasted and will help someone else. I was being urged to get this resolved so last night I created a contact.php page based on the site theme with a custom math captcha that I devised employing bootstrap, some form validation from forvalidation.io and glyphicons. Again, thank you.

Well, I had previously indicated that it all should work and when everything discussed didn't, it was time to figure out why. There still are other aspects I didn't even try to tackle like the change of message prompts between ZC versions assuming that it worked to begin with, but I was able to install at least.

I still stand by the google recaptcha if a captcha is going to be used. The software is supported and it is possible to apply it to whatever page(s) desired. In more recent versions of ZC though, such recaptchas are predominantly considered unnecessary because of the use of a honeypot beginning with ZC 1.5.1.

Perhaps the above will help someone (someone still using 1.5.1 which is almost 4 years old now with ZC 1.5.5 just around the corner), I at least thought I would share what it took me to disprove my previous claims and to set the record straight that the software was designed to be functional with ZC 1.5.0 and was not maintained to be compatible with more recent versions. That's where google recaptcha steps in...