CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Wrong Css Directory in Joomla 1.5 Site
Pages: [1]

Author Topic: Wrong Css Directory in Joomla 1.5 Site  (Read 2900 times)

chapmanla

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.0.95
  • PHP version: 5.2.5
Wrong Css Directory in Joomla 1.5 Site
September 22, 2008, 10:09:04 am
I have recently ftp'd my Joomla 1.5 site containing Civicrm 2.1 B3 to SiteGround.  The site was developed on a local computer.  I modified the $civicrm_root parameter and other directory-related parameters in the civicrm.settings.php file to the appropriate siteground settings.  I made the same modifications in the civicrm.settings.php files in both the components/com_civicrm and administrator/components/com_civicrm directories.  I am able to access CiviCRM on both the front and back ends but have the following problem.

When I try to display a CiviCRM table in a front-end page, I lose all of the formatting.  In looking at the source code for the page, I see that the css links are using "http://localhost/administrator/...." instead of the correct siteground directory (i.e. /home/calpilot/public_html/administrator/components/com_civicrm/civicrm/css/civicrm.css).  See the following snippet from the source code:

Code: [Select]
<div id="crm-container" lang="en" xml:lang="en">
<script type="text/javascript" src="http://localhost/administrator/components/com_civicrm/civicrm/js/Common.js"></script>

<link rel="stylesheet" href="http://localhost/administrator/components/com_civicrm/civicrm/css/civicrm.css" type="text/css" />
<link rel="stylesheet" href="http://localhost/administrator/components/com_civicrm/civicrm/css/skins/aqua/theme.css" type="text/css" />
<script type="text/javascript" src="http://localhost/administrator/components/com_civicrm/civicrm/packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, usePlainJson: true"></script>
<script type="text/javascript" src="http://localhost/administrator/components/com_civicrm/civicrm/packages/dojo/dojo/commonWidgets.js"></script>
<style type="text/css">@import url(http://localhost/administrator/components/com_civicrm/civicrm/packages/dojo/dijit/themes/tundra/tundra.css);</style>
<script type="text/javascript" src="http://localhost/administrator/components/com_civicrm/civicrm/js/calendar.js"></script>
<script type="text/javascript" src="http://localhost/administrator/components/com_civicrm/civicrm/js/lang/calendar-lang.php?en_US"></script>
<script type="text/javascript" src="http://localhost/administrator/components/com_civicrm/civicrm/js/calendar-setup.js"></script>


<table border="0" cellpadding="0" cellspacing="0" id="content">
  <tr>

    <td valign="top">
   
            <h1 class="title">Member Organizations</h1>
   
       
   
<div id="printer-friendly"><a href="http://calpilots.info/public_html/index.php?option=com_civicrm&amp;task=civicrm/profile&amp;option=com_civicrm&amp;task=civicrm/profile&amp;gid=3&amp;force=1&amp;search=0&amp;Itemid=58&amp;snippet=2" title="Printer-friendly view of this page."><img src="http://localhost/administrator/components/com_civicrm/civicrm/i/print_preview.gif" alt="Printer-friendly view of this page." /></a></div>


Can anyone point me to where else I should be looking to modify the directory calls?  I am a novice at this and am still trying to get more familiar with php debugging techniques.  Even a pointer to an appropriate debugging technique would be helpful.

I am not sure that this is related to the problem, but I was not able to get CiviCRM working using the instructions posted for defining $civicrm_root within the comments of the civicrm.settings.php file.  After researching the forums, however, I was able to get things working using the $_server['document_root'] variable as follows:

Code: [Select]
global $civicrm_root;

$civicrm_root = $_SERVER['DOCUMENT_ROOT'].'//administrator//components//com_civicrm//civicrm';

Any insights are greatly appreciated.  Here is a link to page exhibiting the problem http://calpilots.info/index.php?option=com_civicrm&task=civicrm/profile&reset=1&gid=3&force=1&search=0&Itemid=58.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Wrong Css Directory in Joomla 1.5 Site
September 22, 2008, 12:05:17 pm
Go to Administer CiviCRM > Global Settings > Resource URLS and make sure the correct directories are listed on that page and not pointing to your old directories...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Wrong Css Directory in Joomla 1.5 Site

This forum was archived on 2017-11-26.