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) »
  • Paths contain development server url AND staging server url (double url in path)
Pages: [1]

Author Topic: Paths contain development server url AND staging server url (double url in path)  (Read 565 times)

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Paths contain development server url AND staging server url (double url in path)
March 10, 2014, 08:13:49 pm
I just moved my Drupal/Civicrm website from my development server to a staging server, and most paths seem to work except those on the CiviCRM menu items where the path contains both my dev-server-url and the new staging-server-url.  For example the path for the path for the Membership Dashboard is:

/MyStagingServer.com/MyDevelopmentServer.com/civicrm/member?reset=1

Obviously, I get a page not found ...

I've made the usual changes to the CiviCRM Settings file. 

Any clues as to where this Development Server URL is being grabbed???

Carl



Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Paths contain development server url AND staging server url (double url in path)
March 11, 2014, 05:34:13 am
Did you follow all of the steps of the Migration guide? Such as removing template files and resetting civicrm_domain settings etc?
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.

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Re: Paths contain development server url AND staging server url (double url in path)
March 11, 2014, 07:26:05 am
Whoops!  You're right, Hershel, I didn't.  I'll go back and dump it again.

Please don't close this yet.

Thanks,

Carl

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Re: Paths contain development server url AND staging server url (double url in path)
March 11, 2014, 10:46:23 am
Problem Solved: 

For the benefit of anyone else reading this post, here is what I learned ... maybe help for someone ... maybe not, but make note.

As it turns out ignoring cache, etc in the initial dump was not the direct solution for my situation.  I had failed to disable CiviCRM and an associated module before doing a MySQLdump, AND needed to remove any occurrence of DEFINER='username'@'localhost'  statement from the dump.sql file.

As pointed out by Hershel, following the migration guide is important in the process with additionally skipping triggers when dumping to avoid MySQL choking on an insert.  I learned about this from Eileen on the IRC Forum (thanks, Eileen, where ever you are .. )  and to iterate, be sure to disable the CiviCRM module and any CiviCRM associated modules before doing a dump.  How and why for this entire process (excluding when/how to skip triggers and the DEFINER issues) is found at the article that Hershel alluded to:   http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

Thank you, Hershel.

Carl

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Paths contain development server url AND staging server url (double url in path)

This forum was archived on 2017-11-26.