Commit Graph

2995 Commits

Author SHA1 Message Date
Rostislav Wolny
3ae8763837 Refactor sending error handling to extra class
The SendigQueue worker is already a very complex class and handles a lot of things.
Since we want to make error handling more sophisticated it is better to move the error handling responsibility
to a new class.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
fe69b56692 Add soft level errors distinction for PHPMail method
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
45433c9deb Add soft level errors distinction for SMTP method
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
6437f4a1b3 Add soft level errors distinction for SendGrid service
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
6df1db933e Add soft level errors distinction for Amazon SES service
[MAILPOET-1154]
2018-09-13 11:12:01 +02:00
Rostislav Wolny
db3ddd22f1 Add soft level errors distinction for MailPoet service
[MAILPOET-1154]
2018-09-13 09:52:13 +02:00
Rostislav Wolny
223c2e1562 Add subscriber errors passing via MailerError object
We want to process errors for individual subscribers.
Subscriber errors were inlined into error message string.
This commit changes this so that we are now able to get
subscriber errors as a data which are easy to process further.

[MAILPOET-1154]
2018-09-13 09:48:54 +02:00
Rostislav Wolny
0923c892c1 Refactor sending methods to use error mappers
We want to add some logic to error handling.
This commit extracts error handling code from sending methods classes,
which already do a lot of other stuff, to error mappers which are responsible
for creating proper error object (MailerError). This error object is a replacement
for assoc. array which already had some special keys for certain usecases and
can not be properly type hinted.

