Selected views do not appear on "My Notification Settings" tab.

gjerdery - September 30, 2008 - 20:12
Project:Notify by Views
Version:5.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:matt2000
Status:closed
Description

After installing Notify by Views, and enabling views, the available views are not shown on the "My Notification Settings" for a user account. Instead this text appears "This website offers selectable notifications of the following content: , , , , , , , , , , , , , , , , , , , " -- this is nineteen commas, which might be separating the 20 views I have available on the system, even though I've only selected two in the Notification Settings. Is it possible that the array $view_desc, defined in line 159 of notify_by_views.module, is getting defined as containing 20 null elements?

Here is what gets stored in drupal_variable for "notify_by_view_select_views" -- the first two strings look like duplicates, and happen to be the names of the two views I've enabled.

a:20:{s:11:"blog_notify";s:11:"blog_notify";s:14:"resources_blog";s:14:"resources_blog";s:12:"factoid_view";i:0;s:9:"fd_events";i:0;s:8:"outboard";i:0;s:12:"outboard_new";i:0;s:8:"projects";i:0;s:16:"resources_bytype";i:0;s:18:"resources_catalogs";i:0;s:19:"resources_databases";i:0;s:27:"resources_databases_general";i:0;s:15:"resources_index";i:0;s:23:"resources_instructional";i:0;s:18:"resources_internet";i:0;s:20:"resources_newspapers";i:0;s:19:"resources_reference";i:0;s:15:"resources_staff";i:0;s:22:"resources_stylemanuals";i:0;s:15:"resources_tests";i:0;s:15:"upcoming_events";i:0;}

#1

matt2000 - October 2, 2008 - 21:48
Assigned to:Anonymous» matt2000
Status:active» fixed

Fix committed, along with code to prevent modification of the Notification settings form entirely if no views have been selected.

You may need to fully uninstall the previous version and/or use the 'reset' button on the content notification settings form to get a clean start.

Please test and report back.

#2

gjerdery - October 9, 2008 - 06:27
Status:fixed» active

After uninstalling previous version, and resetting the Notification settings, I installed the updated module. Now, the "notify_by_views_set" form is not drawn on the "My Notification" page at all. The textual updates to other forms on that page are working.

The value for 'notify_by_views_select_views' in the database is now

a:21:{s:11:"blog_notify";s:11:"blog_notify";s:12:"factoid_view";i:0;s:11:"fd_calendar";i:0;s:9:"fd_events";i:0;s:8:"outboard";i:0;
s:12:"outboard_new";i:0;s:8:"projects";i:0;s:14:"resources_blog";i:0;s:16:"resources_bytype";i:0;
s:18:"resources_catalogs";i:0;s:19:"resources_databases";i:0;s:27:"resources_databases_general";i:0;
s:15:"resources_index";i:0;s:23:"resources_instructional";i:0;s:18:"resources_internet";i:0;
s:20:"resources_newspapers";i:0;s:19:"resources_reference";i:0;s:15:"resources_staff";i:0;
s:22:"resources_stylemanuals";i:0;s:15:"resources_tests";i:0;s:15:"upcoming_events";i:0;}

Is it safe to guess that

if (count($view_desc)==0) {
      return $form;
    }
in 'function _notify_by_views_form_elements' is being satisfied and returned a null form? Please let me know if there is anything specifically I can do to help debug -- I know just enough PHP to be dangerous to myself, but perhaps not helpful to others. I've spent some time looking through the module code, but nothing has jumped out at me yet.

#3

gjerdery - October 9, 2008 - 14:54
Status:active» fixed

Upon further review, I noticed that the problem was not with notify_by_views, but with the fact that none of the views on my system had the "description" field filled out. Entering text in that field made everything work as expected, barring a warning message which I will address is a separate thread. Thanks!

#4

Anonymous (not verified) - October 23, 2008 - 15:03
Status:fixed» closed

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

#5

drein - February 3, 2009 - 08:07

I'm really sorry, but I'm not able to solve this problem.
I updated the notify_by_views module without unistalling the previous version and I obviously have your mentioned problem above.
Then, I uninstalled notify_by_mviews an pressed the reset button into the notify settings.
I re-activated the notify_by_views module but unfortunately, I still have the name of the views, but users can't select them.
So I don't know how to clean things... when y uninstall a module, I do it going to admin/build/modules and then selecting the uninstall function. Should I delete also the files of the module and then re-upload them?

Are there some variables that I can delete manually in the sql database?
Thanks and sorry for the inconvenience.

#6

drein - February 4, 2009 - 09:30
Status:closed» postponed (maintainer needs more info)

I deleted and re uploaded the module but no chance, I can't select views from my notification users.
Mmm,..

#7

emdalton - February 9, 2009 - 19:28

I installed the dev version of Notify by Views today and after selecting views in admin/content/notify, I am not seeing any views in user/nnn/notify to choose from. My views have descriptions filled in, so that's not it. I'm on the dev version of Notify as of today, but I had tried it earlier with the regular 5.x-1.2 version of Notify with the same result.

I only see two permissions for "notify module" and none specifically for "notify by views." Is that correct? Are views notification options limited by the roles specified on the views? I tried including a view that is visible to everyone on the list, as well as one that is restricted but should be visible to the role that I'm trying to subscribe to it, and neither is showing up on the Notification settings page. I can't even add the view to the user as admin.

#8

matt2000 - February 9, 2009 - 20:03

Maybe you misunderstand the features of the module? It does not allow users to select WHICH views they receive notifications for; it only allows them to specify WHEN the notifications are sent for whichever views the admin has specified.

If you want user's to be able to select from various views, that's a feature request, and calls for a new issue. However, I probably won't be adding new features until the module is updated for D6.

#9

emdalton - February 10, 2009 - 14:27

Ok. Thanks for the clarification. I guess I'll go back to using RSS on Views and rss2email, because not everyone needs to be sent the contents of every view I wanted to make available for notification.

#10

matt2000 - February 10, 2009 - 15:35
Status:postponed (maintainer needs more info)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.