1
Razbox
Code captcha not work
  • 2009/11/12 15:13

  • Razbox

  • Just popping in

  • Posts: 14

  • Since: 2009/10/1


I have upgrade my XOOPS system 2.3.3b to 2.4.1,
but code captcha into registration module,
not work and not visible (2.3.3b and 2.4.1).

I am confused!

I must setting into admin module or is a bug?

Razbox

2
ghia
Re: Code captcha not work
  • 2009/11/13 0:47

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


So, it didn't work in both versions?
Is the captcha title, or image showing in the registration form?
What is the generated HTML source code for that form row?
Do you use the profile module?

3
Razbox
Re: Code captcha not work
  • 2009/11/13 18:02

  • Razbox

  • Just popping in

  • Posts: 14

  • Since: 2009/10/1


No work into all version (2.3.3b and 2.4.1) Yes, i use and is active profile module. This is output source:
<!-- Start Form Validation JavaScript //--> <script type='text/javascript'> <!--// function xoopsFormValidate_regform() { var myform = window.document.regform;  if ( myform.uname.value == "" ) { window.alert("Please enter Username"); myform.uname.focus(); return false; }  if ( myform.email.value == "" ) { window.alert("Please enter Email"); myform.email.focus(); return false; }  if ( myform.pass.value == "" ) { window.alert("Please enter Password"); myform.pass.focus(); return false; }  if ( myform.vpass.value == "" ) { window.alert("Please enter Verify Password"); myform.vpass.focus(); return false; }  if ( myform.xoopscaptcha.value == "" ) { window.alert("Please enter Confirmation Code"); myform.xoopscaptcha.focus(); return false; } return true; } //--></script> <!-- End Form Validation JavaScript //-->      <form id="regform" name="regform" action="/modules/profile/register.php" method="post" onsubmit="return xoopsFormValidate_regform();" >         <table class="profile-form" id="profile-form-regform">                                                                             <tr>                         <td class="head">                              <div class='xoops-form-element-caption-required'>                                 <span class='caption-text'>Username</span>                                 <span class='caption-marker'>*</span>                             </div>                                                     </td>                         <td class="odd">                             <input type='text' name='uname' title='Username' id='uname' size='35' maxlength='10' value=''  />                         </td>                      </tr>                                                                 <tr>                         <td class="head">                             <div class='xoops-form-element-caption-required'>                                 <span class='caption-text'>Email</span>                                 <span class='caption-marker'>*</span>                             </div>                                                     </td>                          <td class=" even">                             <input type='text' name='email' title='Email' id='email' size='35' maxlength='255' value=''  />                         </td>                     </tr>                                                                 <tr>                         <td class="head">                             <div class='xoops-form-element-caption-required'>                                 <span class='caption-text'>Password</span>                                  <span class='caption-marker'>*</span>                             </div>                                                     </td>                         <td class="odd">                             <input type="password" name="pass" id="pass" size="35" maxlength="32" value=""  autocomplete="off" />                         </td>                     </tr>                                                                 <tr>                          <td class="head">                             <div class='xoops-form-element-caption-required'>                                 <span class='caption-text'>Verify Password</span>                                 <span class='caption-marker'>*</span>                             </div>                                                     </td>                         <td class=" even">                             <input type="password" name="vpass" id="vpass" size="35" maxlength="32" value=""  autocomplete="off" />                          </td>                     </tr>                                                                 <tr>                         <td class="head">                             <div class='xoops-form-element-caption'>                                 <span class='caption-text'>Disclaimer</span>                                 <span class='caption-marker'>*</span>                             </div>                                                      </td>                         <td class="odd">                             <div style="padding: 5px;">Gli amministratori e moderatori di questo sito cancelleranno o modificheranno, il pi&ugrave; velocemente possibile, qualsiasi contenuto ritenuto sgradevole o offensivo.<br />&Egrave; in ogni caso impossibile esaminare ogni messaggio e si mette quindi a conoscenza che tutti i messaggi esprimono opinioni e punti di vista dei loro autori e non degli amministratori, moderatori o webmaster (ad eccezione dei messaggi inviati da questi utenti) e sono per questa ragione al di fuori della responsabilit&agrave; diretta degli amministratori del sito.<br /><br />Si accetta di non inviare messaggi e/o allegati osceni, volgari, calunniosi, discriminatori, <br />atti a fomentare qualsiasi forma di odio politico, razziale o religioso, o qualsiasi materiale in contrasto con le leggi vigenti in Italia.<br />Il non rispetto di queste condizioni provocher&agrave; l'immediata e definitiva espulsione (e il vostro provider/hosting verr&agrave; informato).<br />Tutti gli indirizzi IP degli autori dei messaggi saranno registrati per consentire l'applicazione di queste condizioni. <br />Non &egrave; consentito creare account multipli per la stessa persona fisica. <br />Si accetta inoltre che i webmaster, amministratori o moderatori di questo sito abbiano il diritto di cancellare, modificare, spostare o chiudere qualsiasi discussione ogni volta lo ritengano necessario.<br />Come utente si accetta inoltre che qualsiasi informazione inserita venga memorizzata in un database. <br />Questi dati non verranno consegnati a terze parti senza il consenso dell'utente e ne verr&agrave; garantit&agrave; la protezione attraverso l'utilizzo di adeguati sistemi di sicurezza e di monitoraggio. <br />Webmaster, amministratori e moderatori non possono in ogni caso essere ritenuti responsabili per operazioni hacking che possano condurre ai suddetti dati.<br /><br />Questo sito utilizza dei cookies per salvare informazioni in locale sul computer dell'utente.<br />Tali cookies non contengono alcun dato personale dell'utente, tra quelli inseriti nel modulo di registrazione (ad eccezione dell'id utente), e servono solo a consentire la navigazione del sito. <br />L'indirizzo email verr&agrave; usato per confermare i dettagli della registrazione e la password (e per inviare una nuova password nel caso in cui questa venga persa o dimenticata). <br />Verr&agrave; inoltre utilizzato per l'invio di notifiche di pubblicazione relativamente all'immissione di contenuti sul sito e per eventuali comunicazioni di servizio/utilit&agrave; da parte degli amministratori.<br /><br />Premendo il pulsante 'Invia' si accettano tutti i vincoli e le condizioni sopra descritte e si da autorizzazione al trattamento dei dati personali contestualmente forniti per la fornitura di questo servizio, secondo quanto stabilito dal Codice in materia di protezione dei dati personali (d.lgs 196/03).</div>  <br /><input type='checkbox' name='agree_disc' id='agree_disc1' title='' value='1'  /><label name='xolb_agree_disc' for='agree_disc1'>I agree to the above</label>&nbsp;                          </td>                     </tr>                                                                 <tr>                         <td class="head">                             <div class='xoops-form-element-caption-required'>                                 <span class='caption-text'>Confirmation Code</span>                                 <span class='caption-marker'>*</span>                              </div>                                                     </td>                         <td class=" even">                             <script type='text/javascript'>                 function xoops_captcha_refresh(imgId)                 {                     xoopsGetElementById(imgId).src = 'http://www.mysite.it/class/captcha/image/scripts/image.php?refresh='+Math.random();                 }                 </script><img id="xoopscaptcha" src="http://www.mysite.it/class/captcha/image/scripts/image.php" onclick='this.src="http://www.mysite.it/class/captcha/image/scripts/image.php?refresh="+Math.random()' style="cursor: pointer; vertical-align: middle;" alt="" /><br /><a href="javascript: xoops_captcha_refresh('xoopscaptcha')">Click to refresh the image if it is not clear enough.</a><br /><br /><input type="text" name="xoopscaptcha" id="xoopscaptcha" size="4" maxlength="4" value="" /><br />Input letters in the image<br />The code is case-insensitive<br />Maximum attempts you can try: 10                         </td>                     </tr>                                                                                                                         <tr>                          <td class="head">                             <div class='xoops-form-element-caption'>                                 <span class='caption-text'></span>                                 <span class='caption-marker'>*</span>                             </div>                                                     </td>                         <td class="odd">                             <input type='submit' class='formButton' name='submit'  id='submit' value='Submit' title='Submit'  />                          </td>                     </tr>                                                                 <tr>                         <td class="head">                             <div class='xoops-form-element-caption'>                                 <span class='caption-text'></span>                                 <span class='caption-marker'>*</span>                             </div>                                                      </td>                         <td class=" even">                             <tr class='foot'><td colspan='2'>* = Required</td></tr>                         </td>                     </tr>                                     </table>                                     <input type="hidden" name="XOOPS_TOKEN_REQUEST" id="XOOPS_TOKEN_REQUEST" value="90369a6f6f61384066d9f4551ab22559" />                                                                                                                                                                         <input type="hidden" name="uid" id="uid" value="" />                                                  <input type="hidden" name="step" id="step" value="1" />                                                                 </form></div>
Thanks, help me please. Razbox

