The error is when you create a Newsletter campaign with both version 7.10.5 and 7.10.6






suiteCRM forum
TOPIC: Choose Targets Campaigns error last step
I tried it in the official demo with Newsletter type.
It is clearly a bug as you highlighted.
This a very dangerous and nasty bug, high priority
This is a critical issue because if one does't realise the problem he may end up sending a newsletter to all atrget lists created in the system and this is really unwanted and against GDPR
Possibly related (but I am not sure it is):
No is the same problem, the one you mention is another that is not solved either, but it is independent of this other one.
That javascript error is being triggered by line 294 in modules/Campaigns/tpls/WizardCampaignTargetListForNonNewsLetter.tpl
document.getElementById('no_targets').style.display = 'none';
'no_targets' is not in the DOM.
Why is the file named 'ForNonNewsLetter'? We're creating a newsletter... Is it using the wrong template?
@ApatheticCosmos, @maverikmaverik - Thank you for the very well detailed issue report. I found a possible fix for this issue, can you please confirm if it's works now, if you apply my change above?
@gymad It now has
[Campaign Header> [Subscriptions> [Templates>
at the top instead of
[Campaign Header> [Target List> [Templates>
and the javascript error is gone.
There is also a note on the Subscriptions page that says:
Each campaign requires target lists for subscription, unsubscription and test. When a list is not specified, an empty target list will be created on save.
I think this is the proper behavior, but @maverikmaverik should test in his environment to make sure it's fully working.
Produces a new error, it is not correct, the screen goes blank



It is not closed, it has not been resolved yet.
I do not know why it's closed
@maverikmaverik It appears you had closed it (perhaps by mistake?) looking at the activity stream.
Are you able to provide some logs to identify that 500 error. I suspect it could be permissions, did you reapply correct permissions when you applied the file changes from the proposed pull request?
@gymad Can you assist and help out.
themes permissions 775
@maverikmaverik logs?
That would give a more accurate description of causing a 500.
error_log and suitecrm_log do not give any

@maverikmaverik we can not replicate the blank screen, I assume there is a mistake in your colourSelector.php but it seems correct in the current branch, however 500 server error means something wrong in the server itself (like file permission) or it could be a syntax or parse error in the php interpreter. You can look into your apache log to find an error message (using the correct php.ini settings). if it does not helps also would be nice to see what is in the POST data below in your console log:

I am using V7.10.7 and the same problem occurs when creating an email campaign. The "Target List" not select error appears.
I am using 7.10.8 and have the same issue. I can execute a test email, but I am manually selecting the Send Test action button and then selecting my email campaign which will send successfully at that time.

