Closed (fixed)
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2011 at 13:36 UTC
Updated:
2 Jan 2012 at 07:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidThis is a problem with the simplenews token API usage. This warning indicates you have a token in simplenews_token_info() that has a property 'needs-data' => 'something' and the token API expects token replacement to have $data['something'].
So in this case:
Comment #2
dave reidAlso the simplenews-newsletter and its 'url' token seem to be needlessly duplicating the [node:url] token. I would suggest removing it completely.
Comment #3
simon georges commented@Dave Reid, thanks for the detailed explanation, we will take care of it.
Comment #4
zauberertz commentedsubsribe, can I help in some way?
Comment #5
kifuzzy commentedhi,
i have the same problem..
in the file token.....inc:
so ... "if empty" ( its empty) ... it performs the message. and break sending emails.
test mails outgoing to recipient(s), testing the smtp - settings.
drupal - syslog says, a outgoing message is performing.
drupal syslog says, mail could not be send: Error (nothing else)
the text below is displaying for subscribers
currently on one of my drupal-test-installation-online-sites
.. "developing / test areas" for me before take some
on a "production site".
... i become more and more desperate... how can is solve
this that it works??
please, can someone help me?
p.s.:
.. i am not a coder...
edit:
using drupal 7.4
updated moduls (token, ..)
rules and entity api cause tested and will test "drupal for facebook"(now, its a .. facebook social.. modul)
phpmailer / mime mail (mailsystem) / simplenews
several versions since i was starting to find a way that it works.. for anonymous subscribers or others
using the form where they have to fill out the fied with their email-adress)
Comment #6
simon georges commented@zauberetz, if you have some time to code the patch, don't hesitate to do it, I'll be happy to commit it !
Comment #7
pitxels commentedIs there any workaround before patching?
thanks
Comment #8
mangelp commentedFollowing what Dave said in #1 seems that the patch is pretty trivial. I've patched the latest dev revision and attached it.
Comment #9
damiandab commentedcool , thanks for the patch
Comment #10
simon georges commentedIf you look at the "simplenews-subscriber" part, the code needs two kinds of data, first the account, then the category.
Anyway, thanks for the patch, it's a first step, I'll commit it a bit later, at least two out of three will then work.
Comment #11
simon georges commentedOk, first step committed, let's work on having everything working.
Comment #12
berdirThe attached patch does some further cleanups:
- Removing newsletter tokens is tricky, because they're used all over the place and we don't want to just drop support for them. Instead, I added a DEPRECATED use X instead in the token description.
- Add correct token types to all token trees and contexts, including node.
- Added descriptions for our token types, this fixes #1316112: Status Report Token Required Information Missing
- newsletter category tokens are a duplicates of taxonomy terms as well but this is not as clear for users as it is for nodes I think. we also have additional info there, for which we could add tokens later on (stuff like mail format, from address, and more). So I kept that but added a term token which allows to use all taxonomy term tokens.
- This also re-implements token replacements on viewing the node directly.
- Updated some other descriptions.
Comment #13
berdirFixed Implementents typo...
Comment #14
miro_dietikerDiscussed with Berdir:
Current release is alpha (only). Also it's the first 7.x release. So no guarantee for interface stability. Thus we decide to change token structures by intention to follow our clean naming. No deprecated notes needed.. Possibly add an upgrade note.
Comment #15
berdirOk, the updated patch removes newsletter tokens and adds a simple update function with a message mention this removal.
As Miro said, we're officially still in alpha so it's now or never, at least for 7.x-1.x.
Comment #17
berdirFixed a typo (simplenews_subscriber vs. simplenews-subscriber).
Comment #19
berdirThis one should be good.
Comment #20
miro_dietikerLooks pretty fine.
BTW: How about the token UI ajax patch that you where working on recently? Did it get committed?
Comment #21
berdirOk, commited (Trying to get as much as possible commited before doing another alpha).
What I worked on re. the token browser isn't really a solution, just a workaround. I just allowed lazy-loading of the (still the whole) token tree through ajax. That's just moving the processing out of the main page load. What the token browser actually needs is partial loading through ajax when you expand the tree. This is not a trivial thing to do I fear...