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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Page not found
Pages: [1]

Author Topic: Page not found  (Read 2770 times)

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Page not found
June 21, 2008, 05:47:36 pm
I am using CivCRM within Drupal and it has been fine for a good few months. Now, without any warning, when I try to log into the CiviCRM module I get a 'Page not found' message.

I haven't made any changes and so I can't see why it should suddenly do this to me. What might have caused this and how do I get my site and information back?

Thanks.

Dave Smith
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Page not found
June 23, 2008, 11:45:45 am
I'm a bit "suspicious" that "something" has changed in your site's environment. Certainly we'll need more info. I'd start with checking the Drupal error logs and your webserver (apache?) error logs for clues.
Protect your investment in CiviCRM by  becoming a Member!

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Page not found
June 23, 2008, 07:29:54 pm
I checked the Drupal log and found these two messages which clearly identify the problem I suspect. I'm not sure what they mean or, more imporantly, how to put it right.

include_once(CRM/Core/Config.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/u/n/uniondata/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 242.

include_once() [<a href='function.include'>function.include</a>]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:/domains/u/n/uniondata.net.tt/public_html/sites/all/modules/civicrm:/domains/u/n/uniondata.net.tt/public_html/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /home/u/n/uniondata/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 242.

Any useful pointers would be appreciated.

Thanks.

Dave
« Last Edit: June 23, 2008, 07:38:05 pm by Dave Smith »
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Page not found
June 24, 2008, 10:26:37 am
It looks like somehow your entire Drupal site was moved from one directory tree (location on the server) to another. :-( (Would be good to talk to your hosting provide / sys admin about how and why ...)

So I think fixing the File System Path settings in your CiviCRM settings file should get things back on track...

You'll need to edit civicrm.settings.php - which I think you'll find in /home/u/n/uniondata/public_html/sites/default

Look for the line that defines $civicrm_root - I think it will have your old path in it:
$civicrm_root = '/domains/u/n/uniondata.net.tt/public_html/sites/all/modules/civicrm/';

Change that to:
$civicrm_root = '/home/u/n/uniondata/public_html/sites/all/modules/civicrm/';

You'll probably also need to change the next line so it looks like this:
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/u/n/uniondata/public_html/files/civicrm/templates_c' );

Assuming you can now get to CiviCRM pages - you may also need to update Resource URLs under Administer CiviCRM >> Global Settings (you'll know this is a problem if the CiviCRM icons / image aren't showing and the page layouts look messed up).
Protect your investment in CiviCRM by  becoming a Member!

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Page not found
June 24, 2008, 07:39:56 pm
Thanks. I'll get to work on this.
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Page not found
June 29, 2008, 05:19:48 am
I've made the alterations that you suggested and am getting this error message. Not sure if this is progress or not ...



    * warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory in /home/u/n/uniondata/public_html/sites/all/modules/drupal/civicrm.module on line 249.
    * warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:/domains/u/n/uniondata/public_html/sites/all/modules/civicrm:/domains/u/n/uniondata/public_html/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /home/u/n/uniondata/public_html/sites/all/modules/drupal/civicrm.module on line 249.
    * warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory in /home/u/n/uniondata/public_html/sites/all/modules/drupal/civicrm.module on line 249.
    * warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:/domains/u/n/uniondata/public_html/sites/all/modules/civicrm:/domains/u/n/uniondata/public_html/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /home/u/n/uniondata/public_html/sites/all/modules/drupal/civicrm.module on line 249.

    *

      Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

      » civicrm_root is currently set to: /domains/u/n/uniondata/public_html/sites/all/modules/civicrm.

      Please review the Installation Instructions, Installation FAQs, and Trouble-shooting documentation for assistance.
    *

      Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

      » civicrm_root is currently set to: /domains/u/n/uniondata/public_html/sites/all/modules/civicrm.

      Please review the Installation Instructions, Installation FAQs, and Trouble-shooting documentation for assistance.

Any further advice? It's a good job that I backed up my database I think!!

Thanks.

Dave
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Page not found
June 30, 2008, 10:48:14 am
Looks like you didn't change the correct copy of civicrm.settings.php - note that the "Oops..." error message still has the old value for civicrm_root. Did u edit the copy in:

/home/u/n/uniondata/public_html/sites/default
Protect your investment in CiviCRM by  becoming a Member!

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Page not found
July 26, 2008, 01:56:12 pm
I've been working on this consistently since your last message.

I presume that the lines:

$civicrm_root = '/home/ ...

and

define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home ...


should both read the same.

I have checked via 'root' and the location of civicrm is in '/home/u/n/uniondata/...' and so I have made sure that the lines referred to above both have this information.

Having done that, I now get this error message:


    * warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory in /home/u/n/uniondata/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 249.
    * warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:/domains/u/n/uniondata/public_html/sites/all/modules/civicrm:/domains/u/n/uniondata/public_html/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /home/u/n/uniondata/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 249.

Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

» civicrm_root is currently set to: /domains/u/n/uniondata/public_html/sites/all/modules/civicrm.


If I change 'uniondata' to 'uniondata.net.tt' I get a message telling me there is a DB error which seems somewhat dramatic.

I have a backup.sql of the database. I am wondering what would happen if I simply reinstalled civiCRM and then dumped the curretn information in the database, although I would prefer to fix this problem properly before upgrading to version 2.

Incidentally, I've been Googling furiously before coming back to you. It seems this is not an unknown error but I've not seen any solutions posted up anywhere.

Thanks for your help.

Dave Smith
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Page not found
July 27, 2008, 06:01:44 pm
I'm really not enough of a *nix expert to know for sure what's happening - but as long as the directories referenced in "include_path=" in the warning message are DIFFERENT from the directory where the error is being reported - things will not work. This is the case with your errors. AND in my experience this problem is caused by the fact that the path entered in $civicrm_root pointing to a different location from where the civicrm files are stored.

Note that having multiple copies of the CiviCRM codebase beneath your Drupal root directory will also cause problems like this. For example, if you have:

<drupal_root_directory>/sites/all/modules/civicrm/<civicrm codebase>

AND

<drupal_root_directory>/sites/all/modules/civicrm.bak/<older civicrm codebase>

... this will potentially mess things up since Drupal finds all .module files under it's modules directory.
Protect your investment in CiviCRM by  becoming a Member!

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Page not found
July 29, 2008, 03:15:48 am
Thanks for the additional pointers.

I have two sites using civiCRM.  One is version 2 and is working fine. The other is version 1.9 which is the one giving problems.

When it comes to the to the 'civicrm.settings.php' file, are there any differences between the two versions? I am try to compare the two to see if I can spot the error that is causing my difficulties.

Thanks again.

Dave
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Page not found
July 29, 2008, 09:06:35 am
With regard to the settings that are problematic in your 1.9 install - there are no differences in how things work AFAIK.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Page not found

This forum was archived on 2017-11-26.