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) »
  • Problem with Resource URL
Pages: [1]

Author Topic: Problem with Resource URL  (Read 2737 times)

rubinfarm

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6.24
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Problem with Resource URL
March 11, 2012, 03:33:58 pm
I have installed 4.1 with drupal 6.24. I am using a symlink to redirect to a multisite.
mysite.com/drupal-6.24
my site files are stored in sites/default ... civicrm is in sites/all/modules

I think there is a problem with my path settings somewhere. I am not getting ckeditor, plus icons are missing. When I view source it is looking for icons in sites/default rather than sites/all.

I have run the Resource URLs several times, plus Cleanup Cache and Update Paths. I think I have also tried putting everything except my grandmother's carrot cake recipe into the paths but to no avail.

Here is what I have in civicrm.settings.php (I put a * after the things I changed for privacy purposes):
Since I can't post links, I'm putting spaces between letters for the h t t p part.

define( 'CIVICRM_UF'               , 'Drupal6'        );

define( 'CIVICRM_UF_DSN'           , 'mysql://database*:password*@localhost/database*?new_link=true' );

define( 'CIVICRM_DSN'          , 'mysql://a different database*:password*@localhost/a different database*?new_link=true' );

 * File System Paths:
 
global $civicrm_root;

$civicrm_root = '/home/servername*/public_html/namefolder*/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/servername*/public_html/namefolder*/sites/all/files/civicrm/templates_c/' );


define( 'CIVICRM_UF_BASEURL'      , 'h t t p : / / w w w .sitename*.com/' );

define( 'CIVICRM_SITE_KEY', null );


 * Multi org / Multi site settings: (*NOTE: I will be using in multisite situation, but not until I get this working -- any advice here is appreciated too)

define( 'CIVICRM_DOMAIN_ID'      , 1 );
define( 'CIVICRM_DOMAIN_GROUP_ID', null );
define( 'CIVICRM_DOMAIN_ORG_ID'  , null );

define( 'CIVICRM_EVENT_PRICE_SET_DOMAIN_ID', 0 );


 * Setting to disable email notifications to activity assignees

 define( 'CIVICRM_ACTIVITY_ASSIGNEE_MAIL' , 1 );

Hopefully, there is a mistake here that only a rookie would make -- I usually just keep trying until I get it. I've spent two weeks on this and need to get it done, so asking for directions :) I know enough to be dangerous, but that's about it.

Many thanks to anyone who takes the time to help!!!!

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 Resource URL
March 11, 2012, 04:04:35 pm

can u check and fix the resource url in the UI:

http://drupal.demo.civicrm.org/civicrm/admin/setting/url?reset=1

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

rubinfarm

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6.24
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Problem with Resource URL
March 11, 2012, 04:31:57 pm
I've done that several times: This is what it shows when I go there:

CiviCRM Resource URL      h t t p : / / w w w .sitename*.com/sites/default/modules/civicrm/
Image Upload URL        h t t p : / / w w w .sitename*.com/sites/default/files/civicrm/persist/contribute/

I change "default" to "all" and click save. Then run the Clear Cache page, but when I go back, still the same as above. I don't think it's taking.

This is in my log file (along with a lot of other icons):

   page not found   03/11/2012 - 19:25   sites/default/modules/civicrm/i/admin/small/09.png
Location   h t t p : / / w w w .sitename*.com/sites/default/modules/civicrm/i/admin/small/09.png
Referrer   h t t p : / / w w w .sitename*/civicrm/admin?reset=1

rubinfarm

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6.24
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Problem with Resource URL
March 11, 2012, 04:40:27 pm
I posted above also, but wanted to add this:

This is from the Cleanup Cache page

Old Base Directory   /home/servername*/public_html/foldername*/sites/default/files/
New Base Directory *   /home/servername*/public_html/foldername*/sites/all/files/

Old Base URL   h t t p : / / w w w .mysite*.com/
New Base URL *   h t t p : / / w w w .mysite*.com/

Old Site Name   /sites/default/
New Site Name * /sites/all/   


Thanks so much for your quick reply!!!

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 Resource URL
March 11, 2012, 06:04:10 pm

I would focus on and try to figure out why its not saving the default => all change. Might want to try debugging the php code.

that setting needs to be all

some useful tips and tricks here:

http://book.civicrm.org/developer/

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

rubinfarm

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6.24
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Problem with Resource URL
March 11, 2012, 06:48:39 pm
Is it possible to make changes in the database? I'm not familiar enough with php to attempt those changes, but could possibly change things in SQL if I know where to look. Is there a particular table that stores those paths? I've been looking through tables but haven't seen anything likely yet.

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 Resource URL
March 11, 2012, 07:25:01 pm

definitely dont recommend changing things in the DB.

That said, if you really want to do it, check the civicrm_settings table

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

rubinfarm

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6.24
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Problem with Resource URL
March 11, 2012, 09:21:01 pm
OK. I found another post that suggested changing resource url to var path:

I changed to     
define( 'CIVICRM_UF_BASEURL'      , '/home/monroel/public_html/mysite*/sites/all/' );

and this is what shows up at the Resource URL screen....

/home/monroel/public_html/mysite*/sites/all/sites/default/modules/civicrm/

Any idea where the default is coming from? Should the path be variable?

Could the symlink be messing me up? The symlink moves w w w .mysite.com to /drupal-6.24-new/sites. My files are in "default", civicrm is in "all".

Don't know if it's a clue, but ckeditor doesn't show up either.



Update:
I discovered two files in my default folder  (modules, files). The module folder was empty, but the files folder had images and a civicrm folder in it.
They also had permissions of 555. I changed to 655 and deleted them.
The files folder keeps rewriting. It contains three folders:
civicrm (custom and upload folders) - upload has a file "latest-version-cache.txt"; upload is empty
css (empty)
js (simplemenu-c0876e3076626d6110f815750c074fe9.js)

So, I assume things are writing again... perhaps something wrong in my civicrm.settings.php file? I think I copied all of my relevant settings in the first post.

Thanks again for your patience!
« Last Edit: March 11, 2012, 09:56:52 pm by rubinfarm »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Problem with Resource URL
March 12, 2012, 04:09:55 am
You don't have a templates_c folder in there? You should, as per:

Code: [Select]
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/servername*/public_html/namefolder*/sites/all/files/civicrm/templates_c/' );
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.

rubinfarm

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6.24
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Problem with Resource URL
March 12, 2012, 08:09:09 am
The folder that keeps getting recreated does not have one, but the one in all/files does - that is where the icons are stored, but since the path is wrong civicrm never finds them. This looks promising though. Should I have a compiledir somewhere?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Problem with Resource URL
March 12, 2012, 09:36:57 am
I would change that directory from sites/all to sites/default as that is the standard.
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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problem with Resource URL

This forum was archived on 2017-11-26.