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 »
  • Using Multi-Site functionality »
  • Is Mutisite extension incompatible with 4.3.3?
Pages: [1] 2

Author Topic: Is Mutisite extension incompatible with 4.3.3?  (Read 5275 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 01:12:50 pm
I'm running a muti-site with about 15 affiliate sites using Domain Access and just recently upgraded to 4.3.3 with the Multisite module installed - I've been getting errors along the lines of:

Code: [Select]
Unknown extension: org.civicrm.multisite and
Code: [Select]
Error loading module file (). Please restore the file or disable the module.
I've tried disabling and reinstalling the module as well as changing the extensions directory (which the system doesn't seem to pick up) - I had originally used sites/default/files/civicrm/extensions and tried changing to custom_ext as per http://wiki.civicrm.org/confluence/display/CRMDOC43/Extensions but the install hangs. While the module was enabled, I was also getting the following on affiliate sites:

Code: [Select]
Fatal error: Call to a member function getPath() on a non-object in /home/[site]/public_html/sites/all/modules/civicrm/CRM/Extension/Container/Collection.php on line 102
I'm pretty lost here - do I need the module? (I want to segregate contacts.) If so, how can I get extensions to work as intended? And when/if I do get things working, does installation on the "master" site take care of things, or do I need to set up for each affiliate?

(I did need to set up each affiliate before; now that doesn't seem to work as per the getPath error.)

Thanks in advance for any guidance here...

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 01:55:21 pm
I have switched to using the extension instead of the module & am using a branch here

https://github.com/eileenmcnaughton/org.civicrm.multisite

that has some improvements around performance but I haven't made it an downloadable upgrade to the extension yet  as I think there might be some things that need to be set on switching (in particular there is an ACL setting which allows ACLs to be on for some sites and not others - although in practice I have actually taken to not enabling multisite on level 1).

Anyway - if you clone that into your extensions directory, disable the module & enable it it should enable - any problems ping me on IRC or reply here
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 02:38:07 pm
Thanks, Eileen - can't get it to work. I don't understand .git for the life of me, so I downloaded the archive and archived the old version - I've attached a screenshot of my civicrm/files/extensions directory. (tar.gz is the old version; the .zip file is 2.0)

I've also attached a shot of my extensions screen - clicking install hangs and ultimately results in the following error:

Code: [Select]
Fatal error: Call to a member function rollback() on a non-object in /home/suffolk/public_html/sites/all/modules/civicrm/api/api.php on line 164
Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /home/[site]/public_html/includes/session.inc).

Should I blow everything out of the extensions directory and try again? Thanks so much for your help here...



Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 02:47:18 pm
So, I would remove the .zip & the .tar & make sure the unzipped version is what is in the remaining folder.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 03:02:11 pm
No change. Should I blow out the cache and tmp folders in the hopes that would bring me back to square 1? Thanks...

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 03:09:09 pm
Yes, try all that stuff - worth a go. It seems there is an error you might find in your civicrm log files that isn't obvious from the above.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 04:19:12 pm
Download location is empty - is that the way it's supposed to be? Thanks... and sorry...

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 04:23:59 pm
Not quite sure what you mean. if you have deleted the extension you need to put it back?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 06:28:01 pm
Sorry - what I meant was that the Download location field (right under "Description") is empty as per the screen capture I attached earlier in the thread.

I emptied the extensions directory completely and the system correctly showed no extensions; then I re-uploaded the zipped 2.0 archive. Clicking on Install throws the aforementioned "rollback" error after a while. The reason I'm asking about the "Download location" field is that I'm wondering if the system is trying to download something and not finding it.

I'm attaching a capture of the unzipped 2.0 folder structure to verify that it's correct - that's all that I can think of.... thanks!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 06:36:55 pm
Do you have debugging & backtrace enabled?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 06:45:15 pm
I'll try to do that in the wee hours - campaign season is heating up, everything is still fairly new to the users and I don't want to freak them out. I'll enable debug and backtrace at some ungodly hour (for me) and report back... thanks, Eileen!

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 03, 2013, 09:48:11 pm
OK - see below. The extensions directory is properly set and is writable . Hope this helps...

Code: [Select]
CRM_Extension_Exception_MissingException: Unknown extension: in /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Extension/Container/Collection.php on line 102
Exception trace
# Function Location
0 CRM_Extension_Container_Collection->getContainer(null) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Extension/Container/Collection.php:102
1 CRM_Extension_Container_Collection->getPath(null) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Extension/Mapper.php:171
2 CRM_Extension_Mapper->keyToInfo(null) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Admin/Form/Extensions.php:67
3 CRM_Admin_Form_Extensions->preProcess() /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Form.php:336
4 CRM_Core_Form->buildForm() /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php:93
5 CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Admin_Form_Extensions), 'display') /home/suffolk/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php:203
6 HTML_QuickForm_Controller->handle(Object(CRM_Admin_Form_Extensions), 'display') /home/suffolk/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php:103
7 HTML_QuickForm_Page->handle('display') /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php:316
8 CRM_Core_Controller->run() /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Page/Basic.php:374
9 CRM_Core_Page_Basic->edit(1, null) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Page/Basic.php:178
10 CRM_Core_Page_Basic->run() /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Admin/Page/Extensions.php:127
11 CRM_Admin_Page_Extensions->run(Array, null) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php:292
12 CRM_Core_Invoke::runItem(Array) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php:70
13 CRM_Core_Invoke::_invoke(Array) /home/suffolk/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php:52
14 CRM_Core_Invoke::invoke(Array) /home/suffolk/public_html/sites/all/modules/civicrm/drupal/civicrm.module:436
15 civicrm_invoke('admin', 'extensions') unknown:unknown
16 call_user_func_array('civicrm_invoke', Array) /home/suffolk/public_html/includes/menu.inc:517
17 menu_execute_active_handler() /home/suffolk/public_html/index.php:21
18 {main}
Sorry but we are not able to provide this at the moment.
Unknown extension:
Return to home page.

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 10, 2013, 07:28:18 am
1. In trying to activate 2.0, I got:

Code: [Select]
Recoverable fatal error: Argument 1 passed to CRM_Admin_Page_Extensions::createExtendedInfo() must be an instance of CRM_Extension_Info, null given, called in /home/[site]/public_html/sites/all/modules/civicrm/CRM/Admin/Form/Extensions.php on line 77 and defined in CRM_Admin_Page_Extensions::createExtendedInfo() (line 272 of /home/[site]/public_html/sites/all/modules/civicrm/CRM/Admin/Page/Extensions.php).OK - I tried rolling back to 1.0 by removing the 2.0 extension, which I was unable to install as per previous post.

2. So I decided to roll back by removing the 2.0 extension, at which point I was able to get 1.0 to appear on the Add Extension page. Upon downloading 1.0, I got the following error:

Code: [Select]
Fatal error: Call to a member function rollback() on a non-object in /home/[site]/public_html/sites/all/modules/civicrm/api/api.php on line 164
Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /home/[site]/public_html/includes/session.inc).

The extension was downloaded and uncompressed, though, in the sites/default/files/civicrm/extensions directory, though. (This is the custom directory I had set up.)

3. On clicking Install, the system seemed to time out and eventually threw the following error:

Code: [Select]
Fatal error: Call to a member function rollback() on a non-object in /home/[site]/public_html/sites/all/modules/civicrm/api/api.php on line 164
Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /home/[site]/public_html/includes/session.inc).

In going back to the CiviCRM admin page, the page title read Access Denied, although the page loaded OK and things seem to work normally. So I'm back at #3, where the extension won't install.

Hope this helps... any ideas? Thanks...
« Last Edit: June 10, 2013, 07:33:18 am by bcobin »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Is Mutisite extension incompatible with 4.3.3?
June 16, 2013, 06:20:29 pm
Hi,

I published the version 2 to make it easier to check & then installed it (from url) on 3 installs - 4.2, 4.3, 4.4 / trunk & all worked. I'm not sure if installing off a published version made the difference or something is snarled up in your install. Do you want to see if having v2 published makes a difference?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Is Mutisite extension incompatible with 4.3.3?
June 18, 2013, 04:44:36 am
Thanks for following up, Eileen!

I now get the following on http://[site].com/civicrm/admin/extensions?reset=1

The page says Version 2.0 is available and there's a link to upgrade immediate error thrown as follows:

Code: [Select]
Warning: file_get_contents(http://civicrm.org/extdir/ver=4.3.3|cms=Drupal/eu.tttp.noverwrite.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in CRM_Extension_Browser->grabRemoteInfoFile() (line 270 of /home/[site]/public_html/sites/all/modules/civicrm/CRM/Extension/Browser.php).
Looking at the code, I see cache is involved; I'm using Varnish - do you think that might have something to do with it? Disabling Varnish on the site (even temporarily) has consequences of its own, as I recall.

Feel free to reach out to me privately for site access - thanks again for your help!

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Multi-Site functionality »
  • Is Mutisite extension incompatible with 4.3.3?

This forum was archived on 2017-11-26.