Hi,

When using admin (which has all rights on the site) - simplenews works fine. However, when using moderator role for log in, i get the following error message:

array_shift(): The argument should be an array in [local_path]/includes/form.inc on line 469.

Location:[URL]?q=user/2/edit/newsletter
Referrer:[URL]?q=user/moderator

Has anyone else run into this?

CommentFileSizeAuthor
simplenews.JPG55.63 KBsbrattla

Comments

jphelan’s picture

I'm having the same problem, any ideas anyone?

Joseph Dunn’s picture

This is happening to me as well.

MartinSfromB’s picture

Priority: Normal » Critical

I think it will happen on all sites .... think it's time to set it critical because no users can edit their newsletter settings.

jphelan’s picture

Does anyone know whats going on here? I can't do anything with the module it very frustrating.

Ignas’s picture

SOLUTION
This error happened to when I moved site to other server.
I found, that that simple news created dublicate newsletter vocabulary (function simplenews_get_vid). Check your categories. If so, return your 'simplenews_vid' variable to original value by variable_set('simplenews_vid', YOUR_original_variable_vid); somewhere in PHP code and delete dublicate vocabulaty. Not nice, but solution for fast fix :(

igorik’s picture

I have this weird thing with subscription too, It started after I replace taxonomy with category module.

igorik’s picture

yes, This is showed after migrating from taxonomy into category module,
but after set appropriate category for node type newsletter it is works fine.

iedude@remote.insidetheie.com’s picture

I'm having this same problem, also shortly after migrating to a new server.

SOLUTION
This error happened to when I moved site to other server.
I found, that that simple news created dublicate newsletter vocabulary (function simplenews_get_vid). Check your categories. If so, return your 'simplenews_vid' variable to original value by variable_set('simplenews_vid', YOUR_original_variable_vid); somewhere in PHP code and delete dublicate vocabulaty.

I can find/change my 'simplenews_vid' variable, but what/where "duplicate" vocabulary are you referring to??

jphelan’s picture

Status: Active » Closed (fixed)
icstars’s picture

Title: array_shift(): The argument should be an array » our fix for: simplenews - array_shift(): The argument should be an array
Category: bug » support
Priority: Critical » Minor
Status: Closed (fixed) » Active

my apologies if this is posted incorrectly, this is my first post. i'm attempting to add to the comment thread for node/71776...

this issue also arose for us, specifically when we installed the taxonomy_access module.

we solved this issue by setting the proper permissions on the specific newsletter category.
/admin/access/category/5

where 5 is the group id of our registered users

specifically we needed to give LIST permissions for the users for our newsletter vocabulary and term. so our permissions are:
view:a | udpate:i | delete:i | create:off | list:on

hope this helps.

sutharsan’s picture

Status: Active » Closed (fixed)