4
ghia
Re: Code captcha not work
  • 2009/11/13 19:32

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I suppose you don't see anything on your screen at the place where the captcha image should be located? Do you have a GD library installed in the PHP environment? Some admin themes or modules display this info. Else make and run infogd.php:
<?php var_dump(gd_info()); ?>
or info.php:
<?php phpinfo(); ?>
If a gd library is present try this imagegd.php
<?php
$im 
imagecreatetruecolor(12020);
$text_color imagecolorallocate($im2331491);
imagestring($im155,  'XOOPS Rocks!'$text_color);
header('Content-type: image/jpeg');
imagejpeg($im);
imagedestroy($im);
?>
What are the results of infogd.php and imagedg.php?

5
Razbox
Re: Code captcha not work
  • 2009/11/14 12:37

  • Razbox

  • Just popping in

  • Posts: 14

  • Since: 2009/10/1


Output of
rray(11) { ["GD Version"]=>  string(27"bundled (2.0.28 compatible)" ["FreeType Support"]=>  bool(true) ["FreeType Linkage"]=>  string(13"with freetype" ["T1Lib Support"]=>  bool(true) ["GIF Read Support"]=>  bool(true) ["GIF Create Support"]=>  bool(true) ["JPG Support"]=>  bool(true) ["PNG Support"]=>  bool(true) ["WBMP Support"]=>  bool(true) ["XBM Support"]=>  bool(true) ["JIS-mapped Japanese Font Support"]=>  bool(false) }
Output of phpinfo:
PHP Version 4.4.9  System     Linux webxc07s02.ad.aruba.it 2.6.18-164.6.1.el5PAE #1 SMP Tue Nov 3 16:55:59 EST 2009 i686 Build Date     Jan 29 2009 17:16:06 Configure Command     './configure' '--prefix=/php_4.4.9' '--with-mysql=/usr' '--with-jpeg-dir=/usr/lib/' '--with-zlib' '--with-png-dir=/usr/lib' '--with-config-file-path=/etc/apache/' '--with-gd' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--with-imap=/usr/local/imap-2004g/' '--with-imap-ssl' '--with-mcrypt' '--enable-ftp' '--enable-xslt' '--with-xslt-sablot' '--with-ttf' '--with-freetype-dir=/usr/include/freetype2/freetype/' '--with-t1lib=/usr/include/' '--with-gettext' '--enable-exif' '--enable-bcmath' '--enable-calendar' '--with-dom' '--enable-discard-path' '--disable-path' '--with-bz2' '--with-mhash' '--with-mime-magic' '--with-curl' '--enable-wddx' '--with-expat' '--disable-ipv6' Server API     CGI Virtual Directory Support     disabled Configuration File (php.ini) Path     /etc/apache/php.ini PHP API     20020918 PHP Extension     20020429 Zend Extension     20050606 Debug Build     no Zend Memory Manager     enabled Thread Safety     disabled Registered PHP Streams     php, http, ftp, compress.bzip2, compress.zlib
Your script with your image "Xoops RockS" work!!!! Why the captcha in XOOPS no work! I am confused!!!! Razbox

6
ghia
Re: Code captcha not work
  • 2009/11/14 17:06

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you run the file check (see release notes)?

7
Razbox
Re: Code captcha not work
  • 2009/11/15 23:05

  • Razbox

  • Just popping in

  • Posts: 14

  • Since: 2009/10/1


What file check?

Phpinfo
PhpInfo gd
or your testing file?

I have an other problem:

I change LDAP configuration from admin panel control, and now is impossible to access, the admin is out!!!!!

This is the warning when i make the login admin:
Quote:
PHP LDAP extension not loaded (verify your PHP configuration file php.ini) using ldap authentication method If the page does not automatically reload, please click here


How i restore auth method from mysql?

Thank very mutch.

Razbox

8
ghia
Re: Code captcha not work
  • 2009/11/16 1:02

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


File check: see release notes
LDAP: See this.

Login

Who's Online

190 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 190


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits