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) »
  • Clean install = PHP Fatal error?
Pages: [1]

Author Topic: Clean install = PHP Fatal error?  (Read 4027 times)

tgrondin

  • Guest
Clean install = PHP Fatal error?
January 23, 2009, 08:43:32 pm
I've installed civicrm according to the instructions and everything went smoothly. Once the install completed it redirected back to the front page of my site.
Then I went to modules and enabled the core civicrm module. On clicking save the page goes blank and I get the follow in error in my logs.

 PHP Fatal error:  Cannot redeclare class CRM_Utils_Type in /home/ftp/***public_html/sites/all/modules/civicrm/CRM/Utils/Type.php on line 38

Any idea what would cause this or how I could better troubleshoot this?

Using: Drupal 6.9 and Civicrm 2.1.4

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: Clean install = PHP Fatal error?
January 23, 2009, 09:50:22 pm

can u ensure that u dont have another copy of civicrm code under: /home/ftp/***public_html/sites/

that bug definitely seems a bit wierd. have not seen it before :(

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

tgrondin

  • Guest
Re: Clean install = PHP Fatal error?
January 23, 2009, 10:05:20 pm
There is another civicrm folder in the sites/default/files directory with different stuff in it, but that's it.

There are no other copies of that folder any were else on the server.  I just cleared it off and reinstalled it with the same effect.

Is there anything else I can provide to help you help here?

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: Clean install = PHP Fatal error?
January 23, 2009, 10:08:57 pm

you might want to add a

debug_print_backtrace( );

at line 35 or so and see if that file is being included twice by mistake.

i'm a bit lost here and hence not sure how/where to help

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

tgrondin

  • Guest
Re: Clean install = PHP Fatal error?
January 23, 2009, 10:21:35 pm
I doubt this helps any, but putting in that code on line 35 got me this when i attempted to go to the modules page.  It does not make any sense to me.

############################################################################################

#0 require_once() called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/DAO/Domain.php:34] #1 require_once(/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/DAO/Domain.php) called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/BAO/Setting.php:143] #2 CRM_Core_BAO_Setting::retrieve(Array ()) called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/Config.php:345] #3 CRM_Core_Config->_initVariables() called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/Config.php:183] #4 CRM_Core_Config::singleton() called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/drupal/civicrm.module:245] #5 civicrm_initialize() called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/drupal/civicrm.module:367] #6 civicrm_user(categories, , stdClass Object (), ) #7 call_user_func_array(civicrm_user, Array ([2] => categories,[3] => ,[4] => stdClass Object (),[5] => )) called at [/usr/home/ftp/*****/public_html/includes/module.inc:450] #8 module_invoke(civicrm, user, categories, , stdClass Object (), ) called at [/usr/home/ftp/*****/public_html/modules/user/user.module:1926] #9 _user_categories(stdClass Object ()) called at [/usr/home/ftp/*****/public_html/modules/user/user.module:1097] #10 user_menu() #11 call_user_func(user_menu) called at [/usr/home/ftp/*****/public_html/includes/menu.inc:1680] #12 menu_router_build(1) called at [/usr/home/ftp/*****/public_html/includes/menu.inc:1656] #13 menu_rebuild() called at [/usr/home/ftp/*****/public_html/includes/common.inc:3652] #14 drupal_flush_all_caches() called at [/usr/home/ftp/*****/public_html/modules/system/system.admin.inc:1361] #15 system_clear_cache_submit(Array (), ) called at [/usr/home/ftp/*****/public_html/sites/all/modules/admin_menu/admin_menu.inc:521] #16 admin_menu_flush_cache() #17 call_user_func_array(admin_menu_flush_cache, Array ()) called at [/usr/home/ftp/*****/public_html/includes/menu.inc:348] #18 menu_execute_active_handler() called at [/usr/home/ftp/*****/public_html/index.php:18] #0 require_once() called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php:901] #1 CRM_Core_DAO::composeQuery(SELECT civicrm_uf_group.id as id, civicrm_uf_group.title as title, civicrm_uf_group.is_active as is_active, civicrm_uf_group.group_type as group_type FROM civicrm_uf_group LEFT JOIN civicrm_uf_join on ( civicrm_uf_group.id = civicrm_uf_join.uf_group_id ) AND civicrm_uf_group.is_active = 1 WHERE civicrm_uf_join.module = %2 ORDER BY civicrm_uf_join.weight, civicrm_uf_group.title, Array ([2] => Array ([0] => User Account,[1] => String)), 1, CRM_Core_DAO Object ([_DB_DataObject_version] => 1.8.8,[__table] => ,[N] => 0,[_database_dsn] => ,[_database_dsn_md5] => ,[_database] => ,[_query] => Array ([condition] => ,[group_by] => ,[order_by] => ,[having] => ,[limit_start] => ,[limit_count] => ,[data_select] => *),[_DB_resultid] => ,[_resultFields] => ,[_link_loaded] => ,[_join] => ,[_lastError] => )) called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php:859] #2 CRM_Core_DAO::executeQuery(SELECT civicrm_uf_group.id as id, civicrm_uf_group.title as title, civicrm_uf_group.is_active as is_active, civicrm_uf_group.group_type as group_type FROM civicrm_uf_group LEFT JOIN civicrm_uf_join on ( civicrm_uf_group.id = civicrm_uf_join.uf_group_id ) AND civicrm_uf_group.is_active = 1 WHERE civicrm_uf_join.module = %2 ORDER BY civicrm_uf_join.weight, civicrm_uf_group.title, Array ([2] => Array ([0] => User Account,[1] => String))) called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php:1156] #3 CRM_Core_BAO_UFGroup::getModuleUFGroup(User Account) called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/drupal/civicrm.module:477] #4 civicrm_categories(stdClass Object ()) called at [/usr/home/ftp/*****/public_html/sites/all/modules/civicrm/drupal/civicrm.module:451] #5 civicrm_user(categories, , stdClass Object (), ) #6 call_user_func_array(civicrm_user, Array ([2] => categories,[3] => ,[4] => stdClass Object (),[5] => )) called at [/usr/home/ftp/*****/public_html/includes/module.inc:450] #7 module_invoke(civicrm, user, categories, , stdClass Object (), ) called at [/usr/home/ftp/*****/public_html/modules/user/user.module:1926] #8 _user_categories(stdClass Object ()) called at [/usr/home/ftp/*****/public_html/modules/user/user.module:1097] #9 user_menu() #10 call_user_func(user_menu) called at [/usr/home/ftp/*****/public_html/includes/menu.inc:1680] #11 menu_router_build(1) called at [/usr/home/ftp/*****/public_html/includes/menu.inc:1656] #12 menu_rebuild() called at [/usr/home/ftp/*****/public_html/includes/common.inc:3652] #13 drupal_flush_all_caches() called at [/usr/home/ftp/*****/public_html/modules/system/system.admin.inc:1361] #14 system_clear_cache_submit(Array (), ) called at [/usr/home/ftp/*****/public_html/sites/all/modules/admin_menu/admin_menu.inc:521] #15 admin_menu_flush_cache() #16 call_user_func_array(admin_menu_flush_cache, Array ()) called at [/usr/home/ftp/*****/public_html/includes/menu.inc:348] #17 menu_execute_active_handler() called at [/usr/home/ftp/*****/public_html/index.php:18] |