[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
Rostislav Wolny
8cf5d17cfd Refactor sending task variable name and add typehint
[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
Michelle Shull
82a4681cd6 Merge pull request #1492 from mailpoet/translations-load
Rename global translations file [MAILPOET-1520]
2018-09-10 13:27:34 -04:00
Amine Ben hammou
a9a4f6b6ac update admin notice php version 2018-09-10 18:21:49 +01:00
Rostislav Wolny
3e9be631e4 Fix rendering of nested vertical containers
[MAILPOET-1524]
2018-09-06 14:14:21 +02:00
Pavel Dohnal
8c10896bc8 Rename global translations file
[MAILPOET-1520]
2018-09-05 14:51:45 +02:00
Michelle Shull
95f1f6e1fc Merge pull request #1485 from mailpoet/mp2-subscriber-status
Mark status as confirmed if MP2 double opt in is disabled [MAILPOET-1514]
2018-09-04 07:15:15 -04:00
Pavel Dohnal
cbcc8eebf1 Mark status as confirmed if MP2 double opt in is disabled
[MAILPOET-1514]
2018-09-03 12:19:13 +02:00
Jan Jakeš
1304618750 Fix logic to show intro only when not migrating from MP2
[MAILPOET-1508]
2018-08-31 08:50:26 +02:00
Michelle Shull
cc300b2df0 Merge pull request #1481 from mailpoet/logging-backend
Logging backend [MAILPOET-570]
2018-08-30 16:13:54 -04:00
Pavel Dohnal
c7f71663d9 Make templates payload smaller
[MAILPOET-1479]
2018-08-30 11:46:37 +02:00
Pavel Dohnal
20b1330094 Add logging dependencies
[MAILPOET-570]
2018-08-30 09:34:25 +02:00
Pavel Dohnal
174d6fe646 Add log level settings
[MAILPOET-570]
2018-08-30 09:33:55 +02:00
Pavel Dohnal
60ce501c20 Purge old logs
[MAILPOET-570]
2018-08-28 14:36:22 +02:00
Pavel Dohnal
031125517e Add rudimentary logger
[MAILPOET-570]
2018-08-28 14:36:22 +02:00
Pavel Dohnal
9e2a4edcd0 Add logging table
[MAILPOET-570]
2018-08-28 14:36:22 +02:00
Michelle Shull
12af3a3e14 Merge pull request #1476 from mailpoet/php-version-warning
Display PHP version warning via notice filter instead of stdout [MAILPOET-1506] [MAILPOET-1499]
2018-08-27 14:18:59 -04:00
Michelle Shull
5eb112f101 Merge pull request #1477 from mailpoet/remove-code-from-54
Remove code from 54 [MAILPOET-1496]
2018-08-27 14:11:50 -04:00
Michelle Shull
e57b537a85 Merge pull request #1478 from mailpoet/orphaned-tasks
Orphaned tasks
2018-08-27 10:46:52 -04:00
Tautvidas Sipavičius
8b725f1c91 Rename transient attribute to data_notice_name 2018-08-27 17:36:52 +03:00
Jan Jakeš
a08ed493cf Add join on queues to scheduled tasks query
[MAILPOET-1471]
2018-08-25 17:18:31 +02:00
Jan Jakeš
54629b7690 Add missing deleted_at exclusion to scheduled queues query
[MAILPOET-1471]
2018-08-25 16:11:44 +02:00
Tautvidas Sipavičius
d1406970cc Fix coding style issue - redundant space after if 2018-08-23 15:11:45 +03:00
Tautvidas Sipavičius
c68f58a7c0 Display PHP version warning via notice filter instead of stdout 2018-08-23 15:06:21 +03:00
Pavel Dohnal
ae0e03d2f3 Update code for PHP 5.5
[MAILPOET-1496]
2018-08-23 12:10:21 +02:00
Pavel Dohnal
e40a1e91c0 Add indexes for foreign keys
[MAILPOET-1497]
2018-08-23 09:48:58 +02:00
Michelle Shull
6ddbe46b73 Merge pull request #1469 from mailpoet/api-cf-validate
Reject requests without mandatory custom fields [MAILPOET-1405]
2018-08-22 08:09:21 -04:00
Pavel Dohnal
ac33e11c60 Reject requests without mandatory custom fields
We need to make sure subscribers cannot be created without custom fields
Users require GDPR consent and we need to make sure there are no way to
create a subscriber without mandatory custom fields

[MAILPOET-1405]
2018-08-21 15:03:08 +02:00
Tautvidas Sipavičius
31411d2a06 Merge pull request #1468 from mailpoet/cron-post
Use POST for cron requests [MAILPOET-1485]
2018-08-16 12:54:47 +03:00
Jan Jakeš
fcef5f0d2b Show intro only on new install (but not when migrating from WP2)
Intro is marked as shown only when "Skip" or "Done" is explicitly used - this
avoids closing the intro by mistake and never having the option to see it again.

[MAILPOET-1446]
2018-08-16 10:22:57 +02:00
Pavel Dohnal
8ea06f3f31 Use POST for cron requests
[MAILPOET-1485]
2018-08-16 08:27:05 +02:00
Tautvidas Sipavičius
23c54824a6 Merge pull request #1465 from mailpoet/survey-catch
Catch error when rendering deactivation survey [MAILPOET-1491]
2018-08-14 16:19:13 +03:00
Pavel Dohnal
33aa7180f3 Catch error when rendering survey
[MAILPOET-1491]
2018-08-14 13:46:48 +02:00
Pavel Dohnal
e73b12d6f0 Let parsley to render error where it needs to
[MAILPOET-1463]
2018-08-13 16:49:29 +02:00
Rostislav Wolny
e55df2ca2d Add filter for skipping welcome wizard
This was requested for the purposes of the demo page

[MAILPOET-1439]
2018-08-13 10:34:34 +02:00
Rostislav Wolny
406c8bb6bd Render welcome wizard page for a new installation
[MAILPOET-1439]
2018-08-13 10:34:34 +02:00
Rostislav Wolny
a8c7615013 Remove welcome page
The welcome page will be replaced by a new welcome wizard

[MAILPOET-1439]
2018-08-13 10:34:34 +02:00
Vlad
51c89d5aa1 Requires PHP 5.5 or newer. 2018-08-09 14:12:58 +02:00
Rostislav Wolny
659f748dc9 Add cache headers to cron endpoints
[MAILPOET-1464]
2018-08-09 14:08:04 +02:00
Rostislav Wolny
c7aeca116f Add queue_id index into newsletter_links table
Missing index caused that it took to long when generating tracked unsubscribe URL.

[MAILPOET-1486]
2018-08-08 09:15:06 +02:00
Rostislav Wolny
7186f4b13a Add fetching of latest sending tasks for help page
[MAILPOET-1460]
2018-08-02 08:06:06 +02:00
Pavel Dohnal
a3b79a6907 Fix overriding cron token 2018-07-31 17:48:26 +02:00
Rostislav Wolny
1252f35a23 Add sending queue status to help page
[MAILPOET-1459]
2018-07-26 13:08:15 +02:00