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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
Pages: 1 [2]

Author Topic: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations  (Read 3744 times)

JonWex

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 3.4.8
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.5.8
  • PHP version: 5.3.3
Re: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 14, 2011, 07:30:41 am
Fascinating - I started that procedure, and the issue (the forward slash) is plainly present.   I pushed the lower "Save" button at it ran to completion without reported error.  I then started the procedure again, only to determine that no changed occured. 

Jonathan

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 14, 2011, 07:32:58 am
Change the base URL to something altogether different like civicrm.org, save, and then see. if it works, then put in the correct URL.
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.

JonWex

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 3.4.8
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.5.8
  • PHP version: 5.3.3
Re: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 14, 2011, 08:17:10 pm
No joy - I changed to a different URL, and it came back with the new URL, but once again with the forward slash added .... should I just hack the php in red below????

Went shplunking ....

I think I see where the forward slash is being added - do not know why or what CRM-5679 was meant to fix


   function postProcess( ) {
        // redirect to admin page after saving
        $session = CRM_Core_Session::singleton();
        $session->pushUserContext( CRM_Utils_System::url( 'civicrm/admin') );

        $params = $this->controller->exportValues( $this->_name );

        //CRM-5679
        foreach ( $params as $name => &$val ) {
            if ( $val && in_array( $name, array( 'newBaseURL', 'newBaseDir', 'newSiteName' ) ) ) {
                $val = CRM_Utils_File::addTrailingSlash( $val );

            }
        }

        $from = array( $this->_oldBaseURL, $this->_oldBaseDir );
        $to   = array( trim( $params['newBaseURL'] ),
                       trim( $params['newBaseDir'] ) );
        if ( $this->_oldSiteName &&
             $params['newSiteName'] ) {
            $from[] = $this->_oldSiteName;
            $to[]   = $params['newSiteName'];
        }

        $newValues = str_replace( $from,
                                  $to,
                                  $this->_defaults );

        parent::commonProcess( $newValues );

        parent::rebuildMenu( );
    }

Relevant HTML looks like

    <!-- .tpl file invoked: CRM\Admin\Form\Setting\UpdateConfigBackend.tpl. Call via form.tpl if we have a form in the page. -->
            <form  action="http://familyroom/acredo/administrator/index2.php?option=com_civicrm&amp;task=civicrm/admin/setting/updateConfigBackend&amp;" method="post" name="UpdateConfigBackend" id="UpdateConfigBackend" >

<!--  a bunch of stuff not relevant -->

           <tr class="crm-config-backend-form-block-newBaseURL">
                <td class="label"><label for="newBaseURL">  New Base URL
     <span class="crm-marker" title="This field is required.">*</span>
</label></td>
                <td><input name="newBaseURL" type="text" value="http://familyroom/acredo/" id="newBaseURL" class="huge" /><br />
                <span class="description">This is the URL for your Drupal or Joomla site URL (e.g. http://www.mysite.com/drupal/).</span></td>
            </tr>
 
        </table>
        <div>
   
                                                                          <span class="crm-button crm-button-type-next crm-button_qf_UpdateConfigBackend_next"><input class="form-submit default" accesskey="S" name="_qf_UpdateConfigBackend_next" value="Save" type="submit" id="_qf_UpdateConfigBackend_next-bottom" /></span>
                                          <span class="crm-button crm-button-type-cancel crm-button_qf_UpdateConfigBackend_cancel"><input class="form-submit" name="_qf_UpdateConfigBackend_cancel" value="Cancel" type="submit" id="_qf_UpdateConfigBackend_cancel-bottom" /></span>
    </div>
<div class="spacer"></div>
</div>
</form>

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 14, 2011, 08:23:23 pm
> should I just hack the php in red below????

I do not know but since anyway your site isn't working, give it a try. :)

I'm really not sure what the issue is. You have the latest CiviCRM version?
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.

JonWex

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 3.4.8
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.5.8
  • PHP version: 5.3.3
Re: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 15, 2011, 10:43:21 am
No, to reduce the number of variables I am coping with, I stuck with 3.3.3

And hacking that piece brought back the menus

I am going to try to file a bug report. 

Thanks for all your help

Jonathan

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: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 15, 2011, 10:48:13 am

please file an issue ONLY if you can reproduce with the latest version: 3.4.8 or 4.0.8

thanx

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

JonWex

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 3.4.8
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.5.8
  • PHP version: 5.3.3
Re: I have completely scrooched (thank you Rocky&Bullwinkle) all my installations
December 15, 2011, 11:12:15 am
Donald -

Will do (but first I have to get the cloning procedure to work) ... not willing to risk my one functioning test site.

It will be a few days before I get enough time to do this.

Thanks

Jonathan

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • I have completely scrooched (thank you Rocky&Bullwinkle) all my installations

This forum was archived on 2017-11-26.