Page 1 of 1

[SOLVED] FrontEndUser Login No Field to Enter Captcha String

Posted: Wed Dec 23, 2015 2:13 pm
by postiffm
On a page with {FrontEndUsers}, I see this:

Image

There is no field to enter the Captcha text! If I add nocaptcha="1" to the module call, that works, but I don't want to leave it that way permanently. I cleared cache, and made sure this page is not cachable, but the problem persists.

The upgrade path for this site was from 1.12.1 Rontiki directly to 2.1.1 Nicholls Town. The upgrade went fairly smoothly. I did NOT have Captcha installed on the site when it was running on 1.12.1, so the login page never had a captcha until now. I installed Captcha fresh after the 2.1.1. upgrade and it "added itself" to the login page but sans the space to enter the captcha text.

Any ideas?

----------------------------------------------
Cms Version: 2.1.1
Installed Modules:
CMSMailer: 5.2.4
AdminSearch: 1.0
FileManager: 1.5.2
MenuManager: 1.50.2
MicroTiny: 2.0.2
ModuleManager: 2.0.1
News: 2.50.3
Search: 1.50.2
ThemeManager: 1.1.8
CGExtensions: 1.50
FrontEndUsers: 1.30.7
CustomContent: 1.10
SiteMapMadeSimple: 1.2.8
CMSContentManager: 1.1
CGSimpleSmarty: 2.0.2
DesignManager: 1.1.1
Navigator: 1.0.2
FormBuilder: 0.8.1.2
Captcha: 0.5.2

Config Information:
php_memory_limit:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/Detroit
permissive_smarty: false

Php Information:
phpversion: 5.6.15
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 0
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: Off (False)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 3.12.48-31.ELK6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home1/atwozoom/public_html/aahcdc/tmp (0777)
tmp_cache: /home1/atwozoom/public_html/aahcdc/tmp/cache (0755)
templates_c: /home1/atwozoom/public_html/aahcdc/tmp/templates_c (0755)
modules: /home1/atwozoom/public_html/aahcdc/modules (0777)
uploads: /home1/atwozoom/public_html/aahcdc/uploads (0777)
File Creation Mask (umask): /home1/atwozoom/public_html/aahcdc/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: FrontEndUsers Login Page No Field to Enter Captcha Strin

Posted: Wed Dec 23, 2015 2:28 pm
by Jo Morg
Please post the FEU login template. You may very well need to update the template. With every module update you should read the readme files/notes and help pages: changes may have been introduced with the update that may require template tweaks. I suspect this is one of those cases.

Re: FrontEndUsers Login Page No Field to Enter Captcha Strin

Posted: Wed Dec 23, 2015 2:43 pm
by postiffm
Duh. Updating the template fixed the problem. My fault totally. For some reason I find it hard to remember to look up to the upper right of my screen to see the smaller "Settings" and "Templates" links. After this, hopefully I will remember to go to those sections regularly as well instead of just browse the tabs presented on the first screen of FEU.

What I had:

Code: Select all

{* login form template *}
{* this is a sample template, feel free to customize it *}
{if isset($alt_loginform)}
  <div class="row" id="altlogin">{$alt_loginform}</div><br/>
{/if}

