Support (offered by community volunteers) > Windows and IIS installations

IIS Joomla install solved

(1/2) > >>

dantheafrican:
There are a lot of unsolved posts regarding CiviCRM directory write permissions in iis

had some trouble during the install in Joomla 1.0.13 - none of the civicrm pages would load although the links were added in the joomla menu

here follows my successful civicrm.settings.php config file modifications (in joomlaroot/administrator/components/com_civicrm)

$civicrm_root = 'C:\domains\mydomain.com\wwwroot\joomlaroot\administrator\components\com_civicrm\civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'wwwroot\joomlaroot\administrator\media\civicrm' );

note the lack of c:\.... in front of the compile directory - this needs to be your website root directory

...also note the backslashes instead of forward slashed

I hope this saves time for someone...took 3 hours to work out - but now looking good!

Donald Lobo:

Thanx for the feedback and tips. I suspect will make life easier for a few folks who trip on this issue.

We'd like to solve it in core if possible (and hence avoid the issue if possible). Can u let us know:

1. What did the component installer have for those two values ($civicrm_root and CIVICRM_TEMPLATE_COMPILEDIR)

2. Does this value work:

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\domains\mydomain.com\wwwroot\joomlaroot\administrator\media\civicrm' );

If not, can you cut-n-paste the error message you get. If possible, can u debug and trace who is throwing an error and why? We have tried to avoid using relative path names to avoid environment related issues and would like to continue doing so

lobo



dantheafrican:
Howdy, the previous values (directly after install) were

$civicrm_root = 'C:/domains/mydomain.com/wwwroot/crm1/administrator/components/com_civicrm/civicrm//';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:/domains/mydomain.com/wwwroot/crm1/administrator/media/civicrm' );

After changing all the forward slashed to backslashes for IIS I was getting an error like (note I am on joomla and cannot replicate the error now - but this drupal error message is almost identical, from another thread)

   * warning: Smarty::include(\en_US\\%%93\938\938D45F8%%Subject.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\wamp\www\drupal-5.1\modules\civicrm\packages\Smarty\Smarty.class.php on line 1265.

I don't think the double forward slash at the end of the first value makes a difference as it works either way.

The value

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\domains\mydomain.com\wwwroot\joomlaroot\administrator\media\civicrm' );

does not work (this was pretty much the same as it was before)

If I change the CIVICRM_TEMPLATE_COMPILEDIR back to what it was (as above) I just get blank screens on all the civicrm pages (so cannot replicate the error message) but when I change it back to wwwroot\joomlaroot\administrator\media\civicrm it works fine again

I hope this helps...now trying to setup civimail (seems a bit tricky...but will scoure the relevant forums)

Thanks for a great system, very impressive now I've had a better look around  8)

dantheafrican:
After upgrading to 1.9 stable I managed to replicate the earlier error...here it is

Warning: Smarty::include(C:/Domains/mydomain.org/wwwroot/crm1\media\civicrm\templates_c\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\Domains\mydomain.org\wwwroot\crm1\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

Warning: Smarty::include() [function.include]: Failed opening 'C:/Domains/mydomain.org/wwwroot/crm1\media\civicrm\templates_c\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php' for inclusion (include_path='.;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm\packages;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm\packages;.;C:\Apps\PHP5\Pear;c:\Apps\PHP5\Smarty\libs') in C:\Domains\mydomain.org\wwwroot\crm1\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

to fix it just change the civicrm.settings.php file (both in admin and front-end if necessary) as mentioned in the first post.

cooldudefx:
THANK YOU SO MUCH!!!
 :) :) :)
I've spent like 6 hours on the problem, and here the solution was all the time. That first thread needs to be stickied or something!!!

Navigation

[0] Message Index

[#] Next page

Go to full version