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) »
  • 4.4 install
Pages: [1]

Author Topic: 4.4 install  (Read 749 times)

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
4.4 install
February 10, 2014, 07:31:09 am
I did a totally fresh install of 4.4 on joomla 3.2 after the release.  The install itself went fine but the civicrm css files are definitely not being included. I looked at source and inspected both the demo and my install in detail and that's the big difference --- there is never any reference to civicrm.css, joomla.css or the civicrm jquery files.    Bits and pieces of css show up in specific places where the tpl asks for them.  The menu of course doesn't show, but if you look at source it's there and all the links are perfect (I was thinking perhaps there was a wrong base url).  I've also tried all the permutations of the custom css.  Also templates_c etc, all of the usual things.  I'll look at it some more but since I haven't seen anyone talking about new installs I figured I'd go ahead and say I think there may be a problem.  I think that the css files should be loading in the civicrm.php file but it seems as though nothing happens there although there is no error or warning. 

Code: [Select]
  $config = CRM_Core_Config::singleton();
  $resources->addStyleFile('civicrm', 'css/civicrm.css', -97, 'html-header');
  if (!$config->userFrameworkFrontend) {
    $resources->addStyleFile('civicrm', 'css/joomla.css', -97, 'html-header');
  }
  else {
    $resources->addStyleFile('civicrm', 'css/joomla_frontend.css', -97, 'html-header');
  }

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: 4.4 install
February 10, 2014, 09:34:38 am
hey Elin,
I just did an upgrade to 4.4.4 on a J3.2.2 sandbox and it seemed to have worked fine. the css files are all included -- I checked both backend and frontend forms. I also tested on a J2.5.17 sandbox and everything is included.

maybe try re-installing Civi? perhaps some files weren't copied correctly?
-Brian


support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: 4.4 install
February 11, 2014, 02:43:47 am
Hi Brian,

The files are definitely all there, I checked and checked permissions too.  And it's finding all the things that are directly added like the images.  If I copy the source with the links from the demo site directly into the joomla template index it works perfectly.

Elin

Update

Update:
Changing to
Code: [Select]
$document = JFactory::getDocument();
  $document->addStyleSheet('/administrator/components/com_civicrm/civicrm/css/civicrm.css');
 
  if (!$config->userFrameworkFrontend) {
 
  $document->addStyleSheet('/administrator/components/com_civicrm/civicrm/css/joomla.css');

  }
 
though of course you wouldn't want to hard code that path.

I'm really not sure why the current code is not working for me, I have a site on 4.3, same host, same Joomla and it seems okay there. though maybe I will look into that in more detail also.

So now I have css but I still don't have the jquery.

Somewhat related in terms of flexibility  I think if possibly the css, js and images should get copied to media/com_civicrm so we can make JHtml to access them more easily.
http://docs.joomla.org/CodeExample:JHtml::stylesheet

Then there could be something like
JHtml::_('civicrumui')
to load the whole thing. 

Maybe worth me fooling around with?
« Last Edit: February 11, 2014, 06:04:57 am by mcsmom »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 4.4 install
February 11, 2014, 07:56:11 am

hey elin:

the files are included via a plugin: admin/plugins/civicrmsys/civicrmsys.php (which is part of the install)

so seems like the plugin did not get installed or copied. I had that issue once and i'm not sure how/why it happened

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: 4.4 install
February 11, 2014, 06:57:08 pm
Bingo, the files were copied but the install did not complete.  I was able to discover install them though.


I was looking at the install script because the installation is done there rather than using the install api, which basically reflects the fact that the packaging was put together before there was an api for installing a package of extensions.

I know I was looking at part of that before and the Fn workaround was not working and the query was bad as a result.
Code: [Select]
$tableExtensions = $db->$quoteFn("#__extensions");
    $columnElement   = $db->$quoteFn("element");
    $columnType      = $db->$quoteFn("type");
    $columnEnabled   = $db->$quoteFn("enabled");


Also quoteName() is supported in 1.6-2.5, it's just the deprecated nameQuote() was removed. There was no change in 3.0 (despite what the code comment says) so you could save some ms  by just using quoteName().
Were all returning empty.

 

« Last Edit: February 11, 2014, 07:11:20 pm by mcsmom »

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

This forum was archived on 2017-11-26.