Support (offered by community volunteers) > Using CiviCampaign
Wordpress: Public Petition Pages - is it possible yet? [SOLVED]
rainerh:
Hello everyone,
Having just moved our CiviCRM from Drupal to Wordpress, I'm having trouble showing a CiviCampaign Petition on our public website. The petition was configured as mentioned in the FLOSS manuals and was working without a problem before. I figured out that the new URL should be /?page=CiviCRM&q=civicrm/petition/sign&sid=2&reset=1
but this only works for logged in admin users. Website visitors are getting a permission denied error.
I looked everywhere to get more information about this, and it seems to me that as the CiviCRM Access Control features are not yet implemented in Wordpress, I'm out of luck here. Can anyone confirm this or maybe show me a workaround for this nasty problem (we're using CiviCRM only for this use case in the moment, so probably would have to get back to Drupal to be able to use it at all...)
thanks a lot,
rainer
Donald Lobo:
this worked for me:
http://wordpress.demo.civicrm.org/?page=CiviCRM&q=civicrm/petition/sign&reset=1&sid=1
lobo
rainerh:
Hi Donald,
thanks for the fast reply, but on the demo page, I get exactly the same problem as on my site (following your link): if I'm logged in, I can see the petition, if not logged in, I only get:
Sorry. A non-recoverable error has occurred.
You do not have permission to access this page
can you see the petition if you log out?
rainer
Donald Lobo:
filed and fixed here:
http://issues.civicrm.org/jira/browse/CRM-10098
the patch is fairly simple
--- Code: ---
--- CRM/Core/Permission/WordPress.php (revision 39797)
+++ CRM/Core/Permission/WordPress.php (working copy)
@@ -111,6 +111,7 @@
'register for events' => 1,
'view event info' => 1,
'access Contact Dashboard' => 1,
+ 'sign CiviCRM Petition' => 1,
);
}
}
--- End code ---
lobo
rainerh:
thanks a lot for the patch, I tested it and it works as advertised now ;)
great to see that things are actively being pursued around here!
Navigation
[0] Message Index
[#] Next page
Go to full version