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

M3: Unsubscribe link with email campaign is broken #8329

Closed
dichvuhuuich opened this issue Jan 14, 2020 · 4 comments
Closed

M3: Unsubscribe link with email campaign is broken #8329

dichvuhuuich opened this issue Jan 14, 2020 · 4 comments
Assignees
Labels
bug Issues or PR's relating to bugs
Projects
Milestone

Comments

@dichvuhuuich
Copy link

dichvuhuuich commented Jan 14, 2020

Bug Description

When click Link unsbscribe in email send by a campaign (generated by token {unsubscribe_text}) go to error page

Q A
Mautic version 3.0.0-alpha
PHP version 7.2.26
Browser Chrome Version 79.0.3945.117 (Official Build) (64-bit)

Steps to reproduce

  1. Create email with token {unsubscribe_text}
  2. Create a segment test to send test email with a contact
  3. Create a campaign send email with segment test
  4. Contact receive mail with unsubscribe link, click go to error page
  5. Though unsubscribe is broken but contact still changed to Do Not Contact

Log errors

Uh oh! I think I broke it. If I do it again, please report me to the system administrator!
500 Internal Server Error
Mautibot
Report an issue

@npracht npracht added bug Issues or PR's relating to bugs Mautic 3 regression A bug that broke something in the last release labels Jan 14, 2020
@npracht npracht added this to the 3.0.0 milestone Jan 14, 2020
@npracht npracht added this to To do in Mautic 3 Jan 14, 2020
@dennisameling
Copy link
Member

Can reproduce on fresh Mautic 3 installation. Logs show the following:

[2020-01-22 18:43:51] mautic.WARNING: PHP Warning - include(/var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/../twig/twig/src/Node/Expression/Test/DefinedTest.php): failed to open stream: No such file or directory - in file /var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/ClassLoader.php - at line 444 {"file":"/var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/../twig/twig/src/Node/Expression/Test/DefinedTest.php"} []
[2020-01-22 18:43:51] mautic.WARNING: PHP Warning - include(/var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/../twig/twig/src/Node/Expression/Test/DefinedTest.php): failed to open stream: No such file or directory - in file /var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/ClassLoader.php - at line 444 {"file":"/var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/../twig/twig/src/Node/Expression/Test/DefinedTest.php"} []
[2020-01-22 18:43:51] mautic.WARNING: PHP Warning - include(): Failed opening '/var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/../twig/twig/src/Node/Expression/Test/DefinedTest.php' for inclusion (include_path='.:/opt/plesk/php/7.2/share/pear') - in file /var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/ClassLoader.php - at line 444 {"file":"/var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/composer/../twig/twig/src/Node/Expression/Test/DefinedTest.php"} []
[2020-01-22 18:43:58] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "DefinedTest" from namespace "Twig\Node\Expression\Test". Did you forget a "use" statement for another namespace?" at /var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/twig/twig/src/ExpressionParser.php line 693 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"DefinedTest\" from namespace \"Twig\\Node\\Expression\\Test\".\nDid you forget a \"use\" statement for another namespace? at /var/www/vhosts/fits4all.nl/httpdocs/mautic3/vendor/twig/twig/src/ExpressionParser.php:693)"} []

@dennisameling
Copy link
Member

dennisameling commented Jan 22, 2020

Just did some additional checks. The Alpha release doesn't contain the vendor/twig/twig/src/Node/Expression/Test folder, but if you checkout the 3.x branch, install the Composer dependencies, and then check, it does contain the /Test folder. Then I tried to build Mautic, and in the build package the Test folder is also missing. So I'm pretty sure something's wrong in the build script of Mautic, but would need to dive a bit deeper into it to find out why exactly.

@dennisameling dennisameling self-assigned this Jan 22, 2020
@dennisameling dennisameling added the ready-to-test PR's that are ready to test label Jan 22, 2020
@dennisameling dennisameling moved this from To do to Needs code review and/or test in Mautic 3 Jan 22, 2020
Mautic 3 automation moved this from Needs code review and/or test to Done Jan 23, 2020
@escopecz escopecz removed ready-to-test PR's that are ready to test regression A bug that broke something in the last release labels Jan 23, 2020
@LucasBorthiry
Copy link

Hi. I'm running with the same issue.

Bug description

Mautic Version 3.2.5
PHP version 7.3.31
Chrome Version 95.0.4638.69 (Build oficial) (x86_64)

Steps to reproduce

Create email with token {unsubscribe_text}
Create a segment test to send test email with a contact
Create a campaign send email with segment test
Contact receive mail with unsubscribe link, click go to error page
Though unsubscribe is broken but contact still changed to Do Not Contact

Log errors

Uh oh! I think I broke it. If I do it again, please report me to the system administrator!
500 Internal Server Error
Mautibot
Report an issue

It's pretty much the same issue. Any thoughts?

Thanks in advance.

@escopecz
Copy link
Sponsor Member

@LucasBorthiry it may be different issue because the one above was fixed in 3.0.0-beta so you should have the fix in your Mautic instance. Please check Mautic logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs
Projects
No open projects
Mautic 3
  
Done
Development

No branches or pull requests

5 participants