######################################################################################


tgrondin

  • Guest
Re: Clean install = PHP Fatal error?
January 23, 2009, 10:30:36 pm
More info.

I am also getting this message on the available updates page.

CiviRoles Sync 6.x-3.x-dev (2008-Oct-14)
Project not supported: This project is no longer supported, and is no longer available for download. Disabling everything included by this project is strongly recommended!
Includes: CiviGroup Roles Sync, CiviMember Roles Sync

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Clean install = PHP Fatal error?
January 24, 2009, 12:40:37 am
tgrondin:

You can ignore the warnings, since these 2 modules are now managed by CiviCRM Core team.

Kurund
Found this reply helpful? Support CiviCRM

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: Clean install = PHP Fatal error?
January 24, 2009, 06:24:02 am

1. Do you have ssh access to you host and can u ssh into the servers and edit the files

2. if so, get on IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true) and give us the relevant info. we'll login and try to see what the issue is

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

tgrondin

  • Guest
Re: Clean install = PHP Fatal error?
January 24, 2009, 10:14:47 am
I am the sysadmin for the server in question so I do have ssh access.

Unfortunately I cant give ssh access out since it is a shared server. However I can run any tests or checks you would like and give you access to the log files for this particular site.  The server is running several hundreds of websites many of them being joomla or drupal based. So far we have not encountered any issues such as that could not be solved via a simple google search. :)

Thanks for all help guys. Its really appreciated. We reallly want to get civicrm to work correctly since we charity host various non-profit groups.

