Undefined module?

Author Message

Tore Åbodsvik

Tuesday 11 November 2003 4:11:28 pm

Hi.

I am trying to reach my javascript files.
I have set the full path to the scripts by using:
<script type="text/javascript" language="javascript" src={"javascripts/coolmenus4.js"|ezdesign}>

this gives me the full path to the scripts.
Then i get this errors in my log.

[ Nov 12 2003 01:07:14 ] [62.16.135.59] Undefined module: plain
[ Nov 12 2003 01:07:14 ] [62.16.135.59] Timing Point: Module end 'error'
[ Nov 12 2003 01:07:14 ] [62.16.135.59] Unknown template variable 'node' in namespace ''
[ Nov 12 2003 01:07:14 ] [62.16.135.59] Missing parameter 'parent_node_id' for function 'list' in module 'content'

It's the undefined module that i just can't understand.
What is this error, and is there anything i can do to get rid of it?

Regards Tore

Willie Seabrook

Tuesday 11 November 2003 9:17:39 pm

Where is your /javascripts directory?

exdesign looks in /design/yourdesign/
so the coolmenus script should be located in /design/yourdesign/javascripts/coolmenus4.js

if it is to work.

I don't know if those errors are related but they shouldn't be:

[ Nov 12 2003 01:07:14 ] [62.16.135.59] Undefined module: plain

Not sure about this one.... what url are you using to access the page?

[ Nov 12 2003 01:07:14 ] [62.16.135.59] Unknown template variable 'node' in namespace ''

You've spelt a variable wrong in your template.

[ Nov 12 2003 01:07:14 ] [62.16.135.59] Missing parameter 'parent_node_id' for function 'list' in module 'content'

You're trying to fetch a node using something like

fetch(content, list, hash(parent_node_id, 55, class_filter_type, include, class_filter_array, array(24),sort_by, array(name, true() )))}

except you forgot to include the parent_node_id argument.

Tore Åbodsvik

Wednesday 12 November 2003 3:26:44 am

Hi Willie.

I just want to take first things first, so i commented out the fetch part of the template.

The 'javascripts' folder is in the design/[site]/ folder alogside with the templates, fonts and stylesheets folders

So....
When reloading the page i get this in my error log:

[ Nov 12 2003 12:21:26 ] [XX.X.131.13] Undefined module: plain
[ Nov 12 2003 12:21:27 ] [XX.X.131.13] Undefined module: plain
[ Nov 12 2003 12:21:27 ] [XX.X.131.13] Undefined module: plain

Which is consistent with the numbers of calls to the .js script files.

So i am still wondering what the Undefine module: plain really means. And how can i then (if this is the way to go) define it?

Regards
Tore.

Paul Forsyth

Wednesday 12 November 2003 3:33:44 am

From the previous thread on this:

The url in question is:

http://scamp.tasy.no/design/plain/javascripts/gfs_construct.js

For some reason ez has problems using 'design/plain' as a path and instead thinks 'design' is a module with 'plain' as a view.

Willie, can you see anything wrong in the previous thread. It has most of the information about whats going on here.

paul

Willie Seabrook

Wednesday 12 November 2003 2:08:47 pm

I notice that you can visit http://scamp.tasy.no/plain/
This means that you have apache rewrite on and working? Otherwise this url would not work?

If this is the case, try turning it off and accessing straight through index.php. You may need to re-write your rewrite rules ;-)

I also notice you can visit any url also and get the same page.... again a rewrite problem?

Regards,
Willie

Tore Åbodsvik

Wednesday 12 November 2003 2:43:14 pm

Hi again Willie.

I have tried various settings with the .htaccess file.
even removed it totally from the site.
It doesnt help me anybit.

I have now set the .htaccess like this:

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html))$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine Off
RewriteRule !\.(gif|jpe?g|png|css|js|html)$ index.php

DirectoryIndex index.php

Tried to access the script trough this link:

http://scamp.tasy.no/index.php/design/plain/javascripts/coolmenus4.js

(wrote it right in the url at IE/Opera, none worked. :( )

The reason the same page comes over and over again is that this is the pagelayout.tpl file.

Im at my witts end here.
Have talked to the hosting company, and got them to agree that they can bring down the hole ez site, and set it up again. as a last resort. But ill wait a bit to see if i can find out of this error/misconfiguration/bug first...

Regards
Tore

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 19 2025 01:14:57
Script start
Timing: Jan 19 2025 01:14:57
Module start 'layout'
Timing: Jan 19 2025 01:14:57
Module start 'content'
Timing: Jan 19 2025 01:14:58
Module end 'content'
Timing: Jan 19 2025 01:14:58
Script end

Main resources:

Total runtime0.8782 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 592.2344152.6094
Module start 'layout' 0.00780.0039 744.843839.4141
Module start 'content' 0.01170.8652 784.2578558.1797
Module end 'content' 0.87680.0014 1,342.437516.1875
Script end 0.8782  1,358.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4988160.0003
Check MTime0.00160.1789160.0001
Mysql Total
Database connection0.00090.106110.0009
Mysqli_queries0.801591.2619680.0118
Looping result0.00070.0851660.0000
Template Total0.840195.720.4201
Template load0.00230.257620.0011
Template processing0.837895.402120.4189
Template load and register function0.00020.019510.0002
states
state_id_array0.00110.128210.0011
state_identifier_array0.00210.241520.0011
Override
Cache load0.00210.2338820.0000
Sytem overhead
Fetch class attribute can translate value0.00060.071230.0002
Fetch class attribute name0.00180.208460.0003
XML
Image XML parsing0.00030.038330.0001
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00080.0895100.0001
String conversion0.00000.001140.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
16content/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: 45
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs