after update :
Fatal error: Class 'views_handler_field' not found in /home/teatrocristao/www/drupal/sites/default/modules/token/simplenews/simplenews_views.inc on line 52
}
/**
* A handler to provide proper displays for newsletter send status.
*
* Allows for display of not send/pending/send.
*/
class simplenews_handler_send_status extends views_handler_field {
/**
* Provides status select list
*/
function options_form(&$form, &$form_state) {
$form['status'] = array(
'#type' => 'select',
'#title' => t('Status'),
'#default_value' => $this->data->status['status'],
'#options' => array(
0 => t('Not send'),
1 => t('Pending'),
2 => t('Send'),
),
);
}
Comments
Comment #1
a.mikheychik commentedThis error now not only with simplenews. I have it with Link module.
Comment #2
chasz commentedviews is a module killer ;)
Comment #3
karens commentedThis is about the 50th report that there is a problem with the Link module when using the latest Views, look in that issue queue and you will easily see it.
Moving the simplenews issue to the simplenews queue.
The Views API has changed and simplenews needs to catch up, if it hasn't already.
Comment #4
miiimoooSame here. First Link, then taxonomy
Comment #5
merlinofchaos commentedFile that against simplenews module, since that's where the error is.
Obviously not, since link.module does not have a file named simplenews_views.inc. That said, either update link.module or file a bug against link.module.
chasz:
I've had enough of you. That comment is not helpful or useful. Please stay out of this issue queue. Also, please read the release notes, wherein it says, UP FRONT, that views api using modules might cease to function.
Comment #6
sutharsan commentedI fully agree with merlinofchaos and KarinS. This is a Simplenews issue.
Duplicate. See the simplenews issue queue.
Comment #7
chasz commentedhey we are learning that you can move issues to the other projects...so dont stress out, poeple are trying to betatest for you.
Comment #8
petiar commentedHey guys,
merlinofchaos, chasz, calm down, please, this doesn't help anyone. The truth is that in the views's release notes there IS a comment saying that the Views API has changed and other modules using this API might be affected in wrong way. I didn't pay attention and both simplenews and link modules are broken on my site, but it is only my fault, so I need to wait for another release of Simplenews and Link.
But one question anyway - I wasn't able to untick the simplenews modules in admin/build/modules because of the error message, so I deleted whole folder. It helped but I don't like this solution - does anybody know how to disable module directly via sql UPDATE command? Thanks.
Petiar
Comment #9
merlinofchaos commentedUPDATE system SET status = 0 WHERE name = 'MODULENAME';
Comment #10
sutharsan commentedThis problem is fixed in simplenews! Use the latest 6.x-1.x-dev and be happy ;)
See: #306622: Class 'views_handler_field' not found
Comment #11
petiar commentedwell done guys, works fine!
Comment #12
scott859 commentedThanks for your work guys, the latest 6.x-1.x-dev version solves this issue.
Comment #13
davikr commentedOK
Grato