View Full Version : Notification emails sometimes missing line breaks
pjkcards
02-11-2015, 01:58 AM
I have an odd problem I haven't been able to solve, or troubleshoot.
Notification emails, like new PM, or daily digest to a subscribed thread sometimes format perfectly fine, and other times randomly show up with no line breaks. This started a few months ago, but can't pinpoint what is causing it.
The Diagnostic returns the line breaks fine, but some of the time notifications don't have line breaks, and sometimes they do. See the example below:
the thread is [removed]
the email look like the one in the attachment
It is hard to figure out since sometimes it works, and sometimes it doesn't. How can I troubleshoot this? I was going to disable mods, but not sure how I can test if it is works.
Any ideas on what I can do to resolve this?
Thanks.
ForceHSS
02-11-2015, 02:06 AM
Please upload screenshoots as guests cant see the one you have above
pjkcards
02-11-2015, 04:24 PM
Please upload screenshoots as guests cant see the one you have above
Sorry about that, I've uploaded the attachment. Please have a look. Thanks.
Have you noticed if it could be related to whether or not the message has one of those "R'U'RU..." things in it? Or have you noticed if it has anything to do with which user wrote the post or PM?
pjkcards
02-12-2015, 03:29 AM
It doesn't have anything to do with the "R'U.." as it happens with ones without that, and it doesn't seem to have to do with anything related to which user wrote the post or PM.
Any further ideas to troubleshoot?
Thanks again for your time.
HM666
02-12-2015, 03:36 AM
Same as the other thread its probably a mod that you have installed that is causing some sort of conflict. Try the following for this at least:
You will need a HTML editor like Dreamweaver or use NotePad. DO NOT use MS Word or Word Pad.
Global disable: open your includes>config.php file and find:
<?php
and under place:
define('DISABLE_HOOKS', true);
Save and upload again to your server in the includes directory.
If you find that it works after disabling the plugins globally then re-enable the plugins by putting // in front of the code so it looks like this:
//define('DISABLE_HOOKS', true);
Save and upload again.
Then you will have to go through your mods one by one until you find the one that is causing the conflict.
pjkcards
02-12-2015, 03:13 PM
Once I disable the mods, how can I test this though? Since it happens randomly and not all the time, I'm not sure how to properly troubleshoot.
Thanks.
HM666
02-12-2015, 07:45 PM
The only way that I know of would be to leave them disabled until it happens again.
pjkcards
02-13-2015, 12:38 AM
How can I make it happen again? I don't want to leave all plugins off for days. There are a few we use a lot, especially the vB Advanced CMPS, which is our homepage.
ForceHSS
02-13-2015, 12:53 AM
put up a test server
HM666
02-13-2015, 08:31 AM
How can I make it happen again? I don't want to leave all plugins off for days. There are a few we use a lot, especially the vB Advanced CMPS, which is our homepage.
If you can narrow down exactly what & when it happens to have a better idea of the circumstances then you maybe able to duplicate those circumstances in a quick timely manner. If not, you may have no real choice. Your options maybe in that case to either shut the plugins off for a few days and just post an apology to members letting them know you are trying to fix a site problem or hire a programmer to find the problem for you. Which I really don't know that they would be able to take too many other steps avoiding turning off the plugin system globally but I'm not a programmer yet so I do not know all the possibilities for that particular instance. You may want to do a few things to see if you can find any errors first, but I really personally think this is related to a mod you have installed, it almost always is. But do the following first:
1. Check your server logs to see if there are any PHP errors or MySQL errors on your server. If you do not know where they are ask your host they should be able to help you.
2. Check all your email settings in your cPanel. Plesk WHM or whatever you run on your hosting account to ensure they are correct.
3. Ask your host if they have made any changes since this has begun. Who knows they may have updated something that caused it to go nuts on you.
If you come up with nothing after those then your only other option is shutting off the plugins.
put up a test server
That could be an option, but the only problem is to duplicate the situation the site would have to be live and sending out emails. A test server is not likely to do that and you cannot run two live instances of vBulletin on one domain without having two licenses. So that really may not be an viable option.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.