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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • SOLVED - Image path wrong on install in Joomla
Pages: [1]

Author Topic: SOLVED - Image path wrong on install in Joomla  (Read 3003 times)

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
SOLVED - Image path wrong on install in Joomla
June 16, 2009, 04:32:42 am
Hi
I seem to have installed CiviCRM OK apart from one issue: the pictures don't work.

Looking at the properties of the pictures it is clear that the path is wrong, i.e. they show:

http://www.[domain].org.uk/i/print_preview.gif

whereas it should be something like

http://www.[domain].org.uk/administrator/components/com_civicrm/civicrm/i/print_preview.gif

That might occur if it is using the wrong variable to assign the picture paths (as the settings file appears to have both short and long paths saved as variables) but I can't see that is right as everyone else would have the issue too.

[Joomla 1.5.11, PHP5.x]

Ed
« Last Edit: June 20, 2009, 05:36:47 am by EdP »

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Image path wrong on install in Joomla
June 16, 2009, 06:09:10 am
Review Administer CiviCRM > Global Settings > Directories and Resource URLs -- make sure the values are correct.
Also look at: administrator/components/com_civicrm/civicrm.settings.php -- check the $civicrm_root and CIVICRM_UF_BASEURL values -- they should both reference the civi files within the administrator subdirectory.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Image path wrong on install in Joomla
June 16, 2009, 07:07:14 am
Thanks.
The inline documentation suggests that the base URL should just be http://www.example.com/ and not the full line to access the directory? Likewise within the settings>update URL I should just be saying http://www.example.com/ and not a full path (I tried the full path and got an 'access denied' error).

In any event I tried filling it out as you suggest and it made no difference - the images links still seemed to assume that the civicrm directory was a subdirectory of the main site, rather than a subdirectory of the civicrm folder.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Image path wrong on install in Joomla
June 16, 2009, 07:22:46 am
There are two civicrm.settings.php files:
 - administrator/components/com_civicrm/civicrm.settings.php
 - components/com_civicrm/civicrm.settings.php

The first should have a base url of: http://DOMAIN/administrator/
The second should have: http://DOMAIN/

I suspect the first is incorrect and causing the problem.

Global Settings > Resource URLs > CiviCRM Resource URL :: should be:
http://DOMAIN/administrator/components/com_civicrm/civicrm/

All of these settings should have been generated automatically on initial install. The only reason they may not have is if there was a permissioning problem during installation and the configuration files could not be written properly, or if you have moved the site from one hosting environment to another, in which case you may need to update them manually.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Image path wrong on install in Joomla
June 16, 2009, 07:50:52 am
That's fixed it. Many thanks.
I think the issue with the pictures was particularly the resource URL, but other things were wrong too.

I wasted hours last night looking for the fix, so that's a great help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • SOLVED - Image path wrong on install in Joomla

This forum was archived on 2017-11-26.