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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Bug in Wordpress civicrm-plugin?
Pages: [1]

Author Topic: Bug in Wordpress civicrm-plugin?  (Read 954 times)

joumak

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.4.1
  • CMS version: WordPress 3.6.1
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
Bug in Wordpress civicrm-plugin?
December 05, 2013, 12:30:21 am
I noticed that "Check Availability" -feature, that checks if there is same user name already in use in CiviCRM, doesn't work in CiviCRM 4.4.2. Profile form makes the ajax call: http://www.spps.fi/members/your-personal-information/?page=CiviCRM&q=civicrm/ajax/cmsuser&cms_name=spps_admin&reset=1

In broken version there is HTML header generated by WP before AJAX response. Profile form is embedded to page with shortcode.

I did some research and found the immediate reason. In /wp-content/plugins/civicrm/civicrm.php:
Code: [Select]
710       in_array(
 711         $argString,
 712         // ajax and file download urls
 713         array(
 714           'civicrm/ajax',
 715           'civicrm/ajax/cmsuser', // <!-- Added line
 716           'civicrm/file'
 717         )
I added the line 715 and it started to work correctly. If there is more possible ajax calls with similar query structure, I think this part should be written in different way.

Jouni
« Last Edit: December 05, 2013, 12:35:25 am by joumak »

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: Bug in Wordpress civicrm-plugin?
December 05, 2013, 09:49:31 am

hey jouni:

can you please file an issue for this and link to this forum topic

if you have the time, can you double check and ensure that this bug also happens on our wordpress demo server

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

gilberto.ramosoton

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Wordpress
  • MySQL version: 5.5.37
  • PHP version: 5.3.10
Re: Bug in Wordpress civicrm-plugin?
July 11, 2014, 10:43:46 am
Hi,

Has there been a development in this issue?

Could it be that we use CiviCRM in another language?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Bug in Wordpress civicrm-plugin?
July 13, 2014, 10:22:42 am
CiviCRM has translations, yes, please see here:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Localisation

If you have any other question, however, please start a new thread.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

gilberto.ramosoton

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Wordpress
  • MySQL version: 5.5.37
  • PHP version: 5.3.10
Re: Bug in Wordpress civicrm-plugin?
July 14, 2014, 05:29:45 am
Hi, we managed to put CiviCRM in another language, our problem is that the Ajax API is not working.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Bug in Wordpress civicrm-plugin?

This forum was archived on 2017-11-26.