I don't know if this help, but here are the server stats.

Freebsd 7.0-RELEASE.

PHP INFO
-------------
php5-5.2.8          PHP Scripting Language
php5-curl-5.2.6_2   The curl shared extension for php
php5-dom-5.2.6_2    The dom shared extension for php
php5-gd-5.2.8       The gd shared extension for php
php5-iconv-5.2.6_2  The iconv shared extension for php
php5-imap-5.2.6_1   The imap shared extension for php
php5-ldap-5.2.6_2   The ldap shared extension for php
php5-mbstring-5.2.6_2 The mbstring shared extension for php
php5-mcrypt-5.2.6_2 The mcrypt shared extension for php
php5-mhash-5.2.6_2  The mhash shared extension for php
php5-mysql-5.2.6_2  The mysql shared extension for php
php5-mysqli-5.2.6_2 The mysqli shared extension for php
php5-pcre-5.2.6_2   The pcre shared extension for php
php5-pdo-5.2.6_2    The pdo shared extension for php
php5-pdo_mysql-5.2.6_2 The pdo_mysql shared extension for php
php5-readline-5.2.6_2 The readline shared extension for php
php5-session-5.2.6_2 The session shared extension for php
php5-simplexml-5.2.6_2 The simplexml shared extension for php
php5-soap-5.2.8     The soap shared extension for php
php5-spl-5.2.6_2    The spl shared extension for php
php5-sqlite-5.2.6_2 The sqlite shared extension for php
php5-tidy-5.2.6_2   The tidy shared extension for php
php5-xml-5.2.6_2    The xml shared extension for php
php5-zlib-5.2.6_2   The zlib shared extension for php

Pear Info
-----------
pear-1.7.2          PEAR framework for PHP
pear-Auth-1.6.1     PEAR class for creating an authentication system
pear-Auth_SASL-1.0.2 PEAR abstraction of various SASL mechanism responses
pear-Crypt_CHAP-1.0.1 PEAR class for generating CHAP packets
pear-DB-1.7.13,1    PEAR Database Abstraction Layer
pear-File_Passwd-1.1.6 PEAR class to manipulate many kinds of password files
pear-HTTP_Request-1.4.4 PEAR classes providing an easy way to perform HTTP requests
pear-Log-1.11.3     PEAR logging utilities
pear-MDB-1.3.0      PEAR unified API for DB access, based on user meta data
pear-MDB2-2.4.1     PEAR database abstraction layer
pear-Mail-1.1.14    PEAR class that provides multiple interfaces for sending em
pear-Net_POP3-1.3.6 Provides a POP3 class to access POP3 server
pear-Net_Socket-1.0.9 PEAR Network Socket Interface
pear-Net_URL-1.0.15 Easy parsing of URLs
pear-Net_Vpopmaild-0.3.2 PEAR Class for accessing Vpopmail's vpopmaild daemon
pear-SOAP-0.12.0_1  PEAR SOAP Client/Server for PHP
pear-XML_Feed_Parser-1.0.3 Providing a unified API for handling Atom/RSS
pear-XML_Parser-1.3.1 PEAR XML parsing class based on PHP's bundled expat

Apache Info
-------------------
apache-2.2.9_5      Version 2.2.x of Apache web server with prefork MPM.

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: Clean install = PHP Fatal error?
January 24, 2009, 03:29:43 pm

sorry, cant be of much more help here. U'll have to trace thru the code and figure out whats happening and why your install is getting that specific error

please update this topic when you figure it out

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

tgrondin

  • Guest
Re: Clean install = PHP Fatal error?
January 24, 2009, 04:21:11 pm
I am doing a clean install of drupal with civicrm install as the first module. I'm going to add in all my other modules one by one till I figure out which one is conflicting.
I'll be sure to let you know how it goes.

Thanks for all the help.

cosmicdreams

  • Guest
Re: Clean install = PHP Fatal error?
March 04, 2009, 09:04:37 am
I suspect that the conflict was caused my the plugin_manager module since they've reported a similar problem here: http://drupal.org/node/390108

tgrondin

  • Guest
Re: Clean install = PHP Fatal error?
March 04, 2009, 04:22:11 pm
No, sadly that is not it. I've never used that plugin at all.

I had to move on to other projects for the moment, but I intend on coming back to it sometime soon and giving it another shot.

Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Clean install = PHP Fatal error?

This forum was archived on 2017-11-26.