Attachment not attached when sending emails and tracking broke too
-
Hi!
We made a mailing and the attached file is not attached. This used to work since we did this some months ago. Tracking also looks broke because all numbers are zero.
We use latest versions of EME and WordPress.
-
This topic was modified 3 years, 8 months ago by
mlplus.
The page I need help with: [log in to see the link]
-
This topic was modified 3 years, 8 months ago by
-
Just tested on a public site: attachments and tracking work as expected.
How are you sending this mail? And anything in the logs?All email are sent correctly but attachments are not added. I use the tab “General emails”, not emails related to events.
And what do your logs say (apache, php and mailserver logs in this case)?
Also: which sending method do you use (smtp, php mail, wp mail, …)? If wp mail: is there another plugin that might interact with this (like the plugin “wp smtp” or so)?Installed WP debugging now and gets this:
Notice: Trying to access array offset on value of type null in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/plugins/events-made-easy/eme_locations.php on line 2144
Happens here: https://oppnasinnen.org/platser/anneli-magnuson/
That just means that you’re using a #_FIELD-like placeholder with a reference to a custom field that no longer exists. Correct your template there (the next version of EME will take that into account too).
But still it won’t explain your template issue. Can you reply to the other questions I asked?-
This reply was modified 3 years, 8 months ago by
Franky.
This is the log:
[30-Jun-2021 21:48:02 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 21:48:32 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 21:49:18 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 21:49:32 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 21:51:53 UTC] PHP Notice: Only variables should be assigned by reference in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/functions.php on line 724 [30-Jun-2021 21:52:47 UTC] PHP Notice: Trying to access array offset on value of type null in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/plugins/events-made-easy/eme_locations.php on line 2144 [30-Jun-2021 21:53:29 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 21:53:35 UTC] PHP Notice: A non well formed numeric value encountered in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/editorHelper.php on line 406 [30-Jun-2021 22:00:33 UTC] PHP Notice: Undefined variable: sql in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/plugins/events-made-easy/eme_events.php on line 7719 [30-Jun-2021 22:00:33 UTC] PHP Notice: Undefined variable: query in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/plugins/events-made-easy/eme_mailer.php on line 503 [30-Jun-2021 22:01:01 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 22:02:42 UTC] PHP Notice: A non well formed numeric value encountered in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/editorHelper.php on line 406 [30-Jun-2021 22:03:00 UTC] PHP Notice: Only variables should be assigned by reference in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/functions.php on line 724 [30-Jun-2021 22:03:46 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 22:04:10 UTC] PHP Notice: A non well formed numeric value encountered in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/editorHelper.php on line 406 [30-Jun-2021 22:04:46 UTC] PHP Notice: Undefined index: post in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/export/export.php on line 294 [30-Jun-2021 22:08:06 UTC] PHP Notice: Trying to access array offset on value of type null in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/plugins/events-made-easy/eme_locations.php on line 2144 [30-Jun-2021 22:10:58 UTC] PHP Notice: Only variables should be assigned by reference in /home/qagwaezp/public_html/oppnasinnen.org/wp-content/themes/oppnasinnen/functions.php on line 724
The only line relevant there I already explained (and you should correct your mail template there). I’ll repeat the currently unanswered questions:
– anything in the mailserver logs in this case?
– which sending method do you use (smtp, php mail, wp mail, …)? If wp mail: is there another plugin that might interact with this (like the plugin “wp smtp” or so)?Edit: also consider installing the “Health Check & Troubleshooting” plugin, which allows to deactivate all plugins/change theme for your current session only (so it doesn’t affect your site) and test things again.
-
This reply was modified 3 years, 8 months ago by
Franky.
Email settings in EME is SMTP localhost. I tried on another site also and I got same problem there.
If I use EME SMTP error tracking option in email settings. Where do the logfile end-up?
-
This reply was modified 3 years, 8 months ago by
mlplus.
Are you using mail queueing or not? Maybe the problem is there (I’m trying to reproduce it here too).
SMTP connection debug won’t help you: the mail does arrive, so the problem must be elsewhere. But for the info: the smtp debug is only shown in either the “test mail” functionality or when sending a preview mail (and during preview the attach is not sent along).Also, check your database table wp_eme_mqueue and see if the mail you wanted to be sent has something filled out in the “attachments” column.
Hi Franky! Sorry, I didn’t know attachments are not attached in preview mails. I will test now as normal queued to see if it’s working.
Ok, it works now in queued mailing. Maybe it would be nice to have that attachment in preview also.
Sorry and thanks for your exellent help as allways!
ok, the next version will send along the attachments in preview too.
-
This reply was modified 3 years, 8 months ago by
- The topic ‘Attachment not attached when sending emails and tracking broke too’ is closed to new replies.