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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Cividiscount breaks under WordPress and CiviCRM 4.6
Pages: [1]

Author Topic: Cividiscount breaks under WordPress and CiviCRM 4.6  (Read 816 times)

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Cividiscount breaks under WordPress and CiviCRM 4.6
April 16, 2015, 04:51:40 am
Running CiviCRM 4.6, WP 4.1, Cividiscount 3.0...

Any WP page that has Civi donation or membership page embedded via shortcode is broken with this error repeated as many times as their are active discounts:

Warning: array_keys() expects parameter 1 to be array, null given in /home/.../www/wp-content/plugins/files/civicrm/extensions/org.civicrm.module.cividiscount/CRM/CiviDiscount/DiscountCalculator.php on line 114

KilakwaBT

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 11
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1
  • MySQL version: 5.1.68
  • PHP version: 5.3
Re: Cividiscount breaks under WordPress and CiviCRM 4.6
April 16, 2015, 05:58:32 am
I have a new install of 4.6 (WordPress 4.1) that I am working with and installed CiviDiscount version 3.0 and it is working fine. I have only tested with events though.

BT

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: Cividiscount breaks under WordPress and CiviCRM 4.6
April 16, 2015, 12:49:59 pm
The problem is with contribution pages, not events, and only when they are embedded in a WP with a shortcode.

Quote from: KilakwaBT on April 16, 2015, 05:58:32 am
I have a new install of 4.6 (WordPress 4.1) that I am working with and installed CiviDiscount version 3.0 and it is working fine. I have only tested with events though.

BT

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Cividiscount breaks under WordPress and CiviCRM 4.6
April 18, 2015, 08:15:52 am
CiviDiscount could really use some love from the community. That extension was originally contributed by someone who doesn't have time to maintain it. If you have a little time to investigate that line of code to see why it's causing an error, that would be great.
Try asking your question on the new CiviCRM help site.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Cividiscount breaks under WordPress and CiviCRM 4.6
April 28, 2015, 11:31:25 am
I've noticed problems with CiviDiscount 3.0 as well as problems in Contribution pages and Memberships in 2.6.  Few people outside of the core team and select partners have the coding expertise to pick it apart.

It's also not listed as working with CiviCRM 4.6.

Can we fund core team work or a "make it happen" to keep the most popular extension compatible and functional?  I would contribute.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Cividiscount breaks under WordPress and CiviCRM 4.6

This forum was archived on 2017-11-26.