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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.4.6 to 4.5 Drupal on Windows server
Pages: [1] 2 3

Author Topic: Upgrade from 4.4.6 to 4.5 Drupal on Windows server  (Read 5189 times)

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 04:23:41 am
I didn't see that someone had mentioned this in regard to Drupal so I thought I'd chime in.

The upgrade succeeds but paths, directories and resource urls that previously worked don't anymore.

Errors include:
Missing arrows on menus and screens
Search in navigation bar produces no results and keeps spinning
Help balloons pop up but no help text appears
page not found errors for sites/default/files/civicrm/dynamic/l10n-en_US.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: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 04:43:29 am
Hi I have the same issues with WP on Windows Xampp server. See my post prefixed with [WP] in this section of the foorum.
Hope will get some help, if you find something, please share. Thanks

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 05:15:41 am
Will do!

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: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 07:19:02 am

would be good to get someone in the community to help maintain, lead and ensure that civi works on windows

unfortunately none of us use windows (and not planning to switch to either), so would definitely be great if someone with some development skills would be able to take on this role. Most of civi should be platform agnostic. the paths are probably one last remaining issue

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

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 08:46:53 am
Quote from: Donald Lobo on September 19, 2014, 07:19:02 am

would be good to get someone in the community to help maintain, lead and ensure that civi works on windows

unfortunately none of us use windows (and not planning to switch to either), so would definitely be great if someone with some development skills would be able to take on this role. Most of civi should be platform agnostic. the paths are probably one last remaining issue

lobo

I have a Windows server, I would be willing to try and help out/lead up Windows compatibility.  I will try to set up some dummy sites over the weekend and see what I can find on these issues.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 08:50:37 am
Awesome danc.

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: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 08:53:31 am
Thanks this is very good news ! I'm not developper but I'm willing to share/test if required.
Let us know

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 11:03:39 am
As an update...

I get this error for every page load in Drupal:
Page not found
Location   http://sitename/sites/default/files/civicrm/dynamic/l10n-en_US.js?nc5ab4
Referrer   http://sitename/civicrm/admin/setting/path?reset=1
Message   sites/default/files/civicrm/dynamic/l10n-en_US.js

Paths, resource urls and directories are getting mangled any time I save the Update Path and appears different when I revisit seconds later.

Sometimes it adds an extra slash (i.e. C:/inetpub/wwwroot\sites\default\files/\).

Every time I go to the Update Path page, it suggests this in the new path field:
C:/inetpub/wwwroot\sites\default\files\civicrm\templates_c\en_US\

Every so often, the change site name field appears as if it were a multisite install...which it isn't.

I've tried every combination of slashes you could imagine. 

The best I could achieve was that the arrows on the Administration page showed up, but that was it.

Hard to believe that something as simple as the file path isn't more adaptable.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 02:33:26 pm
Quote
Hard to believe that something as simple as the file path isn't more adaptable.
It's clearly a bug, not an intentional lack of adaptability. But what do you expect from a bunch of linux/mac developers? ;)
Try asking your question on the new CiviCRM help site.

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 03:28:03 pm
I hear ya'!

Wasn't a comment toward anyone or anything, just silly how something so base can cause such woes.

When our forefathers at Microsoft and Apple...

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 19, 2014, 05:54:41 pm
@danc One thing that can help you get up and running quickly with Civi development is https://github.com/civicrm/civicrm-buildkit
Although I'm not sure if it works on windows... :P
Try asking your question on the new CiviCRM help site.

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: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 20, 2014, 01:08:44 am
Hello guys

Think, I found the issue.
In my case the "l10n-fr_FR.js" file is stored in "wp-content\plugins\files\civicrm\upload\dynamic", but there is a htaccess file in "\upload" directory that contains :

Code: [Select]
<Files "*">
  Order allow,deny
  Deny from all
</Files>

and it prevents accessing the js file from url : http://localhost/gdc/wp-content/plugins/files/civicrm/upload/dynamic/l10n-fr_FR.js

If I remove the htaccess file, then I can access the JS file and all issues are fixed in Civi (quick search, inline editing, pictures in menu...). But this solution represents a security breach because you can access the "upload" folder content now.

So what I did is to keep the htaccess file as is in the upload folder and put a new one in the "dynamic" folder with "Order allow, deny / Allow from all" instructions in it. It fixed the problem.

What do you think ? Is it a satisfying solution ?

Concerning the "/\" when clicking "Update path", issue still ongoing but Dan will look at it.

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 20, 2014, 11:39:37 am
pmoz, I did a clean install of Drupal 7.3.1/CiviCRM 4.5.0 on my Windows server and encountered the same problems that you did in your initial post.  I went into the civicrm.settings.php file and line 143 read:

Quote
$civicrm_root = 'C:/wamp/www/drupaldemo/sites/all/modules/civicrm';

While this is correct under Linux, the forward slashes are incorrect under Windows.  I changed them to back slashes so the line read:

Quote
$civicrm_root = 'C:\wamp\www\drupaldemo\sites\all\modules\civicrm';

And after saving all of the problems resolved themselves.  Can you confirm the same works for you?  If so then I will dive into the installation process and see what can be done about addressing that when the file is created.

I was not able to recreate the slashes error, but I forgot to test it before changing my root.  Can you (and SemperFi if he is feeling adventerous) test that as well after changing the civicrm_root and see if that problem goes away as well?
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

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: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 20, 2014, 12:15:45 pm

for drupal, civicrm_root is set during the install process here:

install/civicrm.php, variable: crmPath (line 64)

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

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: Upgrade from 4.4.6 to 4.5 Drupal on Windows server
September 20, 2014, 01:19:10 pm
Dan,

I'm on WordPress and the civicrm_root is define like this :

$civicrm_root = 'C:\\xamppp\\htdocs\\gdc/wp-content/plugins\\civicrm\\civicrm\\';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\\xamppp\\htdocs\\gdc/wp-content/plugins\\files\\civicrm\\templates_c\\' );

and I replaced it by :

$civicrm_root = 'C:\\xamppp\\htdocs\\gdc\\wp-content\\plugins\\civicrm\\civicrm\\';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\\xamppp\\htdocs\\gdc\\wp-content\\plugins\\files\\civicrm\\templates_c\\' );

but when I went on "CLean cache and update path" page and click on "Save" without changing anything, all my resources URL were once again messed up :
example : http://localhost/gdc/\wp-content/plugins/civicrm/civicrm/

...



Pages: [1] 2 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.4.6 to 4.5 Drupal on Windows server

This forum was archived on 2017-11-26.