problem with civicspace install - warning: civicrm_menu(CRM/Utils/Menu.php: failed to open stream

ambiance7 - April 15, 2006 - 19:25

Hi folks,

Successfully installed Civicspace .8.3. During final configuration, immediately after selecting a theme, I ran into this error message:

warning: civicrm_menu(CRM/Utils/Menu.php): failed to open stream: No such file or directory in [edit path] civicspace\modules\civicrm\modules\civicrm.module on line 182.

I have checked on server and folder structure and files are available with correct file case (uppercase CRM etc)

Any ideas on what may be causing this?

Many Thanks

Please eloborate

sangamreddi - April 15, 2006 - 19:59

My present project on civicspace and Civicrm. I successfully developed a custom theme for it. I havent seen such problem. I tried different themes upon reading your post. No problems for me. Could you please explain more.

Sunny                      
www.gleez.com | www.sandeepone.com

update

ambiance7 - April 15, 2006 - 20:06

Thanks for asking...

Install wizard ran successfully. Database created successfully etc. Then you get to a point in wizard where you configure administrator account for civicrm etc. Then you choose a theme - just before finishing up. I tried a couple different themes and ran into same error message. Unable to proceed beyond this. I did not get to point where configuration is complete.

disappointedly :-(

help with windows DSN settings please

ambiance7 - April 16, 2006 - 23:32

Hi,

With the help of a couple emails, we have narrowed the problem down to DSN settings in the civicrm.settings.php file. Does anyone know how to CHANGE the following line to refer to a databse on a windows box / server?

* define( 'CIVICRM_DSN' , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );

I have created a DSN called drupal1 which we could use.

Thanks

problem resolved

ambiance7 - April 17, 2006 - 03:03

Hi Folks,

Problem was elsewhere. Added windows path on line 86 where you define civicrm_root. That took care of it.

:-)

Problem resolved!!!

more details

ambiance7 - April 17, 2006 - 03:44

Here are what my current lines look like now:

=====

global $civicrm_root;

$civicrm_root = 'c:/hosting/....[edit path]..... /civicspace/modules/civicrm';

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'c:/hosting/....[edit path]..... /civicspace/files/civicrm/templates_c' );

define( 'CIVICRM_UPLOADDIR' , 'c:/hosting/....[edit path]..... /civicspace/files/civicrm/upload/' );

===========

**** I added FULL windows path on server to these folders

I have the exact same problem! What would drupal be?

paulos - May 7, 2006 - 22:50

I have the exact same problem. If that solved the problem then any ideas what the path for a drupal site would be?

I solved the same!

joomlerrostov - June 13, 2008 - 12:42

I 've installed civicrm successfully, enabled it in admin panel - that was ok.

then i tried to enable blocks "CiviCRM Menu", "CiviCRM Quick Add", "CiviCRM Search" and "CiviCRM Shortcuts" in Blocks panel of Drupal admin.

and after that i saw all the errors described above.
Problem was with template_c path, there is no last slash /

So i think here there is an error in install guide
http://wiki.civicrm.org/confluence/display/CRMDOC/Install+CiviCRM+1.8+fo...

correct path is

---------
global $civicrm_root;

$civicrm_root = '/home/drupal/www/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/drupal/www/files/civicrm/templates_c' );

---------
no slash after templates_c

added:

* warning: Smarty::include(/home/drupal/www/files/civicrm/templates_c\en_US\en_US\\%%06\069\0693F89E%%drupal.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in M:\home\drupal\www\sites\all\modules\civicrm\packages\Smarty\Smarty.class.php on line 1265.
* warning: Smarty::include() [function.include]: Failed opening '/home/drupal/www/files/civicrm/templates_c\en_US\en_US\\%%06\069\0693F89E%%drupal.tpl.php' for inclusion (include_path='.;/home/drupal/www/sites/all/modules/civicrm/;/home/drupal/www/sites/all/modules/civicrm/\packages;.;/usr/local/php5/PEAR') in M:\home\drupal\www\sites\all\modules\civicrm\packages\Smarty\Smarty.class.php on line 1265.

these errors when access Manage groups. To solve this: erase last slash in
$civicrm_root = '/home/drupal/www/sites/all/modules/civicrm/';
it should be
$civicrm_root = '/home/drupal/www/sites/all/modules/civicrm';

from Rostov-on-Don, Russia

 
 

Drupal is a registered trademark of Dries Buytaert.