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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problem with baseurl in Windows installation
Pages: [1]

Author Topic: Problem with baseurl in Windows installation  (Read 1899 times)

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Problem with baseurl in Windows installation
September 19, 2007, 12:00:55 pm
I am installing Drupal 5.2 and CiviCRM 1.8.10954 on my PC for development purposes using Windows XP Pro.  I followed the process outlined by IBM in their article on using Drupal at
http://www.ibm.com/developerworks/edu/i-dw-i-osource3.html?S_TACT=105AGX46&S_CMP=LP

Their process installs Drupal under Apache, MySQL, and PHP5, with Eclipse, which I have found works well for development.  I used XAMPP for Apache, MySQL, and PHP.  However, the installation seems to fool the automated installer which puts a "\/" at the end of this string in civicrm.settings.php:

define( 'CIVICRM_UF_BASEURL'      , 'http://chaven2.localhost\/' );

This won't work.  I can install CiviCRM just fine, but when I click on the link "CiviCRM," I get an error message 404.  I have found that I had to manually edit this string in the civicrm.settings.php file to

define( 'CIVICRM_UF_BASEURL'      , 'http://chaven2.localhost/' );

The above process worked fine on one installation, but I may have copied the installation from my server, just not sure.

But on a second installation, which was installed from distributions right to my PC, this edit is not enough.  When I go to "Administer CiviCRM," I get a screen with "Show field or section" and "Hide field or section" before each menu block.  I am seeing both the Drupal and Xoops menus but with no Xoops icons.  I am using Firefox with Firebug, and it indicated that there was a javascript problem:

on_load_init_blocks is not defined

I checked the source of the page, and I find:

<style type="text/css">@import url(http://nrgpros1.localhost\/sites/all/modules/civicrm/css/civicrm.css);</style>
<style type="text/css">@import url(http://nrgpros1.localhost\/sites/all/modules/civicrm/css/skins/aqua/theme.css);</style>
<script type="text/javascript">var djConfig = { isDebug: false };</script><script type="text/javascript" src="http://nrgpros1.localhost\/sites/all/modules/civicrm/packages/dojo/dojo.js"></script><script type="text/javascript" src="http://nrgpros1.localhost\/sites/all/modules/civicrm/js/calendar.js"></script><script type="text/javascript" src="http://nrgpros1.localhost\/sites/all/modules/civicrm/js/lang/calendar-lang.php"></script><script type="text/javascript" src="http://nrgpros1.localhost\/sites/all/modules/civicrm/js/calendar-setup.js"></script>

Notice the "\/" delimiters.  I did not experience this in the other installation.  Where is CiviCRM picking up this?  It must not be from the civicrm.settings.php file, as I changed it and restarted Apache and MySQL, yet it is still happening.  Is this baseurl string cached somewhere?  How can I clear this out so it will pick up the correct string from civicrm.settings.php?

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Re: Problem with baseurl in Windows installation
September 19, 2007, 12:07:58 pm
Duh, found it, Global Settings > Resource URLs

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: Problem with baseurl in Windows installation
September 19, 2007, 01:01:53 pm

Can you please download the latest release (rev 11536) and see if this is fixed. We filed and fixed an issue for this at:

http://issues.civicrm.org/jira/browse/CRM-2209

since we do not have a windows box / setup, we can not test it  to confirm if it is fixed (but i'm pretty confident in the fix)

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

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Re: Problem with baseurl in Windows installation
September 19, 2007, 03:17:43 pm
Well, closer, but not quite.

I did an automated install of Drupal 5.2 then CiviCRM-1.8.11536, putting the civicrm folder in sites/all/modules/ and ran through the automated installer.

I checked civicrm.settings.php and it looks fine.

I got the same result as before when I navigated to Administer CiviCRM: a screen with "Show field or section" and "Hide field or section" before each menu block.  I am seeing both the Drupal and Xoops menus but with no Xoops icons. And the styling is missing.

I checked Global Settings > Resource URLs and found that CiviCRM Resource URL was:

http://testcrm.localhost/modules/civicrm/

Notice what is missing: /sites/all/  When I edited the string to

http://testcrm.localhost/sites/all/modules/civicrm/

then the menus appear correctly.

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: Problem with baseurl in Windows installation
September 19, 2007, 05:52:36 pm

This issue has been fixed in 1.9 and will be part of the 1.9 installer

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problem with baseurl in Windows installation

This forum was archived on 2017-11-26.