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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Wordpress Integration
Pages: [1] 2

Author Topic: Wordpress Integration  (Read 8112 times)

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Wordpress Integration
December 14, 2011, 04:08:44 pm
I have successfully installed the alpha release on one of my live Wordpress 3.3 sites, and am taking CiviCRM through it's configuration paces.  So far, the problem I am having is with being able to view the live or test Contribution Page I have set up.  When I click the link to the live page, I am taken to what appears to be the front page of my site (although the URL is different from my home page URL ( hivaidszimbabwe.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=1  ).  Also, my slider does not work on the home page that loads this way, although it works fine on my regular regular home page URL ( hivaidszimbabwe.org).

When I click the link to "test-drive" my contribution page, I get the following error message
Quote
Sorry. A non-recoverable error has occurred.
User Name is not set in the Administer CiviCRM » Payment Processor.

Return to home page.
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wordpress Integration
December 15, 2011, 01:09:26 am
Looks like you have not configured payment processor hence you are getting this error.

Check:
http://en.flossmanuals.net/civicrm/contributions/configuring/
http://en.flossmanuals.net/civicrm/contributions/payment-processors/

HTh
Kurund
Found this reply helpful? Support CiviCRM

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Wordpress Integration
December 15, 2011, 04:38:17 pm
Ok, I got that fixed, thanks.  I had missed inputting the Payment Processor details for Test Payments.

Now, how do I display the contribution page on my wordpress front-end, within the context of my theme?
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wordpress Integration
December 15, 2011, 11:09:51 pm
Quote
Now, how do I display the contribution page on my wordpress front-end, within the context of my theme?

You can create the widget with links. check http://sandbox.wordpress.civicrm.org/

Kurund
« Last Edit: December 15, 2011, 11:21:18 pm by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Wordpress Integration
December 16, 2011, 01:00:57 am
Okay, can you please be a bit more elaborate in your instructions. I am lost here. When I click the link to the live page, I am taken to what appears to be the front page of my site (although the URL is different from my home page URL ( hivaidszimbabwe.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=1  ).  What am I missing.
« Last Edit: December 16, 2011, 10:24:49 am by jmdziba »
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Wordpress Integration
December 16, 2011, 02:16:06 pm
That link looks correct for your first contribution page (id=1). Is that page not displaying an online contribution form as expected? Should be something like this (but w/ your theme):

http://sandbox.wordpress.civicrm.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=1

If it looks fine, then you can direct your users to that page by adding that URL at various spots on your site (in content pages, in a menu item, buttons etc.)
Protect your investment in CiviCRM by  becoming a Member!

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Wordpress Integration
December 16, 2011, 02:23:12 pm
No, that is exactly the problem I am asking for help with.  The link is not displaying the contribution page as expected.  Please note that I am using the Genesis Connect framework from Studiopress.com .  Not sure if that makes a difference, but they framework uses specialized child themes added onto the Genesis Framework.
« Last Edit: December 16, 2011, 02:26:41 pm by jmdziba »
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Wordpress Integration
December 16, 2011, 06:01:00 pm
We don't have experience w/ that framework (and folks on our team our really just getting familiar w/ WordPress) - so would be great if you could research / debug the situation and what changes if any might be needed to make this work.

(Also a screenshot / description of what you're seeing would be helpful in case other WordPress experts pick up this thread)
Protect your investment in CiviCRM by  becoming a Member!

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Wordpress Integration
December 21, 2011, 09:36:11 am
My wordpress debug report gives the following output with reference to CiviCRM

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxxxxx/public_html/wp-includes/functions.php:3544) in /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm.php on line 47

Notice: Constant WP_DEBUG already defined in /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm.php on line 58
« Last Edit: December 21, 2011, 12:25:45 pm by jmdziba »
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Flashingcursor

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.1 Alpha
  • CMS version: WordPress 3.3 / 3.4 Bleeding
  • MySQL version: Current
  • PHP version: Current
Re: Wordpress Integration
December 21, 2011, 10:31:13 am
Quote from: jmdziba on December 21, 2011, 09:36:11 am
My wordpress debug report gives the following output with reference to CiviCRM

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hazwe1/public_html/wp-includes/functions.php:3544) in /home/hazwe1/public_html/wp-content/plugins/civicrm/civicrm.php on line 47

Notice: Constant WP_DEBUG already defined in /home/hazwe1/public_html/wp-content/plugins/civicrm/civicrm.php on line 58

This is happening because you probably already have define('WP_DEBUG', true) or define('WP_DEBUG', false); in your wp-config.php file, where it should be. 

CiviCRM defined this in civicrm.php causing things to break for those that already have have debugging defined in their WP configuration.  WP_DEBUG should only be defined in wp-config.php.

Moving forward, I would suggest that the authors remove the define in civicrm.php -- and instead, ask users reporting problems to enable it in wp-config.php.

As a temporary solution to your issue, just remove line 58 from civicrm.php.

Cheers,
Gil Rutkowski

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wordpress Integration
December 21, 2011, 11:06:19 am
Quote
As a temporary solution to your issue, just remove line 58 from civicrm.php.
Done. Fix will be part of next release.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Wordpress Integration
December 21, 2011, 12:14:45 pm
Thanks Gil.  I commented out line 58 in civicrm.php and ran the debug again.  I get this, with reference to civicrm when I load my wordpress site:


Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xxxxxx/public_html/wp-includes/functions.php:3544) in /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm.php on line 47

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hazwe1/public_html/wp-includes/functions.php:3544) in /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm.php on line 47
« Last Edit: December 21, 2011, 12:25:33 pm by jmdziba »
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Flashingcursor

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.1 Alpha
  • CMS version: WordPress 3.3 / 3.4 Bleeding
  • MySQL version: Current
  • PHP version: Current
Re: Wordpress Integration
December 21, 2011, 12:51:47 pm
Can't replicate the issue here, but give this a go:

Replace:

if ( !session_id( ) ) {
    
session_start( );
    
// print_r( $_SESSION );
}


with:

if (!isset($_SESSION)) {
  
session_start();
}

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Wordpress Integration
December 21, 2011, 12:58:05 pm
No.  No luck with that.  See no difference.
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Flashingcursor

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.1 Alpha
  • CMS version: WordPress 3.3 / 3.4 Bleeding
  • MySQL version: Current
  • PHP version: Current
Re: Wordpress Integration
December 21, 2011, 01:16:44 pm
Any caching plugins installed?

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Wordpress Integration

This forum was archived on 2017-11-26.