vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   PM messages sends blank email (https://vborg.vbsupport.ru/showthread.php?t=315382)

itayKinnrot 11-12-2014 02:11 PM

PM messages sends blank email
 
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?

kh99 11-12-2014 05:52 PM

Did you try with plugins disabled?

itayKinnrot 11-13-2014 06:57 AM

Quote:

Originally Posted by Lynne (Post 2522415)
What version of the software are you running? What version of PHP is on the server?

vbulletin 4.2.2 - php 5.2

Quote:

Originally Posted by TheInsaneManiac (Post 2522424)
Did you also check your language to make sure it isn't blank?

yes, the language (hebrew) contains the correct details

Quote:

Originally Posted by kh99 (Post 2522437)
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.

PHP Code:

define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ 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:

PHP Code:

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

kh99 11-21-2014 03:22 PM

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:
Code:

$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

Quote:

Originally Posted by itayKinnrot (Post 2523629)
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...-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

Quote:

Originally Posted by Lynne (Post 2526777)
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

Quote:

Originally Posted by itayKinnrot (Post 2526894)
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:
Quote:

Originally Posted by itayKinnrot (Post 2523629)
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


All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01524 seconds
  • Memory Usage 1,801KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete