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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • 4.5 beta 6 new install doesn't set upload directories in windows 7 environment
Pages: [1]

Author Topic: 4.5 beta 6 new install doesn't set upload directories in windows 7 environment  (Read 592 times)

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
4.5 beta 6 new install doesn't set upload directories in windows 7 environment
August 13, 2014, 05:21:08 pm
My home pc runs windows 7.  I was having some problems with my test install so deleted the drupal folder and the civicrm and drupal databases, so effectively this was a new install.

Everything seemed to install correctly, but I was still getting (at least) the first two problems I did in http://forum.civicrm.org/index.php/topic,33783 namely
  • Arrow image broken on administer menu (image attached) Also applies to other places it should appear on navigation menu
  • Administer>CiviCase>Case Type takes me to a blank screen(Image attached)

With help from Coleman, it was tracked down to Administer > system settings > directories just being defined as upload/, persist/contribute/ and custom/ . When I changed these to absolute file locations ie prefixed with C:/xampp/htdocs/drupal/sites/default/files/civicrm/  the problems disappeared.

Based on the blurb on the top of this pages in civicrm.setting.php I found.

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:/xampp/htdocs/drupal\\sites\\default\\files\\civicrm\\templates_c\\' )

I have installed civicrm several times on windows over the last three years and have never had to alter the directory settings nor had this problem until the 4.5beta5 install I tried on wordpress and this 4.5beta6 install on drupal.   

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: 4.5 beta 6 new install doesn't set upload directories in windows 7 environment
August 13, 2014, 07:08:35 pm
I think a reinforcement the problem is that when I go to Cleanup Caches and Update Paths , the system suggests C:/xampp/htdocs/drupal\sites\default\files\civicrm\templates_c\en_US\ as the New Base Directory although the old base directory is actually correct.

Also, perhaps related, perhaps not, is that another problem I had in http://forum.civicrm.org/index.php/topic,33783 still occurs even after changing the directories to absolute paths.
namely:
  • I have enabled logging which usually means there is no number on the change log tab and that the change log screen has 5 columns instead of only 2. But I am still seeing a number in the change log tab and it still displays only 2 columns not 5.   I have checked the DB and the logging tables are there and the changes I have made since I enabled logging are indeed being logged. I just can't see them through the UI.

I am not surprised logging isn't working properly because when I save after ticking the Yes box I get a WSOD and the error message:
"NetworkError: 500 Internal Server Error - http://localhost/drupal/civicrm/admin/setting/misc"


« Last Edit: August 13, 2014, 07:36:39 pm by joanne »

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: 4.5 beta 6 new install doesn't set upload directories in windows 7 environment
August 17, 2014, 10:53:20 pm
FWIW, the directory and URL paths are generally converted to a relative format if they look like they can be. It's more desirable to store relative paths because that makes it easier to copy DBs among dev/staging/prod.

When I looked into the code which manages the paths, I couldn't find anything notable that changed between 4.4 and 4.5. (There was a small change vis-a-vis CRM_Utils_Array::value() -vs- empty(), but that was a red-herring.) However, I was able to reproduce the problem locally and found two issues:

 * The local file path used for the dynamic-menu JS was invalid -- it looked something like "...files/civicrm/\dynamic\l10n-en_US.js". Note the doubled-delimiter ("/\").
 * The conversion between relative and absolute file-paths didn't work under Windows, and the defaults are all relative, so the default didn't work in Windows. This probably didn't work in 4.4 either, but my guess is that it didn't matter as much (because we didn't need to write dynamic-menu JS).

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: 4.5 beta 6 new install doesn't set upload directories in windows 7 environment
August 18, 2014, 01:02:24 am
Hello Totten, Joanne,

I think your discussion may be related to the issue we found and fixed with Coleman and for which you can find details here : http://forum.civicrm.org/index.php/topic,33783.0.html

Morever, it seems that there is still an issue with the relative paths of the WP sandbox because many links redirect to front-page instead of back-office (wp-admin) pages. Please see here (http://forum.civicrm.org/index.php/topic,33879.0.html) and here (http://forum.civicrm.org/index.php/topic,33642.0.html) for details.


totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: 4.5 beta 6 new install doesn't set upload directories in windows 7 environment
August 18, 2014, 01:26:53 am
I might be able to read the links on WP stuff tomorrow.

Forgot to mention, there's a ticket ( https://issues.civicrm.org/jira/browse/CRM-15126 ) from Joanne's original report and a PR ( https://github.com/civicrm/civicrm-core/pull/3869 ) based on my testing/tweaking with D7/Civi 4.5.x/WinXP/XAMPP. When testing this stuff, one has to be diligent about resetting the full DB as well content in files/civicrm/dynamic.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • 4.5 beta 6 new install doesn't set upload directories in windows 7 environment

This forum was archived on 2017-11-26.