• The placeholder [record_link] does not work anymore. The placeholder gets replaced by an empty string.
    Other placeholders (e.g. [admin_record_link]) work as expected.

    Versions:
    – WordPress: 6.3.1
    – Participants Database: 2.5.3
    – Email Expansion Kit: 2.6.8

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter DVDK94

    (@dvdk94)

    I have found a workaround:

    https://YOUR_DOMAIN/profile/?pid=[private_id]
    Plugin Author xnau webdesign

    (@xnau)

    If the [record_link] tag is empty, you need to look at the plugin settings, under the Record Form tab, the “Participant Record Page” setting must point to a valid page. If the setting there is incorrect, the tag will remain empty.

    Note that your workaroound will not work for other users.

    Thread Starter DVDK94

    (@dvdk94)

    In the plugin settings I have set a valid page including the shortcode [pdb_record]. In the past the tag [record_link] worked. Therefore, I thought that maybe an update caused the issue.

    • This reply was modified 2 years, 8 months ago by DVDK94.
    Thread Starter DVDK94

    (@dvdk94)

    btw: My workaround with the link https://YOUR_DOMAIN/profile/?pid=%5Bprivate_id%5D works for all users. The page /profile/ includes the shortcode [pdb_record].

    Plugin Author xnau webdesign

    (@xnau)

    Since this is working in my tests, what are the specific circumstances where you are using the [record_link] tag so I can investigate further.

    Thread Starter DVDK94

    (@dvdk94)

    The tag [record_link] is used in an email template. The email is automatically sent out after a new registration. All the other tags in the template work as expected. However, the tag [record_link] doesn’t get replaced. In my first message in this thread I said, it gets replaced with an empty string. Actually, it doesn’t get replaced at all.

    Template:

    [record_link]

    Result (HTML view of the email in Thunderbird):

    <p>[record_link]</p>

    Surprisingly, with the following template it works!

    [record_link]
    [private_id]

    Result (HTML view of the email in Thunderbird):

    <p>https://MY_DOMAIN/profile/?pid=04N8EIQ<br>
          04N8EIQ</p>
    Plugin Author xnau webdesign

    (@xnau)

    So, just to be clear, the template you’re using has just the [record_link] tag, nothing else?

    Thread Starter DVDK94

    (@dvdk94)

    My real templates have a whole text including other placeholder tags. For testing, I created a template with only the [record_link] tag. Surprisingly the [record_link] tag only works if I have the tag [private_id] in the same template.

    Plugin Author xnau webdesign

    (@xnau)

    Curious…ok, thanks for the detail.

    Plugin Author xnau webdesign

    (@xnau)

    So, testing this further, are you using any kind of custom code that would affect the private id value?

    Thread Starter DVDK94

    (@dvdk94)

    I’m not aware of any custom code that could influence the private id value. For testing, I have now temporarily deactivated all custom code snippets and custom participants database templates, with the same result: [result_link] doesn’t get replaced.

    I have now created a test page, that you can use (if you want): Test PDB

    If you fill out the form and send it (button “Senden”), you will get an email based on the following template:

    [first_name]
    [last_name]
    [email]
    [record_link]
    Plugin Author xnau webdesign

    (@xnau)

    Thanks, but that’s not going to help…this will only confirm what you’ve said is happening, and I don’t dispute that. What I need to be able to do is duplicate the problem on my system so I can properly debug it. So far, I have not been able to do that, which suggests there is something specific about your setup that’s breaking it.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Placeholder [record_link] is empty’ is closed to new replies.