ezXajax issue

Author Message

Hakim Bouras

Thursday 10 April 2008 7:51:44 am

Hi,

I created a small extension very similar to the hello_world example (with a one xajax function). Everything works fine in my development environment.

I tried to publish my new extension on my production server. I updated my extension list in the admin interface (and even regenerate the autoload - altough I am not sure it is necessary in this case).

When my template use the xajax call, I got the following error in my browser: "xajax_getResearchersByInstitute is not defined" .

Looking closer at the source of my page I find out that in the list of declaration on xajax function, the function that I added (with my extension) does not appear:

<script type='text/javascript' charset='UTF-8'>
/* <![CDATA[ */
xajax_viewfull = function() { return xajax.request( { xjxfun: 'viewfull' }, { parameters: arguments } ); };
/* ]]> */
</script>

I verify that I have my file xajax.ini file referencing my function...

Any idea about how to troubleshoot this problem ?

Thanks,
Hakim

Kristof Coomans

Thursday 10 April 2008 10:15:42 am

Hi Hakim

Did you clear the template caches?

By the way, the ezxajax extension was moved to eZ Projects: http://projects.ez.no/ezxajax. It's better to use the dedicated forums there than the ones here. Thanks!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 20 2025 19:56:55
Script start
Timing: Jan 20 2025 19:56:55
Module start 'layout'
Timing: Jan 20 2025 19:56:55
Module start 'content'
Timing: Jan 20 2025 19:56:56
Module end 'content'
Timing: Jan 20 2025 19:56:56
Script end

Main resources:

Total runtime1.2342 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.7891151.1953
Module start 'layout' 0.00770.0032 738.984436.6016
Module start 'content' 0.01091.2221 775.5859554.3203
Module end 'content' 1.23300.0011 1,329.90637.8906
Script end 1.2341  1,337.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2738160.0002
Check MTime0.00120.0979160.0001
Mysql Total
Database connection0.00060.050110.0006
Mysqli_queries1.174395.1448540.0217
Looping result0.00050.0426520.0000
Template Total1.176595.320.5882
Template load0.00220.178620.0011
Template processing1.174295.144320.5871
Template load and register function0.00010.011110.0001
states
state_id_array0.00220.176110.0022
state_identifier_array0.00210.166320.0010
Override
Cache load0.00170.1415190.0001
Sytem overhead
Fetch class attribute can translate value0.00040.033520.0002
Fetch class attribute name0.00090.073440.0002
XML
Image XML parsing0.00250.204220.0013
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.01010.8207220.0005
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs