Hello queue, i am getting couple of issues installing RSVP (tryed both Beta and Dev versions) on Drupal 6.10 MySQL 5 PHP 5.2.8.

First issue: enabling only RSVP and RSVP_dateconnector, i get the following warning:

RSVP date connector: It is not permitted to enable multiple RSVP connectors. RSVP connector event already enabled. Disable and uninstall other connector first. Then enable this connector again.

removing completely the event connector module the warning disappears, but:

Second issue: i've setted up a Date.field as usual. Still i cannot see anywhere the "RSVP Settings" section where to select the date field to use. (looked everywhere on /admin/content/types/, /admin/content/node-type/ or module settings). Maybe is the dateconnector.module installation that fails.

Anyone else experiencing this? Thanks

Comments

marcoBauli’s picture

UPDATE: also removing completely the rsvp_eventconnector.module *before* installing RSVP keeps showing the warning in the first issue..can anyone lend a hand?

ulf1’s picture

Both connectors work on the same variable and the process is very fragile if you enable both at the same time.

enabling only RSVP and RSVP_dateconnector, i get the following warning
That is a clear indication that the event connector was already enabled when you enabled the date connector.

I suggest usually to disable the event connector and then uninstall the event connector at (admin/build/modules/uninstall) before thinking about enabling another connector.

You also can disable and uninstall both connectors at the same time to start from scratch before you enable the date connector.

Second issue: i've setted up a Date.field as usual. Still i cannot see anywhere the "RSVP Settings" section where to select the date field to use. (looked everywhere on /admin/content/types/, /admin/content/node-type/ or module settings). Maybe is the dateconnector.module installation that fails.
1) The user who can set field associations requires the 'administer rsvp' permissions. Check first if that is the case.
2) The setting is at the bottom of the content-type page itself. So if you have a content-type "myevent" you will find the RSVP Settings section at
the bottom of "admin/content/node-type/myevent"

Please check if you have an option "RSVP Settings" under "Site configuration" at page admin/settings. If you do not see the RSVP Settings link there means that the user does not have the 'administer rsvp' permission.

~
Ulf

marcoBauli’s picture

ulf1, thanks for replying,

actually i never activated the event connector (i do not use event.module and i read readme.txt about using only one connector) but that warning keeps showing up anyway, that's the weird thing..!

About RSVP settings, i am superadmin so i am supposed to have all perms, but to be sure i also accorded all RSVP permissions to authenticated users. I can see 'Site configuration | RSVP Settings", but nothing appears at the bottom of "admin/content/node-type/myevent".
I tryed uninstalling, reverting database to previous version and reinstall also removing completely eventconnector.module, but i cannot see those settings.

In case i can provide a live sample, help appreciated!

marcoBauli’s picture

Priority: Normal » Critical

seems this is an issue with rsvp.install that sets the rsvp_connector and the rsvp_content_types variables set to event even when enabling dateconnector.

Tried this on a fresh local install with just CCK, Date and RSVP and happens the same. I'll mark it as critical, as is impossible to setup the module for those using Date. Thanks

ulf1’s picture

You are right.

The code in rsvp.install in function rsp_enable() is not suppose to be there and causes the problems. I should more frequently test the module enable/disable functionality.

If you remove the following block from the function rsp_enable()

	$connector = variable_get('rsvp_connector', NULL);
  if (isset($connector) && $connector != 'event' ) { 
    drupal_set_message(t('RSVP event connector: It is not permitted to enable multiple RSVP connectors. RSVP connector %conn already enabled. Disable and uninstall other connector first. Then enable this connector again.', array('%conn' => $connector)), 'error');
  }
  else {
    variable_set('rsvp_connector', 'event');
    variable_set('rsvp_content_types', array('event' => ''));    
  }

everything should work fine.
In order to reset the variables you have to disable and "uninstall" the rsvp module itself. Then enable it again.

I checked the changes into cvs a moment ago.

Thanks,
Ulf

marcoBauli’s picture

Status: Active » Fixed

> everything should work fine: it does :) thanks!

marking as fixed then

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.