No more images an CSS in admin part after domain name change

Author Message

Adrien Mogenet

Thursday 23 July 2009 10:00:55 am

Hi folks,

I installed my eZ Publish application in a folder that I reached by this way :
http://global.domain.com/ez-publish
Everything went fine.

Then, I bought "my-domain.com", and I can reach my application directly typing "my-domain.com".
So, I changed the SiteURL setting in "site.ini", the front office is fully available without trouble, but when I try to go to "my-domain.com/index.php/ezwebsin_site_admin", I can't see any images, and CSS are not loaded correctly.

It seems to still work if I use the admin part through the old URI (global.domain.com/ez-publish/index.php/ezwebsin_site_admin).

Does anyone know I have to do to fix it ?
Thanks,

Adrien

PS: I just notice that a page like "http://global.domain.com/index.php/ezwebin_site_admin/content/action" is also not available anymore

Gaetano Giunta

Friday 24 July 2009 12:24:14 am

Did you try clearing the eZ Publish cache? Links to images/css might have been created using the old path that included the "ez-publish" part in the url.

If you look into the html of the pages, or use a tool like firebug, you should be able to tell whether the url to those images is right or wrong.

If it is correct (wrt. the new configuration), then try copying the url for an image and opening it directly in a new browser tab. If you get an eZ page instead of an image, your problem is related to the .htaccess file

Principal Consultant International Business
Member of the Community Project Board

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 18 2025 18:27:05
Script start
Timing: Jan 18 2025 18:27:05
Module start 'layout'
Timing: Jan 18 2025 18:27:05
Module start 'content'
Timing: Jan 18 2025 18:27:05
Module end 'content'
Timing: Jan 18 2025 18:27:05
Script end

Main resources:

Total runtime0.5705 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.3984152.6875
Module start 'layout' 0.00790.0026 741.085939.5234
Module start 'content' 0.01050.5583 780.6094526.0781
Module end 'content' 0.56890.0016 1,306.68758.0781
Script end 0.5704  1,314.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.6957160.0002
Check MTime0.00150.2711160.0001
Mysql Total
Database connection0.00110.198610.0011
Mysqli_queries0.521891.4717540.0097
Looping result0.00060.0993520.0000
Template Total0.535193.820.2675
Template load0.00240.429320.0012
Template processing0.532693.362620.2663
Template load and register function0.00020.042310.0002
states
state_id_array0.00130.235010.0013
state_identifier_array0.00180.313620.0009
Override
Cache load0.00200.3497190.0001
Sytem overhead
Fetch class attribute can translate value0.00090.150520.0004
Fetch class attribute name0.00150.259130.0005
XML
Image XML parsing0.00060.110420.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00080.1415160.0001
String conversion0.00000.005440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs