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.