<fieldset id="loginform">
  <legend>{$FrontEndUsers->Lang('prompt_normallogin')}:</legend>
  {$startform}

  {*
   * a simple honeypot captcha....if this field has a value after submit an error will be thrown
   * deleting this field will simply disable the honeypot.
   * it is important that the field be hidden with CSS rather than using a hidden input field.
   *}
  <input type="text" name="{$actionid}feu__data" value="" style="display: none;"/>

  {if $error}<div class="alert alert-danger">{$error}</div>{/if}
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_username">{$prompt_username}:</label></p>
    <p class="col-md-8">
      <input type="text" id="feu_username" name="{$fldname_username}" value="{$username}" size="{$username_size}" maxlength="{$username_maxlength}" required/>
    </p>
  </div>
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_password">{$prompt_password}:</label></p>
    <p class="col-md-8">
      <input type="password" id="feu_password" name="{$fldname_password}" value="{$password}" size="{$password_size}" maxlength="{$password_maxlength}" required/>
    </p>
  </div>
  {if isset($captcha)}
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_captcha">{$captcha_title}:</label></p>
    <div class="col-md-8">{$captcha}
      <div classs="row">{$input_captcha}</div>
    </div>
  </div>
  {/if}

  {if isset($prompt_rememberme)}
  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-md-8">
      <label><input type="checkbox" name="{$actionid}feu_rememberme" value="1" {if $rememberme==1}checked/>{/if}/> {$prompt_rememberme}</label>
    </p>
  </div>
  {/if}

  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-md-8">
      <button class="btn btn-active" name="{$actionid}submit">{$FrontEndUsers->Lang('login')}</button>
    </p>
  </div>
{*
  {if isset($url_lostun) || isset($url_forgot)}
  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-sm-8">
      {if isset($url_forgot)}
        <a href="{$url_forgot}" title="{$FrontEndUsers->Lang('info_forgotpw')}">{$FrontEndUsers->Lang('forgotpw')}</a>
      {/if}
      {if isset($url_lostun)}
        <a href="{$url_lostun}" title="{$FrontEndUsers->Lang('info_lostun')}">{$FrontEndUsers->Lang('lostusername')}</a>
      {/if}
    </p>
  </div>
  {/if}
*}
  {$endform}
</fieldset>
A restore to factory defaults gives this:

Code: Select all

{* login form template *}
{* this is a sample template, feel free to customize it *}
{if isset($alt_loginform)}
  <div class="row" id="altlogin">{$alt_loginform}</div><br/>
{/if}

<fieldset id="loginform">
  <legend>{$FrontEndUsers->Lang('prompt_normallogin')}:</legend>
  {$startform}

  {*
   * a simple honeypot captcha....if this field has a value after submit an error will be thrown
   * deleting this field will simply disable the honeypot.
   * it is important that the field be hidden with CSS rather than using a hidden input field.
   *}
  <input type="text" name="{$actionid}feu__data" value="" style="display: none;"/>

  {if $error}<div class="alert alert-danger">{$error}</div>{/if}
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_username">*{$prompt_username}:</label></p>
    <p class="col-md-8">
      <input type="{if $username_is_email}email{else}text{/if}" id="feu_username" name="{$fldname_username}" value="{$username}" size="{$username_size}" maxlength="{$username_maxlength}" {if !$username_is_email}autocorrect="off" autocapitalize="off"{/if} required/>
    </p>
  </div>
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_password">*{$prompt_password}:</label></p>
    <p class="col-md-8">
      <input type="password" id="feu_password" name="{$fldname_password}" value="{$password}" size="{$password_size}" maxlength="{$password_maxlength}" required/>
    </p>
  </div>
  {if isset($captcha)}
  <div class="row">
    <p class="col-md-4 text-right">{$captcha_title}</p>
    <div class="col-md-8">{$captcha}
      {if $need_captcha_input}
      <div class="row">
        <input type="text" name="{$actionid}feu_input_captcha" size="10"/>
      </div>
      {/if}
    </div>
  </div>
  {/if}

  {if isset($prompt_rememberme)}
  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-md-8">
      <label><input type="checkbox" name="{$actionid}feu_rememberme" value="1" {if $rememberme==1}checked{/if}/> {$prompt_rememberme}</label>
    </p>
  </div>
  {/if}

  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-md-8">
      <button class="btn btn-active" name="{$actionid}feu_submit">{$FrontEndUsers->Lang('login')}</button>
    </p>
  </div>

  {if isset($url_lostun) || isset($url_forgot)}
  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-sm-8">
      {if isset($url_forgot)}
        <a href="{$url_forgot}" title="{$FrontEndUsers->Lang('info_forgotpw')}">{$FrontEndUsers->Lang('forgotpw')}</a>
      {/if}
      {if isset($url_lostun)}
        | <a href="{$url_lostun}" title="{$FrontEndUsers->Lang('info_lostun')}">{$FrontEndUsers->Lang('lostusername')}</a>
      {/if}
    </p>
  </div>
  {/if}
  {$endform}
</fieldset>