View Full Version : PM messages sends blank email
itayKinnrot
11-12-2014, 02:11 PM
Hi,
when new PM message arrive to user, blank email sent with blank title.
i was look for email content inside the pmreceived and it looks fine.
please assist.
thanks,
Dooby
Lynne
11-12-2014, 03:54 PM
What version of the software are you running? What version of PHP is on the server?
TheInsaneManiac
11-12-2014, 04:14 PM
Did you also check your language to make sure it isn't blank?
Did you try with plugins disabled?
itayKinnrot
11-13-2014, 06:57 AM
What version of the software are you running? What version of PHP is on the server?
vbulletin 4.2.2 - php 5.2
Did you also check your language to make sure it isn't blank?
yes, the language (hebrew) contains the correct details
Did you try with plugins disabled?
no,
i have some products like DragonByte with redirect url. if ill disable it, the redirect URL will change and users wont have access to old threads
thanks,
Dooby
ozzy47
11-13-2014, 09:16 AM
Well you still need to disable your mods temporarily and see if one of them is causing the issue.
Disable plugins via the includes/config.php file.
To do that open your includes/config.php file and below <?php add the following.
define('DISABLE_HOOKS', true);
So it looks like this:
<?php
define('DISABLE_HOOKS', true);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2
Use a editor like notepad++ (http://notepad-plus-plus.org/download/v6.6.8.html) to edit any files, don't use Notepad or Wordpad.
If that fixes the issue enable plugins again by adding // before the line you added, then navigate to ACP --> Plugins & Products --> Manage Products and disable one mod at a time until you find the one causing the issue.
Once you find the culprit, post in that mods thread what the issue is, and maybe someone in that thread can help. :)
itayKinnrot
11-13-2014, 02:35 PM
thanks,
still sending empty emails for PM messages.
what is triggering this email in the code? maybe i need to change something inside the code?
thanks,
Dooby
Lynne
11-13-2014, 04:54 PM
If you are running 4.2.2, did you make sure to add this line to your config.php file under the <?php line:
define('SKIP_DS_ERRORS', true);
Make sure that line is in your config.php file and then see if you still have the same problem. Also, when you send the test PM, if it is still empty, please check your error_logs (if you don't know where they are, ask your host) from the time you sent it and let us know what is in that at that time (please, only post stuff from at that time, not from the hour prior to you sending the PM!).
itayKinnrot
11-17-2014, 05:01 AM
Yes, maybe this is cause because some options inside dragonByte SEO.
disabling this -
DragonByte Tech: SEO - URL Rewrites: Member Profile URLs
fixed my hebrew profile mismatch
ozzy47
11-17-2014, 09:09 AM
Well there you go, now you need to contact them to solve the issue. :)
itayKinnrot
11-21-2014, 02:37 PM
we were disabled all the rewrite rules for email, but blank email still sent when PM arrived.
the DBSEO team said that it's unlikely the issue is in DBSEO, as DBSEO will not change the content of the email if email rewrite rule is disabled.
i saw that when im changing the user language to english it sent the email correctly.
maybe i can change something in the code that email will sent with english lang template and not hebrew. this should fix the issue.
can you help with this?
thanks,
Dooby
Did you check in the phrase manager to see if there is a hebrew phrase 'pmreceived' (in the Email Body Text group)? If there isn't it should fall back to using the default language, but I suppose if there was a blank phrase there it might end up blank.
Otherwise, you could try a plugin using hook location pmdata_postsave_recipient and code like this:
$touserinfo['languageid'] = -1;
itayKinnrot
11-21-2014, 05:19 PM
thanks,
but it doesnt work.
still receiving empty email for PM messages
thanks,
Dooby
Lynne
11-21-2014, 08:17 PM
i saw that when im changing the user language to english it sent the email correctly.
maybe i can change something in the code that email will sent with english lang template and not hebrew. this should fix the issue.
can you help with this?
thanks,
Dooby
So, if you change to English to *send* the PM, then you can read it in either English or Hebrew? But if you change to Hebrew to send the PM, then you cannot read it in either English or Hebrew?
Where did you get your Hebrew language pack and what version of vbulletin is it for? And what version of vbulletin are you running?
itayKinnrot
11-25-2014, 05:43 AM
lets start from beginning.
1. i had vbulletin 3.8.7 and decided to upgrade to 4.2.2. the encoding wasnt utf8 (i dont remember the encoding). anyhow after the upgrade the db were damaged because vbulletin upgrading works only with utf8. also vbulletin upgrade support center failed upgrading it :)
i took DBA to help me convert all the DB to utf8 before the upgrade.
after that i was upgraded the forum to 4.2.2 and it works :) (the current version)
2. before the upgrade i used vbseo and used some redirection rules, so because vbseo dosnt supporting 4.x.x, i was installed DragonByte SEO and rewrite the URLs of the threads and posts.
3. i had many issues after the upgrade. cache issues, damaged styles, etc.
currently the last issue(i hope) that i have is the issue with private messages.
now for the problem and the workaround:
the problem is that all my users getting blank emails when they receiving private messages
during my tests i found the following: users that changed personal forum view from hebrew to english get the private messages emails in english.
i dont want to change the forum language because 90% of my users are israelis, so i think changing just the email language will fix this issue.
details:
forum: vbulletin 4.2.2
SEO: DragonByte SEO : email rewrite disabled
style: primus http://themeforest.net/item/primus-a-theme-for-vbulletin-42-suite/3321272
language: Hebrew main default , english secondary
hebrew translation: wizcraft.info
thanks,
Dooby
Lynne
11-25-2014, 05:12 PM
First off, upgrading works just fine if your database isn't utf-8. I'm not sure who told you otherwise.
Anyway, if you go to Languages & Phrases > Language Manager and click to edit the language, what is the Language Code and HTML Character Set for both the English and the Hebrew languages?
itayKinnrot
11-29-2014, 07:43 PM
hi,
regarding the upgrade no one told me. i tried to upgrade my forum at least 10 times and every time the data were corrupted.
currently im using unly utf-8 for both english and hebrew
thanks,
Dooby
itayKinnrot
12-01-2014, 06:10 PM
please help with this.
my users still getting empty emails.
thanks,
Dooby
ozzy47
12-01-2014, 08:55 PM
What is the translation of the phrase, pmreceived?
itayKinnrot
12-02-2014, 03:56 PM
Hi,
copied the english version to the hebrew :
DO NOT REPLY TO THIS EMAIL!
***************************
Dear $touserinfo[username],
You have received a new private message at $vboptions[bbtitle] from $fromusername, entitled "$plaintext_title".
To read the original version, respond to, or delete this message, you must log in here:
$vboptions[bburl]/private.php
This is the message that was sent:
***************
$plaintext_message
***************
Again, please do not reply to this email. You must go to the following page to reply to this private message:
$vboptions[bburl]/private.php
All the best,
$vboptions[bbtitle]
ozzy47
12-02-2014, 08:21 PM
And it's still sending a blank email, that is certainly strange. :confused:
itayKinnrot
12-04-2014, 05:17 PM
yes, it is strange. do you know how to change the just the emails to use the english template?
i saw that the email arrive blank just when using hebrew language for the users.
if ill change the email lang from hebrew to English it will work.
also, if someone can help where in the DB or folders can i find the email template i can update it manually.
thanks,
Dooby
itayKinnrot
12-11-2014, 03:23 PM
anyone can help with this issue?
Lynne
12-11-2014, 04:20 PM
If you are only having the issue with the Hebrew language, then it sounds like an issue with the language pack. Was the language pack made for version 4.2.2?
itayKinnrot
12-12-2014, 06:07 AM
If you are only having the issue with the Hebrew language, then it sounds like an issue with the language pack. Was the language pack made for version 4.2.2?
yes.
i dont think its the language pack because even when i change the text to english inside the hebrew pane it doesnt work.
thanks,
Dooby
Lynne
12-12-2014, 04:28 PM
yes.
i dont think its the language pack because even when i change the text to english inside the hebrew pane it doesnt work.
thanks,
Dooby
Except you said:
i saw that when im changing the user language to english it sent the email correctly.
So, if it is set to English via the Settings page, then it works. So, it must be something regarding the language pack.
itayKinnrot
12-14-2014, 05:40 AM
ok, thanks
i will verify with the hebrew pack team
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.