Admin stylesheet links are all wrong...

Author Message

Andrew K

Saturday 23 September 2006 1:12:45 pm

I've just set up an eZpublish test system. I decided to use the host name access type so I have a www.website.com and an admin.website.com.

The www.website.com works just fine. But when I login to the admin.website.com the stylesheet do not load. I can see all of the text just fine. Upon looking at the source of the page I noticed that the URL it's using to load the CSS files is not formed correctly. It appends the entire url to the end of the relative URL. So the css url looks like:

/ezpublish/index.php/http://admin.website.com/ezpublish/design/admin/stylesheets/core.css

Other links appear this way as well. Did I miss something?

Claudia Kosny

Monday 25 September 2006 1:04:37 pm

Hello Andrew

I am pretty sure that I have read about this problem before but as I don't remember right now, I need more information. What version of EZ do you use? Does the problem occurr with images and other urls as well? Also please post the part of the site.ini where you make your host matching.

Greetings from Luxembourg

Claudia

Andrew K

Monday 25 September 2006 1:16:33 pm

Version 3.8.4 is what I am using.

I have since gone back to the URL access method, since this is just a test at the moment. Though I did see that you can switch over to site access method after the fact. I may try and do that.

I had not made any changes to the default site.ini. When I did the install I set the user url to be www.website.com and the admin to be admin.website.com. Those are the only things I set when I set up the site access method.

If I get a chance I'll re install on my virtual machine and duplicate the problem. Then I can get you the site.ini.

--Andrew

Andrew K

Monday 25 September 2006 1:17:41 pm

Oh and the answer to the second question. It seemed to only happen to the CSS and meta links. Images seems to show up correctly and link appeared to work as well.

--Andrew

Andrew K

Monday 25 September 2006 1:43:15 pm

I just deleted and reinstalled. And it's now working perfectly. Odd... Not sure what I did differently. Well, I'll head back here if I run in to the problem again.

Thanks.

--Andrew

Michael Kress

Wednesday 09 May 2007 5:56:24 am

Hello, has somebody got more information on this issue? I've got the same effect here, I get an all white login screen for the admin interface, the css files are not being loaded, although they're reachable. I'm using centos-4 with a self compiled php-4.4.7 on an i686.
It's a fresh install of version 3.9.2 and I had this issue with versions before. I'm using firefox 2.0.0.3 on the client side. No chance to test this on another browser on this client machine.
Regards Michael

Andrew Duck

Wednesday 09 May 2007 8:12:56 am

Michael,

Whilst the css files are accessible via browser, have you checked the source code of outputted admin page to see where it is trying to source the files from? Does the requested file (as per source code output) match the location of the files?

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck

Michael Kress

Thursday 10 May 2007 12:57:52 am

Hi, this code is produced in the source on the admin page:

<style type="text/css">
    @import url("/design/admin/stylesheets/core.css");
    @import url("/design/admin/stylesheets/site.css");
    @import url("/design/standard/stylesheets/debug.css");</style>

The files are definitely accessible, I can paste the urls into the address line (append to the admin url) and view the css files. I even can login, but the css files are not working/loading.

The only thing that may be odd: The server's ip address is not known in any name server, it's only added to the hosts file, on the client as well as on the server. I can ping the name entered in hosts on both sides.

Regards,
Michael

Michael Kress

Thursday 10 May 2007 1:05:22 am

Hi again, I'm sorry, that was an issue of Ad Block plus. I had 'ad' in the host name (admin) and 'ad' in the URL (admin), so ad block blocked ad.
Sh.. and I lost quite a time trying to find the error...
Thanks anyways
Michael

Andrew K

Thursday 10 May 2007 7:25:14 am

Oh man! Don't you hate that! It's always the simple things that make us work the hardest.

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 31 2025 01:22:10
Script start
Timing: Jan 31 2025 01:22:10
Module start 'layout'
Timing: Jan 31 2025 01:22:10
Module start 'content'
Timing: Jan 31 2025 01:22:11
Module end 'content'
Timing: Jan 31 2025 01:22:11
Script end

Main resources:

Total runtime0.9716 sec
Peak memory usage8,192.0000 KB
Database Queries82

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.2578151.2266
Module start 'layout' 0.00780.0063 739.4844220.7188
Module start 'content' 0.01410.9565 960.20314,588.9609
Module end 'content' 0.97060.0009 5,549.164119.8281
Script end 0.9715  5,568.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4158160.0003
Check MTime0.00160.1629160.0001
Mysql Total
Database connection0.00170.175610.0017
Mysqli_queries0.852887.7759820.0104
Looping result0.00080.0799800.0000
Template Total0.887391.320.4436
Template load0.00210.213620.0010
Template processing0.885291.106720.4426
Template load and register function0.00170.171210.0017
states
state_id_array0.00350.359210.0035
state_identifier_array0.00190.194220.0009
Override
Cache load0.00180.1888470.0000
Sytem overhead
Fetch class attribute can translate value0.00220.224440.0005
Fetch class attribute name0.00290.2945110.0003
XML
Image XML parsing0.00230.236540.0006
class_abstraction
Instantiating content class attribute0.00000.0026110.0000
General
dbfile0.00530.5462180.0003
String conversion0.00000.001340.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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs