Error: Load jquery first?

Author Message

Olaf Fichtner

Thursday 20 January 2011 10:51:28 pm

I created a custom template for article-like content. So far everything went well, but when I create a translation in the frontend, I get two notification windows, the first saying "undefined", the second "load jqery first". After that, an XML block is without OE, just plain text showing html tags inside.

I have not found anyone else with this kind of problem and it would not inconvenience me very much, but since I would like to also let other people edit content from the frontend, is there a way to resolve this?

André R.

Saturday 22 January 2011 1:12:47 pm

is this webin/flow?

What is version of eZ Publish / eZ JsCore / eZ Webin ? (it's enough with eZ Publish version if you use bundled extensions)

This typically happens when ezscript_load is not called in your page_head or included templates( it is by default in admin2 and webin in 4.4+, in versions lower then 4.4 ezjscore overrides the specific template in webin so unless you override the same template it should be called automatically. )

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Olaf Fichtner

Saturday 22 January 2011 5:12:47 pm

Ah, sorry, I forgot the "details" again: This is 4.4 and I use webin. I copied the article template, deleted things I did not need and then added my own. I also did touch page_header, but not page_head. So you are saying I probably deleted a call in the header?

Olaf Fichtner

Sunday 23 January 2011 11:22:09 pm

OK, fixed it! A quick grep showed me the file (page_head_script.tpl) that must have gone missing indirectly when I modified page_header.tpl. So I just included it directly and editing in the frontend is back to normal.

Thanks!

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 04:29:50
Script start
Timing: Jan 18 2025 04:29:50
Module start 'layout'
Timing: Jan 18 2025 04:29:50
Module start 'content'
Timing: Jan 18 2025 04:29:52
Module end 'content'
Timing: Jan 18 2025 04:29:52
Script end

Main resources:

Total runtime1.2598 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 587.9063152.6250
Module start 'layout' 0.00830.0031 740.531339.4531
Module start 'content' 0.01141.2465 779.9844541.2969
Module end 'content' 1.25790.0018 1,321.281312.1641
Script end 1.2597  1,333.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2741160.0002
Check MTime0.00140.1106160.0001
Mysql Total
Database connection0.00080.065810.0008
Mysqli_queries1.211996.2050600.0202
Looping result0.00060.0437580.0000
Template Total1.229197.620.6145
Template load0.00200.159320.0010
Template processing1.227197.405420.6135
Template load and register function0.00030.023910.0003
states
state_id_array0.00080.061410.0008
state_identifier_array0.00120.093320.0006
Override
Cache load0.00160.1283150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.047620.0003
Fetch class attribute name0.00090.074850.0002
XML
Image XML parsing0.00050.041120.0003
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00080.0662170.0000
String conversion0.00000.000840.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
4content/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/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs