-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tokens aren't working on CiviCRM v. 5.0.1 and higher #18
Comments
I will need to do a schema compare on the civicrm_relationship MySQL table, to determine what changed, and in which version of CiviCRM. That way I know which version to check on inside this extension. |
Can you look at the data in the MySQL table "civicrm_fountaintribe_yahrzeits_temp" ? Does any of the data there seem invalid? Also, there is a CiviCRM scheduled job that will refresh all the records in that table, please rerun that scheduled job using the CiviCRM Admin area for scheduled jobs. |
@sgladstone we've narrowed down the issue here. It's not that all Yahrzeit relationships are displayed by the tokens. When using the Could you see if you can reproduce and maybe track this down or give us a direction to look? Thanks! |
@sgladstone Can you please help? |
In the file "/utils/HebrewCalendar.php" at line 3254, there is a PHP comment that looks like: Please uncomment this out, then paste the what you are seeing for "$yahrzeit_sql" here. |
I am not able to reproduce this yet, I think it may have to do with your MySQL settings. Once you get the SQL for "$yahrzeit_sql" as mentioned in the previous comment, also try running that SQL directly against your database, such as via PhpMyAdmin. |
Hi Yosef,
I have also used a Mourners Group 'Active Yahrzeits' with the from and to dates of 22-AUG-2018 to 30-AUG-2018 and it returns 3 records which is correct. When I use the Mourners Group 'Active Yahrzeits' and 'In Exactly 7 Days' it displays 1 record currently which is correct as of today(22-AUG-2018). Regards |
@yosefromano when I create yahrzeit PDF letters using the following template with the 7 day tokens:
The following SQL statement is used to get the token data:
|
Sarah, However, when I place the token called {yahrzeit.deceased_name___day_14} in a template and send a test email the token value is empty in the resulting email. I tried the same token creating a PDF and it resolved the value correctly. Looks like it has something to do with how the token gets resolved in the email production. Sarah can you look further into this part of the code. If you need something sing out. Steps:
Same steps as above but select 'Send Now (50 or less)' in Step2 above and select template in email with the token in it. Click send and the resulting email token value is empty. Regards |
Can you try version 4.0.4 and see if this is still occuring? https://github.com/sgladstone/com.fountaintribe.hebrewcalendarhelper/releases/latest |
@sgladstone we figured out what was happening. |
Tokens that are set to only print Yahrtzeit "in x days" are not respecting the "in x days" filter and the token prints information from every available Yahrzeit relationship.
I tested on Civi 5.0.1 and 5.3.1
The text was updated successfully, but these errors were encountered: