Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15645

Petition email confirmation URL incompatible with WordPress

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.2
    • Fix Version/s: 4.5.5
    • Component/s: CiviCampaign
    • Documentation Required?:
      None

      Description

      When a petition is signed, the signer receives an email with a link which must be clicked to confirm the signature. That URL includes a parameter p, e.g. "&p=1".

      if Civi is installed as a WordPress plugin, the confirmation page fails to load as WordPress uses the p parameter as a shortcut to a post or page, so a URL which contains "p=1" causes WordPress to display Post #1 rather than forwarding the request to Civi.

      The problem can be corrected by applying the attached patches to the following files:

      • civicrm/CRM/Campaign/BAO/Petition.php
      • civicrm/CRM/Campaign/Page/Petition/Confirm.php

        Attachments

        1. confirm.php.diff.txt
          0.2 kB
          Bob Silvern
        2. petition.php.diff.txt
          0.5 kB
          Bob Silvern

          Activity

            People

            • Assignee:
              rohan1990 Rohan Ramesh Katkar
              Reporter:
              bobs0 Bob Silvern
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: