Forums / Install & configuration / Error/kernel (20): The requested module 'admin' could not be found.

Error/kernel (20): The requested module 'admin' could not be found.

Author Message

Chris Kaminski

Sunday 03 August 2003 2:04:21 pm

Apologies if this is something covered somewhere in the documentation; I've been through the documentation at the site, as well as at manual.ez.no, the INSTALL file in /doc and a eZ publish Help Wiki, and have found nothing that seems to fit my situation.

After I log into the admin site, if I try to edit folders, articles, users or groups, I get the error above. I do not get the error when editing users and the like if I use the drop-down in the left-hand nav column. What gives?

The form (trying to edit at that point requires clicking a form button) action is:

/index.php/admin/content/action

The link for the anonymous user (just as an example of a bad link) is:

/index.php/admin/content/view/full/11

Note that there are two identical links, one nested inside the other, surrounding the 'anonymous user' text.

I installed eZ publish 3.1 on Mac OS X.2.6. I have virtual hosts set up.

The following is in my httpd.config file (note that the '.dev' is my local development domain; I'm running my own BIND server):

<VirtualHost admin.ezpublish.dev>
DocumentRoot /Users/setmajer/Sites/ezpublish
ServerName admin.ezpublish.dev
<Directory /Users/setmajer/Sites/ezpublish>
Options FollowSymLinks Indexes ExecCGI
AllowOverride All
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ /index.php
</VirtualHost>

<VirtualHost www.ezpublish.dev>
DocumentRoot /Users/setmajer/Sites/ezpublish
ServerName www.ezpublish.dev
<Directory /Users/setmajer/Sites/ezpublish>
Options FollowSymLinks Indexes ExecCGI
AllowOverride All
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ /index.php
</VirtualHost>

mod_rewrite is loaded.

I have also added the following to my .htaccess file:

php_value memory_limit 20MB

In /settings/override/site.ini.append I have:

[SiteSettings]
SiteName=eZ publish test site
SiteURL=www.ezpublish.dev/index.php/test
DefaultAccess=user

[SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=ezpublish.dev;user
HostMatchMapItems[]=www.ezpublish.dev;user
HostMatchMapItems[]=admin.ezpublish.dev;admin
DebugAccess=enabled
DebugExtraAccess=enabled

In /settings/siteaccess/admin/site.ini.append I have:

[SiteSettings]
DefaultPage=/content/view/full/2
LoginPage=custom

[SiteAccessSettings]
RequireUserLogin=true

[DesignSettings]
SiteDesign=admin

Any help would be much appreciated.

Chris Kaminski

Monday 04 August 2003 3:30:43 am

For an example of the error, go to this page on the ez.no site:

http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/troubleshooting/user_site_instead_of_admin_site

About half-way down, there's an inline link entitled 'Configure the site access methods.' Click that, and you should get an error identical to mine save that 'developer' is substituted for 'admin.'

Chris Kaminski

Monday 04 August 2003 12:09:12 pm

Finally got debug messages to show (had to enable "Debug Output" in /settings/site.ini; why I didn't see that in the manual/instructions I don't know, but I didn't). When first logging in I get the following as one of the debug messages:

Error: eZTSTranslator::load

Could not load translation file: share/translations/eng-US/translation.ts

And sure enough, there are no eng- translations at all. I'm guessing this is normal, as are the myriad warnings regarding the absence of translation.ts.

Once I select 'folder' from the drop-down in the content area and click 'Create Here', I get the above translation error, the kernel error that I originally had and the following debug message:

Error: index Aug 04 2003 21:02:05

Undefined module: admin

On a hunch, I went to the Users tab and clicked on the name of the Anonymous group. The URL is:

admin.ezpublish.dev/index.php/admin/content/view/full/11

The same error and debug messages turn up as after trying to create a folder.

However, if I manually remove the /admin from the URL, everything works fine (I am also able to remove the /index.php so long as the /admin is gone).

So the upshot is that eZpublish appears to be getting confused by the '/admin' that it is adding to the URL.

Any idea why that '/admin' is getting added and what to do about it?

TIA

Claus Jensen

Wednesday 17 September 2003 1:22:34 am

Hello!
I too have this problem. I have 2 design folders: user and admin. user is the DefaultAccess site, and it works, but when i try to access admin (www.mysite.com/admin or www.mysite.com/index.php/admin or www.mysite.com:8889) I just get the " Error / kernel (20) Module Not Found" message.

Here is my config in site.ini:
[SiteAccessSettings]
# Set to true if you want the setup system to be activated
CheckValidity=false
# Set the true if you don't want anonymous access to your site
RequireUserLogin=true
StaticMatch=sdk

# A list over current active siteaccesses
AvailableSiteAccessList[]=user
AvailableSiteAccessList[]=admin

MatchOrder=uri;host;port;index

# A list of siteaccesses that are valid for this site.
# It will be used by the user/login policy to decice if a user
# can login a siteaccess
SiteAccessList[]=user
SiteAccessList[]=admin

[PortAccessSettings]
# Add entries here if you have port in MatchOrder
# Each entry consists of the port=accessname
8888=user
8889=admin

WHY DONT IT WORK??? I have the design folders, but i cant find the module!! Can you please advice ez folks?

best,
claÜs

Paul McCann

Wednesday 17 September 2003 9:24:49 am

Im getting a similar error I cant find my front, whatever i do i get the admin interface. And i want to look at the news front.

Error/ kernal (20)
Module not found

James Packham

Friday 19 September 2003 4:32:16 am

I also have this problem! So has I've seen a number of people put this post up, but no one ever seems to get a reply! I can live with the problems, but the lack of response from eZ in the forums and the way the documentation available on the website is laid out makes it very difficult to resolve most issues. I can't help but get the feeling that I would have saved a lot of time if the support was just a bit little better. :(

James Packham

Friday 19 September 2003 8:19:36 am

After a little investigation this is the problem as I can see it:

From debuging output I can tell that the error is in line 553 of ezsys.php.

Now this line uses a function (wwwDir) to call a (global??) variable (WWWDir) which tells the program what your <http root>/ezpublish-xxx/ is so it can add index.php on the end.

I'm guessing from the debug output: "Undefined module: index.php" that the wwwDir is coming up empty/incorrect so it can't find index.php (presumably because it's looking in the wrong place).

This line seems to be called up in the first place because a virtual host is being used and it needs to identify the correct path so that it can add the uri on the end and look up the right content.

Ok so we know why this is happening, what do we do about it?

James Packham

Friday 19 September 2003 9:18:46 am

Ok I feel a bit silly, I just wasn't used to concept of virtual hosting :) I was trying to do <sitevirtualaddress>/index.php/admin when I should have just done <sitevirtualaddress>/admin