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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:56:54
Script start
Timing: Jan 18 2025 02:56:54
Module start 'layout'
Timing: Jan 18 2025 02:56:54
Module start 'content'
Timing: Jan 18 2025 02:56:55
Module end 'content'
Timing: Jan 18 2025 02:56:55
Script end

Main resources:

Total runtime0.6721 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1641152.6563
Module start 'layout' 0.00540.0025 740.820339.5156
Module start 'content' 0.00790.6628 780.3359540.8281
Module end 'content' 0.67080.0013 1,321.164112.1094
Script end 0.6721  1,333.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5308160.0002
Check MTime0.00160.2382160.0001
Mysql Total
Database connection0.00070.097610.0007
Mysqli_queries0.619792.2056580.0107
Looping result0.00060.0825560.0000
Template Total0.642395.620.3212
Template load0.00230.338220.0011
Template processing0.640095.225620.3200
Template load and register function0.00020.028010.0002
states
state_id_array0.00170.246710.0017
state_identifier_array0.00120.172920.0006
Override
Cache load0.00190.2856340.0001
Sytem overhead
Fetch class attribute can translate value0.00070.096720.0003
Fetch class attribute name0.00110.162640.0003
XML
Image XML parsing0.00210.318720.0011
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00260.3822160.0002
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/header.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/header.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
4content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 12

Time used to render debug report: 0.0001 secs