CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Civicrm on Wordpress
Pages: [1]

Author Topic: Civicrm on Wordpress  (Read 1727 times)

cmoman

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
    • Waikato Linux User Group
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.7.1
  • MySQL version: 5.1.63 fo debian-linux-gnu
  • PHP version: 5.3.3-7 with Suhosin-Patch
Civicrm on Wordpress
November 26, 2013, 01:38:32 am
Hello all,
I've set up Civicrm 4.4.1 on Wordpress 3.7.1

I've set up the a Member sign up form within CiviContribute following the guide
http://book.civicrm.org/user/current/membership/setup/

The membership sign up form works fine while I'm signed in but I would like visitors to be able to add their details and become members without having to create a WordPress profile. I thought if the membership type was public, this should be possible.  I already have a list of contacts assigned as being members in case this is relevant.

http://members.wlug.org.nz/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=1

http://book.civicrm.org/user/current/website-integration/integrating-with-wordpress/
I can see in the link above that the author had created an Anonymous User role but I can not quite see how to create this user (since the WordPress roles seems quite prescriptive ) or if it would resolve what I'm describing above.

Like I say, everything works as expected if I'm already logged in.  If I log out and revisit the page, nothing below the banner caption is displayed.  If I visit the root of the website with the Online Contribution page included as a form within a Wordpress post, ie using the syntax.

Code: [Select]
[civicrm component="contribution" id="1" mode="live"]
and I'm logged in as admin, everything works.

If visit the site without a login, the banner and heading "Membership" are displayed but nothing further including all the other posts.

I've looked at the Apache error log. Nothing is being flagged. Looking at the access logs, I can't see any difference between visiting while logged in and visiting the site not logged in.  I'd be happy to up the verbosity if it helps but I suspect the issue is more with the Civicrm configuration.

Unfortunately, I just haven't managed to find a walk-through tutorial that presents the exact configuration I'm trying to achieve.

I am happy to provide more screenshots or details of the configuration but it not always easy to know what might be relevant.

Comments appreciated.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civicrm on Wordpress
November 26, 2013, 06:11:36 am

1. can u upgrade to 4.4.2, a few nice fixes in there (which display the fatal error messages!)

2. can you check permissions and ensure that public / anonymous user does have permission on "make online contributions"

3. Can you check the CiviCRM.*.log file in wp-content/plugins/files/civicrm/ConfigAndLog/

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

cmoman

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
    • Waikato Linux User Group
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.7.1
  • MySQL version: 5.1.63 fo debian-linux-gnu
  • PHP version: 5.3.3-7 with Suhosin-Patch
Re: Civicrm on Wordpress
November 27, 2013, 12:19:41 am
In response to item 3

Will post again after upgrading to 4.4.2 but it does look like permissions issue.

Code: [Select]

Nov 27 10:39:28  [info] $Fatal Error Details = Array
(
    [message] => You do not have permission to access this page
    [code] =>
)


Nov 27 10:39:28  [info] $backTrace = #0 /home/members/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(320): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/members/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php(398): CRM_Core_Error::fatal("You do not have permission to access this page")
#2 /home/members/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(232): CRM_Utils_System_WordPress->permissionDenied()
#3 /home/members/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(244): CRM_Utils_System::permissionDenied()
#4 /home/members/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:15))
#5 /home/members/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#6 /home/members/wordpress/wp-content/plugins/civicrm/civicrm.php(463): CRM_Core_Invoke::invoke((Array:3))
#7 [internal function](): CiviCRM_For_WordPress->invoke("[civicrm component=\"event\" id=\"7\" mode=\"live\" action=\"info\"]\n")
#8 /home/members/wordpress/wp-includes/plugin.php(199): call_user_func_array((Array:2), (Array:1))
#9 /home/members/wordpress/wp-includes/post-template.php(166): apply_filters("the_content", "[civicrm component=\"event\" id=\"7\" mode=\"live\" action=\"info\"]")
#10 /home/members/wordpress/wp-content/themes/twentyeleven/content.php(41): the_content("Continue reading <span class=\"meta-nav\">&rarr;</span>")
#11 /home/members/wordpress/wp-includes/template.php(443): require("/home/members/wordpress/wp-content/themes/twentyeleven/content.php")
#12 /home/members/wordpress/wp-includes/template.php(417): load_template("/home/members/wordpress/wp-content/themes/twentyeleven/content.php", FALSE)
#13 /home/members/wordpress/wp-includes/general-template.php(132): locate_template((Array:1), TRUE, FALSE)
#14 /home/members/wordpress/wp-content/themes/twentyeleven/index.php(27): get_template_part("content", FALSE)
#15 /home/members/wordpress/wp-includes/template-loader.php(74): include("/home/members/wordpress/wp-content/themes/twentyeleven/index.php")
#16 /home/members/wordpress/wp-blog-header.php(16): require_once("/home/members/wordpress/wp-includes/template-loader.php")
#17 /home/members/wordpress/index.php(17): require("/home/members/wordpress/wp-blog-header.php")
#18 {main}


cmoman

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
    • Waikato Linux User Group
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.7.1
  • MySQL version: 5.1.63 fo debian-linux-gnu
  • PHP version: 5.3.3-7 with Suhosin-Patch
Re: Civicrm on Wordpress
November 27, 2013, 12:36:13 am
You beauty!  Upgrading to 4.4.2 solved my problem!

Thanks for the suggestion! Man, I've been going around and around with this issue.

Wahoo!

How do I mark as solved.
« Last Edit: November 27, 2013, 12:37:49 am by cmoman »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Civicrm on Wordpress

This forum was archived on 2017-11-26.