Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Email Request Not Working - Error Code Remains 0 #99

Open
valentum opened this issue Jun 12, 2024 · 2 comments
Open

Edit Email Request Not Working - Error Code Remains 0 #99

valentum opened this issue Jun 12, 2024 · 2 comments

Comments

@valentum
Copy link

Hello,

I am experiencing an issue where the email sending functionality for the "editEmail" request is not working as expected. Here are the details:

Problem Description:
I have two pages for editing: one for the email request and the second one for actual editing. When I enter an email and submit the form, the URL changes from /newsletter-bearbeiten to /newsletter-bearbeiten?tx_fpnewsletter_email[action]=editEmail&tx_fpnewsletter_email[controller]=Log&cHash=1234.

However, instead of receiving error code 51 and getting an email with a link to the edit page, the error code remains 0 and no email is sent. Consequently, I am unable to proceed to the edit page to update my settings.

Additional Information:
Subscribing and unsubscribing with OptIn works correctly.
Here are a few possibly relevant constants-settings:

plugin.tx_fpnewsletter.settings {
  honeypot = 1
  searchPidMode = 1
  editUid = 69 // Correct edit page
  doubleOptOut = 0
  deleteMode = 1
  newsletterExtension = mail
  authCodeFields = gender,name
  persistence {
    storagePid = 40
  }
  parameters {
    email = email
    authcode = authcode
  }
}

Any help to resolve this issue would be greatly appreciated. Thanks in advance!

Best regards,
Florian

@bihor
Copy link
Owner

bihor commented Jun 20, 2024

Yes, you are right. This is a bug since the TYPO3 12 version.
The only solution at the moment is to edit the Template
Resources/Private/Templates/Log/EditEmail.html
There you need to remove: pluginName="{pi}"
or set it to: pluginName="editemail".
First copy the template somewhere else. Edit it. Set the path to the new template like this:
https://docs.typo3.org/p/fixpunkt/fp-newsletter/7.0/en-us/Configuration/Index.html#full-working-example

@valentum
Copy link
Author

valentum commented Jul 1, 2024

Perfect, that worked. Thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants