Forums / Setup & design / Error: Load jquery first?

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!

eZ debug

Timing: Jan 18 2025 01:16:36
Script start
Timing: Jan 18 2025 01:16:36
Module start 'content'
Timing: Jan 18 2025 01:16:36
Module end 'content'
Timing: Jan 18 2025 01:16:36
Script end

Main resources:

Total runtime0.1829 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.8203180.8516
Module start 'content' 0.00700.0060 769.671993.7891
Module end 'content' 0.01300.1698 863.4609522.1328
Script end 0.1828  1,385.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.3998200.0002
Check MTime0.00140.7832200.0001
Mysql Total
Database connection0.00050.278910.0005
Mysqli_queries0.129170.57851410.0009
Looping result0.00170.95261390.0000
Template Total0.169592.710.1695
Template load0.00170.957010.0017
Template processing0.167791.734810.1677
Override
Cache load0.00140.757410.0014
Sytem overhead
Fetch class attribute can translate value0.00080.439610.0008
XML
Image XML parsing0.00030.152010.0003
General
dbfile0.00472.5640200.0002
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs