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 »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal/civiCRM Event listing views: base URL
Pages: [1]

Author Topic: Drupal/civiCRM Event listing views: base URL  (Read 1425 times)

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Drupal/civiCRM Event listing views: base URL
September 25, 2012, 11:33:53 pm
Hey there,

I've got a civiCRM site that is close to launch and at the moment I am reviewing it on a long temporary url that was created in a PLesk control panel. The format is as follows http://website-domain.com.ip-address.example.com/

Everything is working quite well except that in a view I created for listing events is setting the root path incorrectly. The root path for the link text that directs to the events and registration pages is the actual domain name that the site will eventually be hosted at.

ie, I get: http://website-domain.com/event/info?id=8&reset=1
When it should be: http://website-domain.com.ip-address.example.com/event/info?id=8&reset=1

It is only the civiCRM Event views that are being affected this way. If I go to the Event control panel in civiCRM, the links are correct. All of my resource URLs are correct in manage -> system -> resource URLs and I've been looking for somewhere else I can change this but so far I can't find anything. Does anyone know where this can be set or changed?

Thanks,
Andrew

EDIT: The built in civiCRM Event listing also provides the incorrect URL.

Drupal 7
civiCRM 4.1.x
« Last Edit: September 25, 2012, 11:37:21 pm by awasson »
My CiviCRM Extension Workshop: https://github.com/awasson

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal/civiCRM Event listing views: base URL
September 27, 2012, 04:16:24 am
Why do you want to change it exactly? It will be correct once the site is live right? :)

Anyhow offhand I'm not sure why it's wrong--it could be in the View itself.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Drupal/civiCRM Event listing views: base URL
September 27, 2012, 09:37:34 am
Hi Hershel,

I want to change it temporarily so that I can use it to proof with my client. Currently the only way to see the events is to go to the civiCRM Event management screen and then click the links. For some reason on the Drupal side all of the root paths are set to the "real" domain name, not where it actually resides.

BTW, I know how I did this... Thinking that I was being clever, when I set up Drupal/civiCRM on my server, I edited my desktop's host file to associate the IP of my VPS to the domain name. My thinking was that I could set up everything as if it were on the real domain and do all my testing before throwing the DNS switch. I think as a result, during setup civiCRM added a piece of data somewhere indicating that the path should be the "real" domain from my browser's address.

Worst case scenario, I'll create a views template and regex to swap one for the other.

Andrew 
My CiviCRM Extension Workshop: https://github.com/awasson

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal/civiCRM Event listing views: base URL
September 27, 2012, 09:55:02 am
You looked in settings.php and in civicrm.settings.php to confirm the base URL?

Quote from: awasson on September 27, 2012, 09:37:34 am
Worst case scenario, I'll create a views template and regex to swap one for the other.

Yes, that would work. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Drupal/civiCRM Event listing views: base URL
September 27, 2012, 10:06:55 am
Quote from: Hershel on September 27, 2012, 09:55:02 am
You looked in settings.php and in civicrm.settings.php to confirm the base URL?

Thanks Hershel, you nailed it... I don't know how I didn't see it in my civicrm.settings file when I checked it the other day. I just downloaded it again (prompted by your comment) and there it is.

Thanks so much!

Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal/civiCRM Event listing views: base URL
September 27, 2012, 10:07:37 am
Happy to help. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal/civiCRM Event listing views: base URL

This forum was archived on 2017-11-26.