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) »
  • Upgrade from 3.02-3.13 - Joomla 1.5.15
Pages: [1]

Author Topic: Upgrade from 3.02-3.13 - Joomla 1.5.15  (Read 3376 times)

webmate

  • Guest
Upgrade from 3.02-3.13 - Joomla 1.5.15
March 01, 2010, 01:17:55 pm
Hello

When we run the database update we get the folowing errors

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php  on line 169

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php  on line 129

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php  on line 133

Warning: Invalid argument supplied for foreach() in /home/motutapu/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php on line 404

Fatal error: Uncaught exception 'Exception' with message 'Please make sure the folder is writable' in /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php:218 Stack trace: #0 /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(142): IDS_Monitor->__construct(Array, Object(IDS_Init)) #1 /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(79): CRM_Core_IDS->check(Array) #2 /home/xxxx/public_html/test/administrator/components/com_civicrm/admin.civicrm.php(72): CRM_Core_Invoke::invoke(Array) #3 /home/xxxx/public_html/test/administrator/components/com_civicrm/admin.civicrm.php(45): civicrm_invoke() #4 /home/xxxx/public_html/test/libraries/joomla/application/component/helper.php(162): require_once('/home/motutapu/...') #5 /home/xxxx/public_html/test/administrator/includes/application.php(136): JComponentHelper->renderComponent() #6 /home/xxxx/public_html/test/administrator/i in /home/xxxx/public_html/test/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php on line 218

Any ideas on a solution please?

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: Upgrade from 3.02-3.13 - Joomla 1.5.15
March 01, 2010, 09:54:26 pm
Can you check the value of your config_backend column in civicrm_domain table? Make sure is not N; It should be serialized array

HTh
Kurund

Found this reply helpful? Support CiviCRM

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Upgrade from 3.02-3.13 - Joomla 1.5.15
March 01, 2010, 10:50:12 pm
In case config_backend looks correct, you might want to follow instructions from http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location to make sure config settings are correct.

And once you have made sure that you don't get the IDS error by browsing through few civicrm screens (in 3.0.2), you are ready to try the upgrade again.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Upgrade from 3.02-3.13 - Joomla 1.5.15
March 18, 2010, 04:06:10 pm
Hi, I'm getting a similar error too: http://datakid.pastebin.com/ZdBMfSWm

My config_backend column in civicrm_domain table is not N - it's filled with good looking data (although I'n not sure how correct, I presume it is, since I've not adjusted it since making it null)

I am getting it at step 9.1 of the moving existing installation instructions - ie I solved the first problem, via troubleshooting. Then, when I hit save or cancel I get the above error.

The perms are exactly as they were for the previous install.

In particular, I'm being told that  there are error is being thrown at

/home/greenpro/public_html/sandbox/sites/all/modules/civicrm/packages/IDS/Monitor.php, line 218:

Code: [Select]
    216         if (!is_writeable($init->getBasePath()
    217             . $init->config['General']['tmp_path'])) {
    218             throw new Exception(
    219                 'Please make sure the ' .
    220                 htmlspecialchars($init->getBasePath() .
    221                 $init->config['General']['tmp_path'], ENT_QUOTES, 'UTF-8') .
    222                 ' folder is writable'
    223             );

My php isn't great, the code appears to be throwing the error message:

'Please make sure the '  BasePath  ' folder is writable' - but this is not coming through in the error msg - I am just getting 'Please make sure the folder is writable'

Is that an indicator?

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Upgrade from 3.02-3.13 - Joomla 1.5.15
March 18, 2010, 04:06:55 pm
I should also state the I'm on Drupal 6.16

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Upgrade from 3.02-3.13 - Joomla 1.5.15
March 18, 2010, 05:03:51 pm
I've just tried replacing with an empty db to get the new config_backend column in civicrm_domain. I't now Null and I'm getting the same error. I am going to blow this attempt away and start again.

jakecivi

  • I post frequently
  • ***
  • Posts: 140
  • Karma: 0
Re: Upgrade from 3.02-3.13 - Joomla 1.5.15
September 22, 2010, 12:11:19 pm
Just spend hours figuring out how to get past the white screen error messages.  Still doesn't work entirely.  Very frustrating.  You need to do things in a VERY specific order.

1) Migrate your site's code base and database files (excluding the databases
2) Remove (or move) civicrm.settings.php from sites/default
3) Remove the directory sites/default/files/civicrm/templates_c
4) Set the config_backend field in your civicrm_domain table to NULL.
5) RE-RUN the installer by visiting sites/all/modules/civicrm/install/index.php, and fill out all the db info.

Now I can actually see some config screens, but if I try to add a contact or go to Configure->Domain information, I get another error:

Quote
Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`my_db/civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE), 1452
Additional Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

        [(code)] => -3   (actually doesn't have parentheses; edited to avoid confusing forum markup language)
       
[message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 1 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`my_db/civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 1 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`my_db/civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 1 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`my_db/civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)

Can anyone help?

jakecivi

  • I post frequently
  • ***
  • Posts: 140
  • Karma: 0
Re: Upgrade from 3.02-3.13 - Joomla 1.5.15
October 06, 2010, 10:06:40 am
I found out what I did wrong - I failed to disable the CiviCRM module from the Drupal modules page before I exported the databases.  Very important step, apparently.  So the correct order of things is:

0.5) Disable the CiviCRM module at http://yoursite/admin/build/modules
1) Migrate your site's code base and database files (excluding the various cache tables as described, using the mysqldump commands given).
2) Remove (or move) civicrm.settings.php from sites/default
3) Remove the directory sites/default/files/civicrm/templates_c
4) Set the config_backend field in your civicrm_domain table to NULL (if your export somehow didn't remove that table).
5) RE-RUN the installer by visiting sites/all/modules/civicrm/install/index.php, and fill out all the db info.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 3.02-3.13 - Joomla 1.5.15

This forum was archived on 2017-11-26.