Forums / Install & configuration / Trouble with extension «reCaptcha» and «ezcomments»

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Trouble with extension «reCaptcha» and «ezcomments»

Author Message

Pascal France

Monday 17 January 2011 11:58:44 am

Hi,

I would like to know if there is a way to install both reCaptcha and ezcomments extensions ?

If we install these 2 extensions we get this error message when we click the update button in «Setup -> Extensions» (in admin interface):

Problèmes détectés durant la génération du tableau de classes :

  • Class ReCaptchaResponse in file extension/recaptcha/classes/recaptchalib.php is already defined in:
    extension/ezcomments/classes/recaptchalib.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.

My goal is to have recaptcha on the contact page and in comments?
Moreover, another problem situation:
if we create a private side where we use ezcomments (recaptcha is therefore useless in the comments) and if we have a contact page on the public side of the site.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Chen Xiongjie

Tuesday 18 January 2011 1:47:01 am

Hi, Pascal

A workaround would be removing ezcomments/classes/recaptchalib.php in ezcomments (I assume they are using the same version because there is no big change for that library ).

For further solution, I haven't thought it out. This is a general problem for extensions. One way might be adding some mechanism to isolate autoloads for extensions?

--

Chen

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

Pascal France

Tuesday 18 January 2011 6:32:48 am

Thanks Chen for your solution.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish